Skip to content

Instantly share code, notes, and snippets.

View neatlife's full-sized avatar
😀
Out sick

neatlife

😀
Out sick
View GitHub Profile
@anujluthra
anujluthra / mogilefs_setup.sh
Created May 14, 2012 04:02
setting up MogileFS on Macs
# initially compiled by joff
sudo perl -MCPAN -e 'install Danga::Socket'
sudo perl -MCPAN -e 'install Gearman::Client'
sudo perl -MCPAN -e 'install Gearman::Server'
sudo perl -MCPAN -e 'install Gearman::Client::Async'
sudo perl -MCPAN -e 'install Net::Netmask'
sudo perl -MCPAN -e 'install IO::WrapTie'
sudo perl -MCPAN -e 'install IO::AIO'
sudo perl -MCPAN -e 'install List::MoreUtils'
@vigo
vigo / free-memory.rb
Created January 27, 2012 18:00
"free" command for osx. Shows available memory
#!/usr/bin/env ruby
# encoding: utf-8
# By Uğur Özyılmazel, @vigobronx | @ugurozyilmazel
# http://vigodome.com | http://ugur.ozyilmazel.com | http://github.com/vigo
def get_paged_memory_usage(match_string, paging=4096)
mvar = 3
if match_string.split(/[^\w]/).length > 1
mvar = 4
@nazgob
nazgob / ctags.setup
Created January 6, 2012 13:44
ctags setup on mac
# you have ctags but it does not work...
$ ctags -R --exclude=.git --exclude=log *
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
#you need to get new ctags, i recommend homebrew but anything will work
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"