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 / 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 / oil-filters-that-i-like_ford-crown-victoria.txt
Last active February 6, 2025 01:16
2008 Ford Crown Victoria: Oil Filters Cross Reference (Brands Chosen Are Based on Personal Preference)
2008 Ford Crown Victoria
Oil Filters Cross Reference
Brands Chosen Are Based on Personal Preference
Ranked According to Personal Experience with Each Oil Filter and External Research
| Brand | Model | Ref. Number | Smaller Cross Ref. |
| ---------- | -------------------- | ----------- | ------------------ |
| Purolator | BOSS | PBL24651 | - |
| Wix | XP | 51372XP | - |
| FRAM | Synthetic Endurance | FE2 | - |
@kj-sh604
kj-sh604 / libreoffice-font-replacement-table.md
Last active February 8, 2025 13:44
libreoffice font replacement table that i use

My LibreOffice Font Replacement Table

Font Replace with
Arial Liberation Sans
Arial Narrow Liberation Sans Narrow
Book Antiqua TeX Gyre Pagella
Calibri Carlito
Cambria Caladea
Century Gothic URW Gothic
@kj-sh604
kj-sh604 / include.js
Created August 5, 2024 04:16
Creates an <include-html> tag for HTML partials. Works similarly to "include" and "require" in PHP.
// Example Usage in HTML:
// <include-html file="partials/fancy.html"></include-html>
class HTMLIncludeElement extends HTMLElement {
connectedCallback() {
const filepath = this.getAttribute('file');
if (filepath) {
fetch(filepath)
.then(response => {
if (!response.ok) {
@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 / web-servers.md
Created July 10, 2024 04:10 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@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
evdev:input:b*v046DpC548*
KEYBOARD_KEY_70065=print