Skip to content

Instantly share code, notes, and snippets.

@halilim
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halilim/3d65b553d9e13a5cfb91 to your computer and use it in GitHub Desktop.
Save halilim/3d65b553d9e13a5cfb91 to your computer and use it in GitHub Desktop.

Security

  • If you don't have a really loaded CPU/harddisk (or have a good performance CPU/harddisk - in practice anything with an i5/i7 CPU should be OK) you should use full disk encryption - FileVault 2 if you have anything in your computer that needs security/privacy.

Hardware/drivers etc

(["Developers"]*3).join(", ")

For a decent Ruby developer machine, start with thoughtbot/laptop. Suggestions for ~/.laptop.local:

#!/bin/sh

brew update
brew upgrade

brew_install_or_upgrade pow
brew_install_or_upgrade mysql

# Requires Homebrew PHP. I.e. if you're going to use php-osx.liip.ch,
# install Composer manually.
# brew_install_or_upgrade homebrew/php/composer

brew_install_or_upgrade ssh-copy-id
brew_install_or_upgrade ncdu
brew_install_or_upgrade terminal-notifier
brew_install_or_upgrade git-extras
brew_install_or_upgrade wget
brew_install_or_upgrade z

brew tap caskroom/cask
brew_install_or_upgrade brew-cask

brew cask install google-chrome
brew cask install dash
brew cask install dropbox
brew cask install iterm2
brew cask install firefox
brew cask install lunchy
brew cask install sourcetree
brew cask install flux

Additional Ruby niceties

LAMP

I couldn't get any combination of homebrew apache and php packages to work together, so I just used php-osx.liip.ch with the default OS X Apache (2.2).

For permissions and security: http://apple.stackexchange.com/a/141298/67191

After upgrading to OS X Yosemite 10.10, you may need to re-install php-osx. If you need php_memcached:

$ xcode-select --install
$ brew install libmemcached
$ sudo /usr/local/php5/bin/pecl install memcached

iTerm additional shortcuts

System-wide env. var.s

$ sudo vi /etc/launchd.conf
setenv PHP_ENV development
setenv IYS_ENV development

Source: http://stackoverflow.com/a/588442/372654, http://stackoverflow.com/a/23481458/372654

MacVim

Install it like this:

brew install macvim --env-std --custom-icons --override-system-vim --with-lua --with-luajit

This way it will have support for skwp/dotfiles and powerline fonts.

Turkish spell checking

  1. Download the latest Firefox Turkish spell checker.
  2. Rename the .xpi file to .zip and extract.
  3. Move .aff and .dic files to ~/Library/Spelling.
  4. (Optional) System Preferences > Keyboard > Text > Spell Checking > Automatic.
  5. Click "Setup" in the same list, check and move Turkish to the top (the list is re-orderable), disable languages other than Turkish and English.

This method would probably work for other languages listed in the Firefox addons as well.

$ sudo easy_install pip
$ sudo pip install stormssh
$ brew install wget # It'll come handy in the future anyway :)
$ wget http://python-distribute.org/distribute_setup.py
$ sudo python distribute_setup.py

Etc

Maintenance/care/use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment