Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#############################################################
# Init script for CrashplanEngine
#
# Code42 Software Inc, Minneapolis, MN
# http://www.code42.com/
#
# Copyright (c) 2009 Code42 Software, All Rights Reserved
#############################################################
@xraystyle
xraystyle / usermem
Created December 20, 2013 23:32
Quick script to get the total memory usage for a specific user on a server.
#!/usr/bin/env ruby -w
unless ARGV[0]
puts "\nSpecify a username. \n\nUsage:"
puts "usermem UserName\n\n"
exit!
end
total = 0