This file contains hidden or 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
db.system.namespaces.find({ name : /tmp.mr/ }).forEach(function(z) { | |
try { | |
db.getMongo().getCollection( z.name ).drop(); | |
} catch (exception) { | |
try { | |
db.getMongo().getCollection( z.name.replace("$", "\\$") ).drop(); | |
} catch(exception2) { | |
printjson({ error : 'error dropping collection', e : exception }); | |
} | |
} |
This file contains hidden or 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
#!/bin/bash | |
kill -2 `cat /data/mongod.lock` |
This file contains hidden or 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
# MacPorts Installer addition on 2010-09-24_at_01:54:57: adding an appropriate PATH variable for use with MacPorts. | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
export SVN_EDITOR="/usr/bin/vim" | |
# Finished adapting your PATH environment variable for use with MacPorts. | |
alias sshi='ssh -i ~/.ssh/piva' | |
alias sshprod='sshi [email protected]' | |
alias sshprodtunnel='sshi -fvND 9090 [email protected]' | |
alias sshec2='ssh -i ~/.ssh/piva.pem [email protected]' | |
alias scpec2='scp -i ~/.ssh/piva.pem' |