Skip to content

Instantly share code, notes, and snippets.

View v0i0's full-sized avatar

Markus Hoehnerbach v0i0

  • Nvidia
  • California
View GitHub Profile
@v0i0
v0i0 / traceit.py
Created August 29, 2014 10:47
Trace assembly instructions via gdb
import subprocess as sp
import select
import sys
import time
executable = "a.out"
function = "call_the_wrapper_fn"
arguments = ""
gdb = sp.Popen(["gdb", executable], stdin=sp.PIPE, stdout=sp.PIPE, stderr=sp.STDOUT)
@v0i0
v0i0 / change_id3.py
Created July 16, 2014 11:57
python script to tag mp3 files by directory structure
from mutagen.mp3 import MP3
from mutagen.id3 import TIT2, TPE1, TALB
import os
import sys
for artist in sys.argv[1:]:
print 'artist=%s' % artist
for root, directories, filenames in os.walk(artist):
print 'Entering %s' % root
album = os.path.basename(root)