Skip to content

Instantly share code, notes, and snippets.

Jason Maurer jsonmaur

Block or report user

Report or block jsonmaur

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:f3598ca2c7ae1f5ff83ad9aa8c2b6b54
# removes all stopped containers
docker rm $(docker ps -a -q)
# removes all unused images with no name
docker rmi $(docker images -q --filter "dangling=true")
View gist:8771d54439bfb55a4e78d2c29140dad5
# allows for default folder view
sudo find / -name ".DS_Store" -exec rm {} \;
# install homebrew
/usr/bin/ruby -e "$(curl -fsSL"
brew doctor
brew update
brew upgrade
brew prune
jsonmaur /
Last active Nov 13, 2017
Setup Kali on Macbook
# persistence from usb stick
mkdir -p /mnt/my_usb
mount /dev/sdb3 /mnt/my_usb
echo "/ union" > /mnt/my_usb/persistence.conf
umount /dev/sdb3 && reboot
# get wifi working
apt-get update
apt-get install -y linux-headers-$(uname -r) broadcom-sta-dkms

Keybase proof

I hereby claim:

  • I am jsonmaur on github.
  • I am jsonmaur ( on keybase.
  • I have a public key whose fingerprint is 7B7F FA6B 4484 7938 3D38 E482 070B 00B2 5347 5CD6

To claim this, I am signing this object:

jsonmaur /
Created Oct 16, 2016
Deploy new image to ECS service with CircleCI
#!/usr/bin/env bash
DIR="$(dirname "$( cd $(dirname $0) ; pwd -P )")"
JQ="jq -Merc"
COMMIT=${CIRCLE_SHA1:-$(git rev-parse HEAD~0)}
jsonmaur /
Created Oct 21, 2016
cli53 round robin
CURRENT_IPS=($(cli53 export -f "" | grep "" | awk '{print $5}'));
for i in "${CURRENT_IPS[@]}"; do if [ $i != $PUBLIC_IP ]; then echo $i && IPCMD+=("$HOST_NAME $TTL A $i"); fi done
/usr/local/bin/cli53 rrcreate --replace "" "${IPCMD[@]}"
jsonmaur /
Last active Jun 27, 2017
For simple load testing
ab -n 10000 -c 15 $URL
jsonmaur / bzexcluderules_editable.xml
Last active Oct 9, 2019
Backblaze Custom Exclude
View bzexcluderules_editable.xml
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
jsonmaur /
Last active Nov 13, 2017
Spoof MAC address on macOS
# network settings -> wifi -> advanced -> hardware
# change "configure" to "manually". save & apply.
# compare mac address to one you see in settings
ifconfig en0 | grep ether
# generate a new random one
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'
# set spoofed address (substitute with generated one from above)
jsonmaur /
Last active Jun 27, 2017
Compresses and encrypts a folder
tar -zcvf $FOLDER.tar.gz $FOLDER
gpg -c $FOLDER.tar.gz
rm -rf $FOLDER $FOLDER.tar.gz
You can’t perform that action at this time.