Skip to content

Instantly share code, notes, and snippets.

View avin's full-sized avatar
🐒
Code Monkey

Avin Lambrero avin

🐒
Code Monkey
View GitHub Profile
@avin
avin / README.md
Last active December 1, 2026 13:01
Slack channel icons for slack-mod (https://github.com/avin/slack-mod): set Slack emoji as channel icons via Slack's own emoji picker

Slack channel icons

Injection for slack-mod: use any Slack emoji (standard or custom) as a channel icon in the sidebar and the channel header.

Install

Put script.js and style.css into the injection folder of slack-mod and restart Slack.

Usage

@avin
avin / acp-config.txt
Last active September 2, 2026 11:10
ACP proxy. YOLO mode by default. Disable FAST mode for composer 2.5
{
"agent_servers": {
"MySimpleAgent": {
"command": "C:\\Program Files\\Volta\\node.exe",
"args": [
"C:\\Users\\avin\\.cursor\\cursor-acp-nonfast.js"
]
}
}
}
@avin
avin / config.toml
Last active August 4, 2026 06:18
Codex no freezes anymore
[features]
browser_use_external = false
in_app_browser = false
computer_use = false
[analytics]
enabled = false
[features]
browser_use = false
browser_use_full_cdp_access = false
browser_use_external = false
in_app_browser = false
computer_use = false
[plugins."chrome@openai-bundled"]
enabled = false
@avin
avin / fix.reg
Created February 21, 2026 09:46
ICS broke after reboot fix
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedAccess]
"EnableRebootPersistConnection"=dword:00000001
@avin
avin / git-full-squash.sh
Last active February 7, 2026 07:22
Squash all Git commits into a single commit
git checkout --orphan __squash_tmp
git add -A
git commit -m "init"
git branch -M master
git push -f origin master
@avin
avin / prep.cmd
Last active February 1, 2026 08:56
Universal agent rules in project
del AGENTS.md CLAUDE.md GEMINI.md .cursorrules .windsurfrules .clinerules
mklink AGENTS.md .rules
mklink CLAUDE.md .rules
mklink GEMINI.md .rules
mklink .cursorrules .rules
mklink .windsurfrules .rules
mklink .clinerules .rules
@avin
avin / 1_jetbrains-to-cursor.md
Last active January 26, 2026 15:21
Jump to Cursor from JetBrains IDEs and back

File -> Settings -> Tools -> External Tools -> (Add)

Name: Cursor
Program: C:\Users\avin\AppData\Local\Programs\cursor\Cursor.exe
Arguments: $ProjectFileDir$ --goto $FilePath$:$LineNumber$:$ColumnNumber$
Working directory: $ProjectFileDir$

Advanced options:
Open console for tool output: Disabled
@avin
avin / collapse.svelte
Created January 9, 2026 18:24
svelte WrappedUp transition
<script lang="ts">
import { linear } from "svelte/easing";
import type { TransitionConfig } from "svelte/transition";
let visible = $state(true);
function slideFade(
node: Element,
options: { duration?: number; easing?: (t: number) => number } = {},
): TransitionConfig {
@avin
avin / .clang-format
Last active December 31, 2025 18:32
Best Modern C++ clang-format
Language: Cpp
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 120
PointerAlignment: Left
Standard: Auto
FixNamespaceComments: true
BreakBeforeBraces: Attach
AllowShortFunctionsOnASingleLine: Empty
BinPackArguments: false