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
| tell application "Safari" | |
| set docUrl to URL of document 1 | |
| set URL of document 1 to docUrl | |
| end tell |
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
| curl -ksO https://gist.github.com/nicerobot/2697848/raw/uninstall-node.sh | |
| chmod +x ./uninstall-node.sh | |
| ./uninstall-node.sh | |
| rm uninstall-node.sh |
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
| sudo nvram SystemAudioVolume="%00" # does nothing | |
| osascript -e 'set volume with output muted' | |
| echo "run at $(date)" >> /var/log/silence_log.txt | |
| #sudo defaults write com.apple.loginwindow LogoutHook /path/to/silence.sh |
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
| #Looking at the Observer Pattern | |
| class Chore | |
| attr_accessor :name, :is_done, :by_who | |
| def initialize(name) | |
| self.name = name | |
| self.is_done = false | |
| end |
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
| [[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
| # Shoes | |
| export PATH=$PATH:/Applications/Shoes.app/Contents/MacOS/ |
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
| ## https://github.com/github/gitignore for more!!! | |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so |