Skip to content

Instantly share code, notes, and snippets.

View mweiden's full-sized avatar
🤖
Robot cars

Matt Weiden mweiden

🤖
Robot cars
View GitHub Profile
@mweiden
mweiden / transform_record_sets.py
Last active April 12, 2018 16:59
Transfer record sets from one AWS Route53 zone to another
#!/usr/bin/env python3
import json
import sys
import re
# 1. aws route53 list-resource-record-sets --hosted-zone-id $ZONE_ID > /tmp/record_sets
# 2. ./[this_script] /tmp/record_sets 'some_regex' > /tmp/updates
# 3. inspect the file closely -> vim /tmp/updates
# 4. aws route53 change-resource-record-sets --hosted-zone-id $NEW_ZONE_ID --change-batch file:///tmp/updates
@mweiden
mweiden / CustomInjectionSource.properties
Created October 15, 2015 09:14
Command injection filters
INVOKEVIRTUAL|scala/sys/process/Process$|apply|(Ljava/lang/String;)Lscala/sys/process/ProcessBuilder;=0|CUSTOM_INJECTION
INVOKEVIRTUAL|scala/sys/process/Process$|apply|(Lscala/collection/Seq;)Lscala/sys/process/ProcessBuilder;=0|CUSTOM_INJECTION
INVOKEVIRTUAL|scala/sys/process/Process$|apply|(Ljava/lang/String;Lscala/collection/Seq;)Lscala/sys/process/ProcessBuilder;=0|CUSTOM_INJECTION
INVOKEVIRTUAL|scala/sys/process/Process$|apply|(Ljava/lang/String;Lscala/collection/Seq;)Lscala/sys/process/ProcessBuilder;=1|CUSTOM_INJECTION
INVOKEVIRTUAL|scala/sys/process/Process$|apply|(Ljava/lang/String;Ljava/io/File;Lscala/collection/Seq;)Lscala/sys/process/ProcessBuilder;=0|CUSTOM_INJECTION
INVOKEVIRTUAL|scala/sys/process/Process$|apply|(Ljava/lang/String;Ljava/io/File;Lscala/collection/Seq;)Lscala/sys/process/ProcessBuilder;=1|CUSTOM_INJECTION
INVOKEVIRTUAL|scala/sys/process/Process$|apply|(Ljava/lang/String;Ljava/io/File;Lscala/collection/Seq;)Lscala/sys/process/ProcessBuilder;=2|CUSTOM_INJECTION
INVOKEVIRTUAL|scala/s
@mweiden
mweiden / keybase.md
Created April 1, 2014 11:43
keybase.md

Keybase proof

I hereby claim:

  • I am mweiden on github.
  • I am weiden (https://keybase.io/weiden) on keybase.
  • I have a public key whose fingerprint is E85D 0953 1212 7854 3338 D606 5178 6846 2377 D9BB

To claim this, I am signing this object:

@mweiden
mweiden / gist:2151974
Created March 21, 2012 19:46
bill links
dsf