This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sometimes, specially if we are building a monitoring system or an admin UI, | |
# we need to be able to easily check if a process is running. | |
# Unfortunately this is not directly available through Process module. so here is a patch to add it | |
# | |
# Usage: | |
# Process.running?(pid) | |
# Process.memory(pid) # returns the memory usage in KB | |
module Process |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git archive master | tar -x -C /somewhere/else | |
OR | |
git archive --format zip --output /full/path/to/zipfile.zip master | |
Ref: http://stackoverflow.com/questions/160608/how-to-do-a-git-export-like-svn-export |
NewerOlder