Skip to content

Instantly share code, notes, and snippets.

View Skipants's full-sized avatar

Andrew Szczepanski Skipants

  • Toronto, Ontario, Canada
View GitHub Profile
@Skipants
Skipants / killemall.sh
Created November 13, 2017 19:20
Killing all grep'd processes on ubuntu
ps -aux | grep node | tr -s " " | cut -d " " -f 2 | xargs kill
@Skipants
Skipants / timezones.yaml
Created January 20, 2011 22:28
Timezones in YAML
TimeZone:
pacific/midway:
olson: Pacific/Midway
text: (GMT-11:00) Midway Island, Samoa
america/adak:
olson: America/Adak
text: (GMT-10:00) Hawaii-Aleutian
etc/gmt+10:
olson: Etc/GMT+10
text: (GMT-10:00) Hawaii
@Skipants
Skipants / CalculatingMacMemory.rb
Created October 27, 2010 02:32
Calculating Physical Memory Usage
# In Kilobytes
memory_usages = `ps -A -o rss=`.split("\n")
total_mem_usage = memory_usages.inject { |a, e| a.to_i + e.strip.to_i }