Skip to content

Instantly share code, notes, and snippets.

View michaeldwan's full-sized avatar
🍩

Michael Dwan michaeldwan

🍩
View GitHub Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@michaeldwan
michaeldwan / memstat.rb
Created November 6, 2011 19:26 — forked from ryandotsmith/memstat.rb
I am using this to profile my workers (queue_classic)
module Memstat
extend self
MAC = RUBY_PLATFORM =~ /darwin/
def log
"memory=#{real_mem_size} ruby_objects=#{num_objects}"
end
def real_mem_size