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
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
# Alias commands | |
alias spotlight_start='sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist' | |
alias spotlight_stop='sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist' | |
alias tomcat_start='sudo /usr/local/tomcat/bin/startup.sh' | |
alias tomcat_stop='sudo /usr/local/tomcat/bin/shutdown.sh' | |
alias trash_empty='sudo rm -rf ~/.Trash/*' | |
alias dock_kill='sudo killall -KILL Dock' | |
alias finder_showall='defaults write com.apple.finder AppleShowAllFiles ON; killall Finder' |
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
for (var element in myObject) { | |
switch (typeof myObject[element]) { | |
case "string": | |
console.log(element + ': ' + myObject[element]) | |
break | |
case "object": |