Skip to content

Instantly share code, notes, and snippets.

View sneak's full-sized avatar

Jeffrey Paul sneak

View GitHub Profile
Verifying myself: My Bitcoin username is +sneak. https://onename.io/sneak
/usr/local/Cellar/openssl/1.0.2a-1/bin/openssl enc -aes-128-ctr \
-pass pass:"$(dd if=/dev/urandom bs=128 count=1 2>/dev/null | base64)" -nosalt < /dev/zero | \
pv -p -e -r --size 512G | \
dd of=/dev/rdisk2 bs=10m
@sneak
sneak / gist:691804298026cda3473d
Created June 5, 2015 09:14
analyze cloudtrail json logs to find api calls made
#!/bin/bash
find . -iname '*.json' | \
xargs -P 8 jq -c '.Records[] | [ .userIdentity.arn, .userIdentity.userName, .eventName ]' \
>> out
@sneak
sneak / rmlanguages
Created June 18, 2015 03:28
remove languages osx
find /Applications \( -iname 'Xcode-beta.app' -o -iname 'Xcode.app' \) -prune -o \
\( -type d -iname '*.lproj' ! -iname 'Base.lproj' \
! -iname 'en_??.lproj' ! -iname 'English.lproj' ! -iname 'en.lproj' \) -print -delete
@sneak
sneak / mysql output
Created May 27, 2011 07:25
That didn't take long...
ganymede:~ sneak$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.12 MySQL Community Server (GPL)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
@sneak
sneak / zeromq.fatbuild.sh
Created June 13, 2011 01:46
build zeromq fat binary (32/64, no ppc sorry) on osx
#!/bin/bash
cd /usr/local/src
if [ ! -e zeromq-2.1.7.tar.gz ]; then
curl -O http://download.zeromq.org/zeromq-2.1.7.tar.gz
fi
#export FLAGS="-arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc"
export FLAGS="-arch i386 -arch x86_64"
export CFLAGS="$FLAGS"
export CXXFLAGS="$FLAGS"
cd /usr/local/src
@sneak
sneak / shell log
Created June 20, 2011 06:44
wtf, osx resolver/sshd
ganymede:~ sneak$ host txl1.local
txl1.local has address 10.112.128.109
ganymede:~ sneak$ dig txl1.local
; <<>> DiG 9.6.0-APPLE-P2 <<>> txl1.local
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34843
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
@sneak
sneak / otrkeys.txt
Created June 28, 2011 18:41
my otr keys
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Updated: 5 June 2012
sneak@datavibe.net xmpp otr key:
DEDDEBB7 444A27F6 F48FD1A1 921880F2 75D7E1EF
sneak@datavibe.net aim otr key:
18F1582E D1B133F0 833912C7 F8350AB9 FE7AFDC9
@sneak
sneak / ipadump.php
Created November 21, 2012 19:58
ipad 3g account slurper
<?php
// iPad 3G Account Slurper
//
// Usage: ./ipadump.php ICCID-base count
// (The script generates the final checkdigit to produce ICCIDs from the entered base)
$useragent="Mozilla/5.0 (iPad)"; //Spoof as iPad
$ICCIDroot = $_SERVER['argv'][1];
$ICCIDcount = $_SERVER['argv'][2];
@sneak
sneak / custompatterns
Created October 6, 2013 16:13
logstash
POSTFIXHOST (%{HOST:remotehostname}\[%{IP:remoteip}\])
POSTFIXQID (?:<postfix_queue_id>[0-9A-F]{11}|NOQUEUE):
RSYSLOGRELPMESSAGE (%{SYSLOG5424PRI}%{TIMESTAMP_ISO8601:syslog5424_ts} %{SYSLOGHOST:loghost} %{SYSLOGPROG}: %{GREEDYDATA:message})