Skip to content

Instantly share code, notes, and snippets.

@tedslittlerobot
Last active September 14, 2016 08:50
Show Gist options
  • Save tedslittlerobot/d07814be080024e55769 to your computer and use it in GitHub Desktop.
Save tedslittlerobot/d07814be080024e55769 to your computer and use it in GitHub Desktop.
Reformat installation
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/stefan.horner/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="pygmalion"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(osx git sublime capistrano aws docker)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
export PATH=/usr/local/php5/bin:$PATH
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

defaults write -g com.apple.swipescrolldirection -bool TRUE defaults write com.apple.Safari ShowStatusBar -bool true

xcode-select —install

setup oh my zsh

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

sed 's/robbyrussell/pygmalion/gp' .zshrc > zshrc
sed 's/\(git\)/(osx git sublime capistrano aws docker )/gp' zshrc > .zshrc
rm zshrc

setup php

curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0 sudo apachectl stop

add export PATH=/usr/local/php5/bin:$PATH to .zshrc

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew install rbenv
brew tap caskroom/cask
brew tap caskroom/versions
brew cask install --appdir=/Applications alfred tower sequel-pro textmate sublime-text3 google-chrome firefox spotify lastpass launchbar karabiner sketch virtualbox vagrant atom slack mplayerx xscreensaver steam dockertoolbox dropbox passenger

Check passenger installation passenger-config validate-install

The OpenSSL library (0.9.8zc) used by PHP does not support TLSv1.2 or TLSv1.1.

If possible you should upgrade OpenSSL to version 1.0.1 or above.

install composer

curl -sS https://getcomposer.org/installer | php
chmod +x composer.phar
mv composer.phar /usr/local/bin/composer

install homestead

AWS

curl -O http://s3.amazonaws.com/ec2-downloads/ec2-api-tools.zip
sudo mkdir -p /usr/local/ec2
sudo unzip ec2-api-tools.zip -d /usr/local/ec2

st3 dropbox setup

cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/
rm -r User
ln -s ~/Dropbox/.sublime-3/User

xerox 3.43.0

add launch daemons

curl https://raw.githubusercontent.com/golincode/guides/master/capistrano/ssh-add.plist -o ~/Library/LaunchAgents/com.golin.ssh-add.plist
sudo chown root:wheel ~/Library/LaunchAgents/com.golin.ssh-add.plist
sudo launchctl load ~/Library/LaunchAgents/com.golin.ssh-add.plist
curl https://raw.githubusercontent.com/golincode/guides/master/devops/PortForwardingAtLaunch.plist -o ~/Library/LaunchAgents/com.golin.portforwarding.plist`
sudo chown root:wheel ~/Library/LaunchAgents/com.golin.portforwarding.plist
sudo launchctl load ~/Library/LaunchAgents/com.golin.portforwarding.plist
  • Seil - change capslock to key 53 (escape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment