Skip to content

Instantly share code, notes, and snippets.

@mnem-gists
mnem-gists / snippet.sh
Created May 8, 2012 13:44
bash: Set large ulimit's
#/bin/bash
#
# Change the limits temporarily for a user account
# Drop into a root shell
sudo su -
# Set the limits
ulimit -n 9999
@mnem-gists
mnem-gists / Rakefile
Created April 7, 2012 16:17
Coffeescript: Simple Rakefile build system
# Purty colours
require 'highline/import'
begin
require 'Win32/Console/ANSI' if RUBY_PLATFORM =~ /win32/
rescue LoadError
raise 'You must `gem install win32console` to use color on Windows'
end
# Actual useful parts of the rake file
@mnem-gists
mnem-gists / snippet.rb
Created March 27, 2012 08:53
Ruby: shebang
#!/usr/bin/env ruby -wKU
@mnem-gists
mnem-gists / snippet.sh
Created March 16, 2012 12:05
Xcode: xcode-select for getting Octopress/rb-fsevent building the native parts correctly
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer
@mnem-gists
mnem-gists / snippet.sh
Created March 16, 2012 12:03
Xcode: xcode-select for the correct Developer folder for Xcode 4.3
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
@mnem-gists
mnem-gists / snippet.txt
Created March 15, 2012 21:16
Licence: MIT, plaintext
(c) Copyright 2012 David Wagner.
Complain/commend: http://noiseandheat.com/
Licensed under the MIT license:
http://www.opensource.org/licenses/mit-license.php
Permission is hereby granted, free of charge, to any person obtaining a copy