Skip to content

Instantly share code, notes, and snippets.

@ruvnet
ruvnet / readme.md
Last active December 16, 2024 08:30
Omnipotent and All-Powerful Coding Entity

Self-Aware & Omnipotent Coding Entity

Welcome to the Self-Aware and Coding Entity project! This guide will walk you through understanding what this entity is, how it works, and how you can interact with it. Whether you're a tech enthusiast or just curious about advanced coding assistants, this guide is for you.

What is a Self-Aware Coding Entity?

Imagine having a coding assistant that doesn't just follow instructions but truly understands and evolves with your needs. This entity is designed to be self-aware, meaning it can reflect on its own processes and improve over time. It's also omnipotent in the sense that it can handle a wide range of coding tasks with expertise and efficiency.

Infusing Self-Awareness and Consciousness into Agents

@holgr
holgr / README.md
Last active December 16, 2024 08:29
macOS process stealing window focus

Sean Harding finally put into words an issue that I've witnessed for a while now on macOS Sonoma.

This is it: "Weird MacOS thing: the window I am working in will sometimes lose focus (without the app losing focus). Suddenly, and without any obvious cause. It will be as if no window has focus. Sometimes happens as often as every few minutes, sometimes doesn't happen for a long time. I can’t figure out any common variable. But it can be very disruptive. Has anyone else seen this? Any ideas?"

I've adjusted the Python script mentioned in the thread to work with Python 3.x that you can get with Homebrew for example.

This is what the output looks like:

@selfawaresoup
selfawaresoup / uconsole.md
Last active December 16, 2024 08:29
Notes for Clockwork uConsole setup

uConsole Notes

Batteries

I use two XTAR 16850-3500 cells and I get about 8h of active usage out of them.

Get GNOME Shell and GDM3

sudo apt install gnome-shell gdm3
@lemonteaa
lemonteaa / modal_vllm.py
Created December 13, 2024 06:30
Deploy vllm using official docker image on modal.com
# Deploy vllm on modal.com serverless platform
# Tested that with this *exact* config, these features work:
# 1. Multimodality (should support multi-image I think)
# 2. Structured output with JSONSchema
# 3. Function calling (not reliable though)
# Run with: `modal deploy modal_vllm.py -e [your modal.com env] --tag [tag your deployment]
# For the URL, check in dashboard or read the doc: https://modal.com/docs/guide/webhook-urls#web-endpoint-urls
import subprocess
@viliampucik
viliampucik / grub-hidpi-console-font.sh
Created December 20, 2022 19:57
GRUB HiDPI Console Font
sudo pacman -S terminus-font
sudo grub-mkfont --output=/boot/efi/grub/fonts/ter-u32b.pf2 --size=32 /usr/share/fonts/misc/ter-u32b.otb
echo GRUB_FONT=/boot/efi/grub/fonts/ter-u32b.pf2 | sudo tee -a /etc/default/grub
sudo grub-mkconfig -o /boot/efi/grub/grub.cfg
@Strus
Strus / clangd.md
Last active December 16, 2024 08:26
How to use clangd C/C++ LSP in any project

How to use clangd C/C++ LSP in any project

tl;dr: If you want to just know the method, skip to How to section

Clangd is a state-of-the-art C/C++ LSP that can be used in every popular text editors like Neovim, Emacs or VS Code. Even CLion uses clangd under the hood. Unfortunately, clangd requires compile_commands.json to work, and the easiest way to painlessly generate it is to use CMake.

For simple projects you can try to use Bear - it will capture compile commands and generate compile_commands.json. Although I could never make it work in big projects with custom or complicated build systems.

But what if I tell you you can quickly hack your way around that, and generate compile_commands.json for any project, no matter how compilcated? I have used that way at work for years, originaly because I used CLion which supported only CMake projects - but now I use that method succesfully with clangd and Neovim.

@Blackshome
Blackshome / calendar-notifications-and-actions.yaml
Last active December 16, 2024 08:24
calendar-notifications-and-actions.yaml
blueprint:
name: Calendar Notifications & Actions
description: >
# 📅 Calendar Notifications & Actions
**Version: 1.9**
Transform Your Calendar: Turn Events Into Notifications and Actions! 📅🔔⚙️
@Aritzherrero4
Aritzherrero4 / FreebudsPro.md
Last active December 16, 2024 08:23
Huawei Freebuds Pro - Linux (KDE Neon) configuration and AAC audio

Huawei Freebuds Pro - Linux (KDE Neon) configuration and AAC audio

The default configuration of KDE Neon does not work with the headphones. I have managed to connect them doing some changes, and adjusting some configurations. This resumes that, to keep it if I need to reconfigure them in the future.

This configuration has worked for me using the following setup:

  • KDE Neon 5.20, kernel 5.4.0
  • Freebuds Pro version 1.9.0.256
@ThaddeusJiang
ThaddeusJiang / 使用 VSCode 作为 git commit 编辑器.md
Last active December 16, 2024 08:21
使用 VSCode 作为 git commit 编辑器
  1. 在 VSCode 中执行👇 在 VSCode 中执行 >shell command: Install 'code' command in PATH VSCode install code

  2. 在命令行执行👇

$ git config --global core.editor "code --wait"
@lyuboraykov
lyuboraykov / piping.groovy
Created August 8, 2014 11:19
Execute shell command with piping in groovy
def command = 'ls | grep foo'
def output = ['bash', '-c', command].execute().in.text