Skip to content

Instantly share code, notes, and snippets.

@meunierd
meunierd / example
Created June 25, 2019 01:58
ndcpy list --tree
/Users/meunierd/Games/Dead of the Brain/doba.hdm
├─ FLAG3
├─ ADVSHELL.COM
├─ CONFIG.SYS
├─ FLAG4
├─ FLAG5
├─ FLAG6
├─ FLAG7
├─ FLAG8
├─ FLAG1
### Keybase proof
I hereby claim:
* I am meunierd on github.
* I am meunierd (https://keybase.io/meunierd) on keybase.
* I have a public key whose fingerprint is 20B5 EE1A A9D1 1D12 2FEE 821B 0001 19F1 A2C5 3520
To claim this, I am signing this object:
@meunierd
meunierd / s3fs-wrapper
Created October 8, 2014 14:55
S3FS Wrapper -- sets file permissions properly
#!/usr/bin/env python
import re
import sys
from subprocess import check_output, call
def current_uid_gid():
user = check_output(['id']).split()[:2]
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/home/admin/venvs/pfc-members-e7d3f5093f9844cb70d8f010ffde813ce125b78e/local/lib/python2.7/site-packages/pyramid-1.5a1-py2.7.egg/pyramid/router.py", line 271, in __call__
response = self.invoke_subrequest(request, use_tweens=True)
File "/home/admin/venvs/pfc-members-e7d3f5093f9844cb70d8f010ffde813ce125b78e/local/lib/python2.7/site-packages/pyramid-1.5a1-py2.7.egg/pyramid/router.py", line 247, in invoke_subrequest
response = handle_request(request)
File "/home/admin/venvs/pfc-members-e7d3f5093f9844cb70d8f010ffde813ce125b78e/local/lib/python2.7/site-packages/pyramid-1.5a1-py2.7.egg/pyramid/tweens.py", line 21, in excview_tween
response = handler(request)
File "/home/admin/venvs/pfc-members-e7d3f5093f9844cb70d8f010ffde813ce125b78e/local/lib/python2.7/site-packages/pyramid-1.5a1-py2.7.egg/pyramid/router.py", line 163, in hand
@meunierd
meunierd / expansion.py
Created June 9, 2012 22:40
Python ROM Expander Pro
#!/usr/bin/env python
from binascii import unhexlify
import md5
__author__ = "Devon Meunier"
__email__ = "devon.meunier@utoronto.ca"
__license__ = "MIT"
__version__ = "0.3"
@meunierd
meunierd / watcher.py
Created March 23, 2012 01:28
vmstat 1 | python watcher.py 12 5000 5
#!/usr/bin/env python
import sys
col = int(sys.argv[1])
val = int(sys.argv[2])
limit = int(sys.argv[3])
count = 0
@meunierd
meunierd / haste.py
Created January 24, 2012 05:20
Hastebin Python Client
#!/usr/bin/env python
"""
Usage:
$ cat hastebin.py | ./hastebin.py
http://hastebin.com/KEY
$ ./hastebin.py hastebin.py
http://hastebin.com/KEY
"""