Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dirkstoop on github.
  • I am dirkstoop (https://keybase.io/dirkstoop) on keybase.
  • I have a public key ASC5QLfqErkNrFyKOQw0eLAvSWT0pnp6bZZzsI_NRP_Wqwo

To claim this, I am signing this object:

@dirkstoop
dirkstoop / Automatic.py
Created May 19, 2011 10:10
Versions script that supports native Word comparisons
#!/usr/bin/python
import os, sys
# more imports inline below, for better performance we only import "What you need, when you need it" (just like those domain-squatting websites)
"""
Requires: Mac OS X 10.5 or later (or PyObjC installed on 10.4)
Created by Dirk Stoop/Sofa BV on 2009-09-02.
@dirkstoop
dirkstoop / clearsvnentries.py
Created March 15, 2011 18:37
Recursively clear those pesky .svn folders from a directory
#!/usr/bin/env python
#
# clearsvnentries.py
# scripts
#
# Created by Dirk on 2009-06-03.
# Copyright 2009 Sofa BV. Use for good, not bad.
#
import os
@dirkstoop
dirkstoop / getuti.py
Created January 7, 2011 17:13
quick and dirty way to see what NSWorkspace thinks a file's UTI is…
#!/usr/bin/env python
from AppKit import NSWorkspace
import sys
if __name__ == '__main__':
if not len(sys.argv) > 1:
print 'Usage: getuti path'
sys.exit(1)
else:
@dirkstoop
dirkstoop / gist:757378
Created December 28, 2010 16:19
The problem with macports
[dirkBook:~] dirk% sudo port install ntop
Password:
---> Computing dependencies for help2man
---> Fetching help2man
---> Attempting to fetch help2man-1.38.2.tar.gz from http://lil.fr.distfiles.macports.org/help2man
---> Verifying checksum(s) for help2man
---> Extracting help2man
---> Configuring help2man
---> Building help2man
---> Staging help2man into destroot