Skip to content

Instantly share code, notes, and snippets.

Avatar
🥅
goal_net

Jacob Chapman chapmanjacobd

🥅
goal_net
View GitHub Profile
View xd75re.json
{"version":1,"notes":"","documentation":"\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n","keyboard":"xd75","keymap":"xk","layout":"LAYOUT_ortho_5x15","layers":[["KC_GRV","KC_1","KC_2","KC_3","KC_4","KC_5","KC_MINS","LT(2,KC_ESC)","KC_EQL","KC_6","KC_7","KC_8","KC_9","KC_0","KC_DEL","KC_TAB","KC_Q","KC_W","KC_E","KC_R","KC_T","KC_PSCR","KC_BSLS","KC_LBRC","KC_Y","KC_U","KC_I","KC_O","KC_P","KC_RBRC","KC_BSPC","KC_A","KC_S","KC_D","KC_F","KC_G","KC_WH_U","KC_UP","KC_LSPO","KC_H","KC_J","KC_K","KC_L","KC_SCLN","KC_QUOT","KC_LSFT","KC_Z","KC_X","KC_C","KC_V","KC_B","KC_LEFT","KC_DOWN","KC_RGHT","KC_N","KC_M","KC_COMM","KC_DOT","KC_SLSH","KC_RSFT","KC_LCTL","KC_LCTL","KC_LAL
@chapmanjacobd
chapmanjacobd / gist:a8ef679516d4266e8f756897b56e581d
Created Dec 18, 2020
Global LightBG Desert Sepia Medium Contrast
View gist:a8ef679516d4266e8f756897b56e581d
/* AGENT_SHEET */
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/* AGENT_SHEET */
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@chapmanjacobd
chapmanjacobd / gist:a9249e1fa0393230fa2680414f2b20da
Created Nov 14, 2020
Cat all the files in a git repo without cloning
View gist:a9249e1fa0393230fa2680414f2b20da
curl -s -H "Accept:application/vnd.github.v3.raw" https://api.github.com/repos/AbhishekSinhaCoder/Collection-of-Useful-Scripts/contents/ |
jq .[].download_url -r |
xargs -L1 sh -c 'curl "$0" 2>/dev/null | bat --paging=always'
View mv_sequentially.fish
for file in (fd -tf -uu)
set rel (dirname (realpath --relative-to=(pwd) $file))
set f (basename $file)
mkdir -p /home/xk/Videos/$rel
mv $file /home/xk/Videos/$rel/$f
end
View gist:6fea40459f27f514156bd553e9d87422
fd -tf -S-1mb -E map . node_modules/package/ -E '*.map' -E '*.d.ts' -E LICENSE -x cat |less -FSRXc
View yt.ogg.fish
function yt.ogg
cd ~/Music/New
youtube-dl -i --youtube-skip-dash-manifest -f bestaudio --extract-audio $argv --exec \
"ffmpeg -hide_banner -loglevel panic -y -i {} -c:a libopus -ac 2 -b:a 128k -vbr constrained -filter:a loudnorm=i=-18:lra=17 \"`echo {} | cut -f 1 -d '.' | sed 's/\$/.opus/'`\" && rm {} "
or youtube-dl -i -f bestaudio --extract-audio $argv --exec \
"ffmpeg -hide_banner -loglevel panic -y -i {} -c:a libopus -ac 2 -b:a 128k -vbr constrained -filter:a loudnorm=i=-18:lra=17 \"`echo {} | cut -f 1 -d '.' | sed 's/\$/.opus/'`\" && rm {} "
end
@chapmanjacobd
chapmanjacobd / medium-contrast.vscode
Created Sep 13, 2020
medium-contrast vscode theme
View medium-contrast.vscode
{
"$schema": "vscode://schemas/color-theme",
"type": "light",
"colors": {
"activityBar.background": "#080808",
"activityBarBadge.background": "#007acc",
"badge.background": "#000000",
"button.foreground": "#000000",
"editor.background": "#d1bca7",
"editor.findRangeHighlightBackground": "#000824",
View keyboarst.xmodmap
keycode 24 = q Q
keycode 25 = w W
keycode 26 = f F
keycode 27 = p P
keycode 28 = b B
keycode 29 = j J
keycode 30 = l L
keycode 31 = u U
keycode 32 = y Y
View less_boring_jsonb_to_record.sql
do
$$
declare
keys_u text;
begin
drop view if exists v_flat_u cascade;
select
string_agg(distinct format('data_json ->> %L as %I',rc, rc), ', ') data_json
into keys_u
View file type statistics
fd -tf | awk -F'.' '{print $NF}' | sort | uniq -c | sort -g