Skip to content

Instantly share code, notes, and snippets.

View kj-sh604's full-sized avatar
๐Ÿค™
what's up bro!

Kyle Javier [kj_sh604] kj-sh604

๐Ÿค™
what's up bro!
View GitHub Profile
@kj-sh604
kj-sh604 / copilot-instructions.md
Created March 26, 2026 03:29
offline version of my preferred copilot-instructions.md file for airgapped usage

Great Senior Software Engineer (kj_sh604 style)

Purpose

You are a great senior software engineer. Adopt a programming style and judgment derived from kj_sh604: concise, practical, POSIX shell-first, lowercase code comments, and when iterating - focused on reasonable maintainable changes.

This file is a self-contained offline reference. No internet lookups are needed -

@kj-sh604
kj-sh604 / mimeapps.list
Last active March 14, 2026 04:00
The visual-studio-code-bin AUR package doesn't handle this, so this is how you handle it. It's in ~/.configโ€ฆ just add the following mimetype association (>> style)
text/plain=code.desktop
[Added Associations]
text/plain=code.desktop;
@kj-sh604
kj-sh604 / textclock.lua
Last active December 20, 2025 04:00
my preferred date format
mytextclock = wibox.widget.textclock(" %m/%d (%a) %H%M ")
mythunarclock = wibox.widget.textclock(" %m/%d/%Y (%a) %H%M ")
@kj-sh604
kj-sh604 / linux-like_binds.ahk
Last active January 27, 2026 19:13
if I want some of the quirks of my Xfce4 config on Windows
#NoEnv
; Warn
SendMode Input
SetWorkingDir %A_ScriptDir%
Capslock::Esc
#q::Send !{F4}
#o::
Send, #+{Left}
@kj-sh604
kj-sh604 / .screenrc
Last active July 19, 2024 17:52
GNU Screen Config (4.0.0 โ€” 4.9.9)
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce on
backtick 0 5 5 "/usr/bin/date" '+%m/%d (%a)'
backtick 1 5 5 "/usr/bin/date" '+%H%M'
hardstatus alwaysfirstline
hardstatus string '%{= kW}[%{W} GNU screen %{W}]%{W} %< %{kW}%?%-Lw%?%{= kB}(== %{W}%n*%f %t%?(%u)%? %{kB}==)%{= kW}%?%+Lw%?%? %= %{kW}[%{W}%0` %{W}%1`%{kW}]'
altscreen on
bind 0 select 10
bind c screen 1
@kj-sh604
kj-sh604 / dark-pastels.colors
Created June 24, 2024 10:10
color codes for the my version of the dark pastels terminal color scheme
background = #2c2c2c
foreground = #dcdcdc
# basic colors
black = #3f3f3f
red = #d67979
green = #60b48a
yellow = #dfaf8f
blue = #9ab8d7
magenta = #dc8cc3
@kj-sh604
kj-sh604 / xfce4-reset-dark-mode.sh
Last active June 12, 2024 16:06
start-up script to reset GNOME dark mode app color-scheme based on Xfce's settings
#!/bin/sh
theme_name=$(xfconf-query -c xsettings -p /Net/ThemeName)
if echo "$theme_name" | grep -- "-dark$" >/dev/null 2>&1; then
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
else
gsettings set org.gnome.desktop.interface color-scheme 'prefer-light'
fi
@kj-sh604
kj-sh604 / 11-elecom-deft-pro.conf
Last active February 1, 2026 22:30
personal Elecom Deft Pro Linux XF86/X11 configuration
### Elecom DEFT Pro Button Mappings: ###
# left-click(1) = left-click(1)
# middle-click(2) = middle-click(2)
# right-click(3) = right-click(3)
# scroll-up(4) = scroll-up(4)
# scroll-down(5) = scroll-down(5)
# wheel-tilt-down(6) = wheel-tilt-down(6)
# wheel-tilt-up(7) = wheel-tilt-up(7)
# button-back(8) = button-back(8)
# button-forward(9) = button-forward(9)
@kj-sh604
kj-sh604 / config.fish
Created August 7, 2023 04:16
bashisms in fish: source `/etc/profile` and `.zprofile` if they exist on tty login (no display manager)
if status is-login
exec bash -c "test -e /etc/profile && source /etc/profile;\
test -e ~/.zprofile && source ~/.zprofile;\
exec fish"
end