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
@jsonmaur
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="*" />
View jsonmaur.pub
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFs3CtwBCADvKJFPmmN3RaxmgrWeD6EVKjytQqReaKpQW5ZHHyy+LlqzQlTu
B2Ju3pMzEwGSUOIJrQl3V7sJ/W4qIvGy9qwzpoYj0F63cB7ooECEiQw22NMiYhrO
XNoQUWHmzXpqT03HRDmOCisgn5RMkbz6AClN7plOlBgtUE1b6Hk2CjNbbLD1NxsH
IfHikM3JbrVJkspj36IpZeZ3IznS3hos8n9EPyI+9bUsjGQERcIB3BYq7VyvPoxY
5kzm+8uVQfS8lQOLIfcpbiIi5J+Yc9x9zhelpUULfGx3Jv7Dt6b+NVAgFx3xgNDC
4KobSevRryqSkD8CZgyaGHanHLXpiZdaastLABEBAAG0HEphc29uIE1hdXJlciA8
amFzb25AbWF1ci5jbz6JAVQEEwEIAD4WIQQy7f4aZvCaimZskLTe1HmFkFx4PQUC
WzcK3AIbAwUJA8JnAAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRDe1HmFkFx4
@jsonmaur
jsonmaur / backend.json
Last active Sep 26, 2018
Initialize Terraform S3 Backend with CloudFormation
View backend.json
{
"Description": "Resources for Terraform backend",
"Resources": {
"MainBucket": {
"Type": "AWS::S3::Bucket",
"Properties": {
"VersioningConfiguration": {
"Status": "Enabled"
},
"LifecycleConfiguration": {
@jsonmaur
jsonmaur / deploy.sh
Created Oct 16, 2016
Deploy new image to ECS service with CircleCI
View deploy.sh
#!/usr/bin/env bash
DIR="$(dirname "$( cd $(dirname $0) ; pwd -P )")"
JQ="jq -Merc"
ORG_NAME="zablabs"
COMMIT=${CIRCLE_SHA1:-$(git rev-parse HEAD~0)}
NAME=$1
ENV=$2
PROFILE_NAME=$3
@jsonmaur
jsonmaur / delete-from-git.sh
Created Jul 23, 2018
remove a large or sensitive file from git
View delete-from-git.sh
# download and run this script in repo to list large files:
# https://confluence.atlassian.com/bitbucket/files/321848291/321979854/1/1360604134990/git_find_big.sh
git filter-branch --force --index-filter \
'git rm -r --cached --ignore-unmatch FILEPATH' \
--prune-empty --tag-name-filter cat -- --all
git reflog expire --expire=now --all
git gc --prune=now
git push --all --force
@jsonmaur
jsonmaur / setup.sh
Last active Nov 13, 2017
Setup Kali on Macbook
View setup.sh
# 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
@jsonmaur
jsonmaur / spoof.sh
Last active Nov 13, 2017
Spoof MAC address on macOS
View spoof.sh
# 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
jsonmaur / main.sh
Created Oct 21, 2016
cli53 round robin
View main.sh
HOST_NAME="speed"
TTL="300"
CURRENT_IPS=($(cli53 export -f "cdn.test.com" | grep "speed.cdn.test.com" | 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 "cdn.test.com" "${IPCMD[@]}"
@jsonmaur
jsonmaur / hide.sh
Last active Jun 27, 2017
Compresses and encrypts a folder
View hide.sh
#/bin/bash
FOLDER=$1
tar -zcvf $FOLDER.tar.gz $FOLDER
gpg -c $FOLDER.tar.gz
rm -rf $FOLDER $FOLDER.tar.gz
@jsonmaur
jsonmaur / load_test.sh
Last active Jun 27, 2017
For simple load testing
View load_test.sh
#/bin/bash
URL=$1
ab -n 10000 -c 15 $URL
You can’t perform that action at this time.