Skip to content

Instantly share code, notes, and snippets.

View abbood's full-sized avatar
💭
Leading Village.do tech team

Abdullah Bakhach abbood

💭
Leading Village.do tech team
View GitHub Profile
@abbood
abbood / pi-mcp-client.json
Created September 9, 2026 14:10
OAuth Client ID Metadata Document (CIMD) for the pi coding agent MCP client
{
"client_id": "https://gist.githubusercontent.com/abbood/9257dbc16ed0abea3b7f73a432cda622/raw/pi-mcp-client.json",
"client_name": "pi coding agent",
"client_uri": "https://github.com/abbood",
"redirect_uris": [
"http://localhost:19876/callback"
],
"grant_types": [
"authorization_code",
"refresh_token"
@abbood
abbood / README.md
Created August 25, 2026 22:54
pi: escape sequences echoed as text / input box gone -- root cause is the tty falling back to cooked mode (corrects earendil-works/pi#8624)

pi: escape sequences echoed as literal text, input box gone

Correcting my own earlier report (earendil-works/pi#8624). That issue blamed Kitty CSI-u sequences arriving split across stdin chunks. That effect is real in a pty harness, but it is not what was happening on my machine.

What it actually is

pi's tty falls back to canonical mode with ECHO on while pi keeps running:

# /home/abbood/.config/systemd/user/hyprmon-daemon.service
[Unit]
Description=Hyprmon Monitor Hotplug Daemon
After=graphical-session.target
[Service]
Type=simple
ExecStart=/home/abbood/.local/bin/hyprmon-monitor-daemon
Restart=always
RestartSec=2
#!/bin/bash
# Logging setup
LOG_DIR="$HOME/.local/share/hyprmon-daemon"
LOG_FILE="$LOG_DIR/daemon.log"
mkdir -p "$LOG_DIR"
# Function to log with timestamp
log() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" >> "$LOG_FILE"
#!/bin/bash
LOG_DIR="$HOME/.local/share/hyprmon-daemon"
LOG_FILE="$LOG_DIR/switch.log"
mkdir -p "$LOG_DIR"
log() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" >> "$LOG_FILE"
}
# to prevent hyprland from crashing on sudden hdmi disconnect
ungroup_all_windows() {
log "Ungrouping all grouped windows..."
# move window to prev and next space
#shift + alt - p : yabai -m window --space prev;
#shift + alt - n : yabai -m window --space next;
shift + alt - n : ~/scripts/clear_space0.sh;
ctrl + alt - right : yabai -m display --focus 1
ctrl + alt - left : yabai -m display --focus 2
# move currently focused window to next space
alt + cmd - right : yabai -m window --space next
alt + cmd - left : yabai -m window --space prev
@abbood
abbood / gist:316ea9f7e211c85c3c510dd02a36bc96
Created December 12, 2024 15:17
aerospace window manager setup
# Place a copy of this config to ~/.aerospace.toml
# After that, you can edit ~/.aerospace.toml to your liking
# It's not necessary to copy all keys to your config.
# If the key is missing in your config, "default-config.toml" will serve as a fallback
# You can use it to add commands that run after login to macOS user session.
# 'start-at-login' needs to be 'true' for 'after-login-command' to work
# Available commands: https://nikitabobko.github.io/AeroSpace/commands
after-login-command = []
-- Read the docs: https://www.lunarvim.org/docs/configuration
-- Example configs: https://github.com/LunarVim/starter.lvim
-- Video Tutorials: https://www.youtube.com/watch?v=sFA9kX-Ud_c&list=PLhoH5vyxr6QqGu0i7tt_XoVK9v-KvZ3m6
-- Forum: https://www.reddit.com/r/lunarvim/
-- Discord: https://discord.com/invite/Xb9B4Ny
local opts = { noremap = true, silent = true }
local map = vim.api.nvim_set_keymap
lvim.leader = ","
-- Enable formatting on save
{
"contactsReturned": false,
"relationships": [
{
"identity": 106243532,
"labels": "Person",
"warmth_version": 1,
"linkedin_connections": 65535,
"load_source": "coresignal",
"warmth_trigger_date": 1699024241178,
{
"linkedin_id": "urn:li:fs_profileView:ACoAAEmyxIsBT7wzSvWyuQAL19EaDEVebiGYm14",
"firstname": "macbeth",
"lastname": "el kahtani",
"profile_url": "https://www.linkedin.com/in/macbeth-el-kahtani-7771032a6",
"avatar_url": "https://media.licdn.com/dms/image/D4E03AQEGTicXa7prJQ/profile-displayphoto-shrink_800_800/0/1702895338460?e=1711584000&v=beta&t=4ICqRjEsjjwdPNSLRFR4lcFL-Ni5xX2yUBxosAMI_n0",
"country": "Lebanon",
"location": "Beirut, Beirut Governorate",
"number_of_connections": "",
"about": "",