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
## | |
# Installing Airport Utility 5.6 via the terminal on Mountain Lion | |
## | |
mkdir ~/Downloads/tmp | |
cd ~/Downloads/tmp | |
curl -OL http://support.apple.com/downloads/DL1482/en_US/AirPortUtility56.dmg | |
hdiutil attach AirPortUtility56.dmg | |
xar -x -f /Volumes/AirPortUtility/AirPortUtility56.pkg Payload | |
gzcat AirPortUtility56Lion.pkg/Payload | tar -xf - |
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
## | |
# Simple colorized bash on Mountain Lion | |
## | |
# tell ls to be colourful | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
# tell grep to highlight matches | |
export GREP_OPTIONS='--color=auto' | |
# alias |
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
# hide file or folder | |
chflags -hidden "path to file or folder" | |
# show file or folder | |
chflags -nohidden "path to file or folder" | |
# show all hidden files or folders | |
defaults write com.apple.finder AppleShowAllFiles TRUE | |
killall Finder |
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
# shows you the actuall settings | |
# you'll see the autopoweroff set to '1' and autopoweroffdelay set to 14400 | |
# | |
pmset -g | grep autopoweroff | |
# turn outopower off | |
sudo pmset -a autopoweroff 0 | |
# turn outopower on | |
sudo pmset -a autopoweroff 14400 |
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
# If the Library is on a Time Capsule | |
disconnect all users from the TC | |
disconnect the TC | |
# generall options | |
Option 1 | |
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup. | |
If that fails: |
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
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user |
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
# turns off the startup chime | |
sudo nvram SystemAudioVolume=%80 | |
# turn on the startup chime | |
sudo nvram SystemAudioVolume=&@ |
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
networksetup -listallnetworkservices | |
#To disable IPv6 for wireless, issue the following command: | |
networksetup -setv6off Wi-Fi | |
#to disable IPv6 for Ethernet, issue the following command: | |
networksetup -setv6off Ethernet | |
#To re-enable IPv6, use | |
-setv6automatic instead |
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
# rolling a w6 dice on the terminal | |
echo $[RANDOM%6+1] |
OlderNewer