Skip to content

Instantly share code, notes, and snippets.

@rnelson
rnelson / mkbigfile.py
Created October 4, 2011 13:49
Make a big file
#!/usr/bin/env python
# Based on http://stackoverflow.com/questions/982659/quickly-create-large-file-on-a-windows-system
import os
import sys
if len(sys.argv) != 3:
print 'usage: mkbigfile.py <filename> <size in gb>'
sys.exit(1)
# Grab the filename and requested size, convert the size to bytes
@rnelson
rnelson / less-style.css
Created August 1, 2011 18:41
My configs for basic LessServlet usage
/* the following is the result of viewing /css/style.css (which runs through LessServlet) */
body{background:#9de;color:black;}
@rnelson
rnelson / directorysizes.sh
Created December 17, 2010 17:13
Aliases to find directory sizes
alias ds="find -maxdepth 1 -type d -path '.\/*' -exec du -sh {} \;"
alias sds="sudo find -maxdepth 1 -type d -path '.\/*' -exec du -sh {} \;"
alias dsg="find -maxdepth 1 -type d -path '.\/*' -exec du -sh {} \; | grep "
alias sdsg="sudo find -maxdepth 1 -type d -path '.\/*' -exec du -sh {} \; | grep "