Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
commit="$1"
date="$2"
git filter-branch --env-filter \
"if test \$GIT_COMMIT = '$commit'
then
export GIT_AUTHOR_DATE='$date'
export GIT_COMMITTER_DATE='$date'
#!/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
@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
@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]
#!/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
#!/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