You are on page 1of 8

Table

of Contents
1. Introduction
2. Terminal Aliases
3. Sublime Text fun
4. Convert FLAC files
5. Google DNS settings

OS X Fun
Tip, tricks and fun stuff for Mac OS X
book passing

Terminal Aliases
Aliases for showing/hiding hidden files
1. open up .bash_profile in nano

$ sudo nano ~/.bash_profile

2. add these lines to .bash_profile

# aliases for showing and hiding hidden files


alias showFiles='defaults write com.apple.finder AppleShowAllFiles YES;
killallFinder/System/Library/CoreServices/Finder.app
alias hideFiles='defaults write com.apple.finder AppleShowAllFiles NO;
killall Finder /System/Library/CoreServices/Finder.app

3. save .bash_profile

ctrl-o

4. exit nano

ctrl-x

5. re-source the .bash_profile

$ source ~/.bash_profile

Alias for instant RLogin access


1. install homebrew
http://brew.sh/
2. install sshpass

$ brew install sshpass

3. open up .bash_profile in nano

$ sudo nano ~/.bash_profile

4. add these lines to .bash_profile

# aliases for connecting to rlogin


alias rlogin='sshpass -p <password> ssh <login_id>@rlogin.cs.vt.edu -X'

5. save .bash_profile

ctrl-o

6. exit nano

ctrl-x

7. re-source the .bash_profile

$ source ~/.bash_profile

Sublime Text fun


Install the SFTP manager
1. Install the Sublime Text Package Manager https://sublime.wbond.net/installation
2. Install the Sulbime SFTP Package http://wbond.net/sublime_packages/sftp/installation

Convert a folder of FLAC to ALAC:


Installing ffmpeg
brew install ffmpeg

Converting all FLAC files in the current working directory to ALAC (Apple
Lossless) files
for f in ./*.flac; do ffmpeg -n -i "$f" -c:a alac "${f%.*}.m4a" && rm "$f"; done

Google DNS settings


Site: https://developers.google.com/speed/public-dns/docs/using#setup
Default Comcast DNS
10.0.1.1
The Google Public DNS IP addresses (IPv4) are as follows:
8.8.8.8
8.8.4.4
The Google Public DNS IPv6 addresses are as follows:
2001:4860:4860::8888
2001:4860:4860::8844

You might also like