Skip to content

Instantly share code, notes, and snippets.

View kwoods's full-sized avatar

Kevin Woods kwoods

  • Scotland, UK
  • 07:36 (UTC +01:00)
View GitHub Profile
#!/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
@kwoods
kwoods / installing_rails_322_on_mac_os_x_lion
Created March 20, 2012 15:22
Installing Ruby on Rails 3.2.3 for Mac OS X 10.7.3 Lion
# This is a guide for how I installed rails 3.2.2 on Mac OS X 10.7.3 Lion upgrade.
# There is no Warranty expressed, and I am not responsible for any issues that may arise from following this guide.
# - inspired by tuscanidream
# Install RVM
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
# Add the following line to your .bash_profile to load RVM into your new shells
[[ -s "/Users/my_user_name/.rvm/scripts/rvm" ]] && source "/Users/my_user_name/.rvm/scripts/rvm" # This loads RVM into a shell session.