I hereby claim:
- I am bdashrad on github.
- I am bdashrad (https://keybase.io/bdashrad) on keybase.
- I have a public key whose fingerprint is 1388 24F3 A1D5 B7B2 6356 8EFB 9705 FC06 B37B 41E9
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'netaddr' | |
regexfile = ARGV[0] | |
testfile = ARGV[1] | |
regex = Regexp.new(File.read(regexfile)).freeze | |
File.foreach(testfile) do |test| |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Net::Netmask; | |
use Regexp::Assemble::Compressed; | |
print "Enter the filename to varnishize: "; | |
#my $filename = <STDIN>; |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
PIDFILE="/mnt/tmp/myapp.pid" | |
if [ -e "${PIDFILE}" ] && (ps -u $(whoami) -opid= | | |
grep -P "^\s*$(cat ${PIDFILE})$" &> /dev/null); then | |
echo "Already running" | |
exit 99 | |
fi |
Homebrew/legacy-homebrew#31432
sudo python -m easy_install --upgrade setuptools
sudo easy_install pip
http://stackoverflow.com/questions/19617686/trying-to-install-pycrypto-on-mac-osx-mavericks
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future sudo -E pip install pycrypto
#!/usr/bin/python | |
import sys | |
def cidr_to_regex(cidr): | |
ip, prefix = cidr.split('/') | |
base = 0 | |
for val in map(int, ip.split('.')): | |
base = (base << 8) | val | |
#!/usr/bin/env ruby | |
require 'json' | |
require 'open-uri' | |
phones = { | |
'64 gb silver att' => 'MG4X2LL%2FA', | |
'64 gb gray att' => 'MG4W2LL%2FA', | |
'64 gb gold att' => 'MG502LL%2FA' | |
} |
#!/usr/bin/env ruby | |
require 'netaddr' | |
regexfile = ARGV[0] | |
testfile = ARGV[1] | |
regex = Regexp.new(File.read(regexfile)).freeze | |
File.foreach(testfile) do |test| |