Skip to content

Instantly share code, notes, and snippets.

tszming

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
View hb-test.py
#!/usr/bin/env python2
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@tszming
tszming / fix_cloudfront.py
Created Dec 9, 2012
Updating caching headers for Amazon S3 and CloudFront
View fix_cloudfront.py
#!/usr/bin/env python
"""
fix_s3_cache_headers
~~~~~~~~
Updates S3 objects with new cache-control headers.
Usage::
python fix_cloudfront.py <bucket_name> <keys>*
View .hgrc
[ui]
username = Tsz Ming WONG <tszming@gmail.com>
[hooks]
changegroup = hg update >&2
View .gitconfig
[user]
name = Tsz Ming WONG
email = tszming@gmail.com
[receive]
denyCurrentBranch = warn
[color]
diff = auto
status = auto
@tszming
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.