Skip to content

Instantly share code, notes, and snippets.

View ghostrocket's full-sized avatar

Keith Fitzgerald ghostrocket

View GitHub Profile
@ghostrocket
ghostrocket / site-packages
Created February 24, 2011 21:05
find site packages
python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
@ghostrocket
ghostrocket / gist:801929
Created January 29, 2011 15:46
javascript curry
Function.prototype.curry = function curry() {
var fn = this, args = Array.prototype.slice.call(arguments);
return function curryed() {
return fn.apply(this, args.concat(Array.prototype.slice.call(arguments)));
};
};
// pulled from this stackoverflow.com post http://stackoverflow.com/questions/4674021/xhr-get-request-url-in-onreadystatechange
# put this file in /usr/local/etc/my.cnf
[mysqld]
max_connections = 10
key_buffer_size = 16K
max_allowed_packet = 1M
table_open_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K