This file contains 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
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# Version 2.0 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# | |
# 2013 updates: | |
# - fixed the broken "save personal Schemes" | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, |
This file contains 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
import subprocess | |
import sys | |
import random | |
def main(): | |
args = sys.argv[1:] | |
output = subprocess.check_output(['head'] + args) | |
lines = output.splitlines() | |
idx = random.randint(0, len(lines)) | |
lines[idx] = "Fuck off, happy jerks." |
This file contains 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
""" | |
Example command plugin | |
Copy this to your ~/.voltron/plugins directory. It will be loaded when | |
Voltron is initialised, and register a debugger command that works as follows: | |
$ lldb /tmp/inferior | |
Voltron loaded. | |
Run `voltron init` after you load a target. | |
(lldb) target create "/tmp/inferior" |
This file contains 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
""" | |
Example command plugin | |
Copy this to your ~/.voltron/plugins directory. It will be loaded when | |
Voltron is initialised, and register a debugger command that works as follows: | |
$ lldb /tmp/inferior | |
Voltron loaded. | |
Run `voltron init` after you load a target. | |
(lldb) target create "/tmp/inferior" |
This file contains 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
# kwarg/object style | |
env = Environment( | |
# config/main environment directory | |
dir=Directory('~/.myproject', children=[ | |
# config file within that directory, defaults loaded from a file | |
# inside the package | |
ConfigFile('config', default=PackageFile('config/default.cfg')) | |
# user plugin directory, plugins loaded automatically | |
PluginDirectory('plugins') |
This file contains 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
Show hidden characters
{ | |
"folders": [ | |
{ | |
"follow_symlinks": true, | |
"path": "." | |
} | |
], | |
"build_systems": [ | |
{ | |
"name": "Xcode Build", |
This file contains 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
import sys | |
sys.path = [p for p in sys.path if 'Cellar' not in p] | |
new_path = ['/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', | |
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', | |
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', | |
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', | |
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', | |
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', | |
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', |
This file contains 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
# useful for $ subl `pyfile $mod` | |
pypath() { | |
PY=$(python -c "import $1; print($1.__file__)"|sed 's/pyc/py/') | |
if [ $(basename "$PY") != "__init__.py" ] | |
then | |
echo $PY | |
else | |
echo $(dirname "$PY") | |
fi |
This file contains 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
To try out the Voltron disassembly view syntax highlighting: | |
$ pip install pygments-style-solarized | |
Check out ToT Voltron and reinstall it: | |
$ cd voltron | |
$ git pull | |
$ sudo python setup.py install |
This file contains 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
😒🙅🙄 | |
$thing for fun and profit | |
all your $thing are belong to $shutup | |
honey I $verbed the $thing | |
$thing demystified | |
$thing: a deep dive | |
$verb all the things | |
make $thing great again | |
$x and $y and $z, oh my! |