Skip to content

semanticdreamer/osx-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

OS X Cookbook

Update the RubyGems system software:

sudo gem update --system

Make --no-ri --no-rdoc the system wide default for gem install:

sudo vi /etc/gemrc
gem: --no-ri --no-rdoc

Install Homebrew - "The missing package manager for OS X":

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Check your system for potential problems and fix them - if any (exits with a non-zero status if any problems are found). Repeat... until it tells you "Your system is raring to brew." :-)

brew doctor

Install Vagrant - "Create and configure lightweight, reproducible, and portable development environments.":

sudo gem install vagrant

Install Veewee - "tool to easily build vagrant base boxes":

sudo gem install veewee

Web Development

Creates a shell function 'server', starting an HTTP server from current working directory, optionally specifing the port:

vi ~/.bashrc
function server() {
  local port="${1:-8000}"
  open "http://localhost:${port}/"
  python -m SimpleHTTPServer "$port"
}

# called like so:
server 3000

Editors & (Markdown) Writing Tools

Work with files in Sublime Text from the command line

Sublime Text 2 includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text 2, as well working as an EDITOR for unix tools, such as git and subversion. sublimetext.com OS X Command Line

mkdir ~/bin

vi ~/.bashrc
PATH=$PATH:~/bin # Add ~/bin to PATH

source ~/.bashrc

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

Markdown Preview with Marked from Sublime Text

Download Marked Bonus Pack and copy the Marked.sublime-build file to ~/Library/Application Support/Sublime Text 2/Packages/User/: pressing [Command]-[B] will open the current file in Marked for preview.

Utilities

ClamXav Anti-Virus

  • ClamXav - the Free Anti-Virus Solution for Mac OS X

ClamXav Sentry provides the ability to watch folders for changes to their contents. As soon as a file or folder is added to one of the watched folders, it is scanned by ClamXav. If the new addition is clean, no further action is required on your part. On the other hand, if it is infected, a warning message is displayed immediately alerting you to the fact and allowing you to decide which course of action to take.

Miscellaneous

About

Recipes and best practice for OS X setup.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published