Skip to content

Instantly share code, notes, and snippets.

@skurfer
skurfer / leaker.py
Created March 14, 2017 14:05
Leak Test
import gc
import time
import sys
import resource
from boto3.session import Session
prev_mem = 0
print('pass, using, diff')
line_tmpl = '{}, {}, {}'
import requests
import plistlib
from sys import stdout
import codecs
streamWriter = codecs.lookup('utf-8')[-1]
stdout = streamWriter(stdout)
headers = {
# 'User-Agent': 'Quicksilver/3932 OSX/10.6.8 (x86)', # Snow Leopard
# 'User-Agent': 'Quicksilver/3932 OSX/10.7.4 (x86)', # Lion
@skurfer
skurfer / changelog.py
Created January 24, 2012 20:59
Convert change log to HTML and link issues
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import re
import codecs
import markdown
## get the original text
input_file = codecs.open("CHANGELOG", mode="r", encoding="utf8")
text = input_file.read()
@skurfer
skurfer / scan_plugins.py
Created August 29, 2011 19:24
Identify Quicksilver plug-ins with (and without) 64-bit support
# encoding: utf-8
import plistlib as plist
import os
from commands import getoutput
plugin_path = os.getenv('HOME', '') + '/Library/Application Support/Quicksilver/PlugIns/'
plugin_data = {}
count_all = 0
count_64 = 0