Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block tszming

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
#!/usr/bin/env python2
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
tszming /
Created Dec 9, 2012
Updating caching headers for Amazon S3 and CloudFront
#!/usr/bin/env python
Updates S3 objects with new cache-control headers.
python <bucket_name> <keys>*
View .hgrc
username = Tsz Ming WONG <>
changegroup = hg update >&2
View .gitconfig
name = Tsz Ming WONG
email =
denyCurrentBranch = warn
diff = auto
status = auto
tszming / objc.cfg
Created Apr 25, 2011
My uncrustify config file for objective-c
View objc.cfg
# uncrustify config file for objective-c and objective-c++
indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs
output_tab_size = 4 # new tab size
indent_columns = output_tab_size
indent_label = 2 # pos: absolute col, neg: relative column
indent_align_assign = FALSE
You can’t perform that action at this time.