This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Create an OS X Mavericks vagrant box (for VMWare) | |
| # Assumes you have /Applications/Install OS X Mavericks.app, brew, and of course vagrant | |
| # http://grahamgilbert.com/blog/2013/08/23/creating-an-os-x-base-box-for-vagrant-with-packer/ | |
| EDITOR="mate -w" | |
| WORKDIR=/tmp/osxvagrant | |
| mkdir -p $WORKDIR | |
| cd $WORKDIR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| ''' | |
| The problem: Making NSData objects from byte strings is a pain. | |
| To convert 0xb801000000c3 to NSData I have to make an escaped C string somehow, | |
| which is either going to be annoying hardcoding or unnecessary categories. | |
| Most basic foundation classes have literals (@1, @"string", etc.). Why not NSData? | |
| This fixes that. | |
| Simply do: NSData *data = @<b801000000c3>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # python blah.py my plaintext here | |
| # F3C3ECD09B3238CB8060C2AF55BFC31451FF8C8DA0B6A0FC876FFA54D6D72B9BE3CAD927F8 | |
| # http://homebrew.herokuapp.com/?plaintext=my+plaintext+here | |
| import requests | |
| from HTMLParser import HTMLParser | |
| from urllib import quote | |
| import sys | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cd "${0%/*}" | |
| export DYLD_LIBRARY_PATH=../Dependencies/QtCore.framework/Versions/Current:../Dependencies/QtGui.framework/Versions/Current:../Dependencies:$DYLD_LIBRARY_PATH | |
| bin/python armorybuild/ArmoryQt.py & |
NewerOlder