Skip to content

Instantly share code, notes, and snippets.

@debo
debo / kbd67-rev2-custom-plate-ansi.md
Last active April 4, 2021 00:49
Custom ANSI 5 keys plate for KBD67 Rev2 65% PCB - Configuration notes for SwillKB
Plate layout ANSI (Mac legends)
[{a:5},"~\n`","!\n1","@\n2","#\n3","$\n4","%\n5","^\n6","&\n7","*\n8","(\n9",")\n0","_\n-","+\n=",{a:4,w:2},"\n\n\ndelete",{a:5},"\nesc"],
[{a:4,w:1.5},"\ntab",{a:7},"Q","W","E","R","T","Y","U","I","O","P",{a:5},"{\n[","}\n]",{w:1.5},"|\n\\","\nPgUp"],
[{w:1.25},"Stepped",{x:-1.25,a:4,w:1.75},"\ncaps lock",{a:7},"A","S","D","F","G","H","J","K","L",{a:5},":\n;","\"\n'",{a:4,w:2.25},"\n\nenter\nreturn","\n\n\nPgDn"],
[{w:2.25},"\nshift",{a:7},"Z","X","C","V","B","N","M",{a:5},"<\n,",">\n.","?\n/",{a:4,w:1.75},"\n\n\nshift",{a:7},"↑",{a:5},"\nfn"],
[{a:4,w:1.25},"\ncontrol",{w:1.25},"alt\noption",{w:1.25},"\ncmd",{a:7,w:6.25},"",{a:4,w:1.5},"\ncmd",{w:1.5},"alt\noption",{a:7},"←","↓","→"]
Custom Polygons, centered on [-x,y]
@debo
debo / ext.list
Created September 25, 2020 11:37
aaron-bond.better-comments
christian-kohler.npm-intellisense
christian-kohler.path-intellisense
cmstead.jsrefactor
DavidAnson.vscode-markdownlint
dbaeumer.vscode-eslint
denco.confluence-markup
eamodio.gitlens
EditorConfig.EditorConfig
eg2.vscode-npm-script
#!/usr/bin/env bash
GITHUB_BASE_URL="https://api.github.com"
GITHUB_ORGANIZATION="${PWD##*/}"
GITHUB_API_TOKEN=""
for repo in `curl -H "Authorization: Bearer $GITHUB_API_TOKEN" "$GITHUB_BASE_URL/orgs/$GITHUB_ORGANIZATION/repos?per_page=100" | jq '.[] | select( .archived == false ) | .ssh_url' | sed 's/"//g' | sed 's/null//g' | sed '/^\s*$/d' | sort`; do
folder=`basename -s .git $repo`
if [ ! -d $folder ]; then
git clone $repo
#!/usr/bin/env bash
GITHUB_BASE_URL="https://api.github.com"
GITHUB_ORGANIZATION="${PWD##*/}"
GITHUB_API_TOKEN=""
for repo in `curl -H "Authorization: Bearer $GITHUB_API_TOKEN" "$GITHUB_BASE_URL/orgs/$GITHUB_ORGANIZATION/repos?per_page=100" | jq '.[] | select( .archived == false ) | .ssh_url' | sed 's/"//g' | sed 's/null//g' | sed '/^\s*$/d' | sort`; do
git clone $repo
done
@debo
debo / .vimrc
Created February 1, 2018 21:25
""""""""""""""""""""""""""""""""""""""""
" Init
set nocompatible
execute pathogen#infect()
execute pathogen#helptags()
""""""""""""""""""""""""""""""""""""""""
" Mappings
" quickly edit the .vimrc file
@debo
debo / updatedb
Last active January 30, 2019 16:25
#!/usr/bin/env bash
sudo /usr/libexec/locate.updatedb
@debo
debo / no-sleep
Last active January 30, 2019 16:25
#!/usr/bin/env bash
sudo pmset -c sleep 1440 displaysleep 10 disksleep 1440
sudo pmset -b sleep 1440 displaysleep 2 disksleep 1440
#!/usr/bin/env bash
sudo pmset -c sleep 10 displaysleep 10 disksleep 10
sudo pmset -b sleep 10 displaysleep 2 disksleep 10
#!/usr/bin/env bash
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
#!/usr/bin/env bash
git filter-branch --env-filter '
old_author_email="$1"
new_author_name="$2"
new_author_email="$3"
if [ "$GIT_COMMITTER_EMAIL" = "$old_author_email" ]
then