A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 on a virtualenv.
- xcode 5.1.1
- python 3.4.0
- Qt libraries 5.2.1
| #!/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/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 | |
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/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 |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use Net::Netmask; | |
| use Regexp::Assemble::Compressed; | |
| print "Enter the filename to varnishize: "; | |
| #my $filename = <STDIN>; |
| #!/usr/bin/env ruby | |
| require 'netaddr' | |
| regexfile = ARGV[0] | |
| testfile = ARGV[1] | |
| regex = Regexp.new(File.read(regexfile)).freeze | |
| File.foreach(testfile) do |test| |