Skip to content

Instantly share code, notes, and snippets.

@swizzlr
Last active December 31, 2015 02:09
Show Gist options
  • Select an option

  • Save swizzlr/7919129 to your computer and use it in GitHub Desktop.

Select an option

Save swizzlr/7919129 to your computer and use it in GitHub Desktop.

#!!! last updated 11/12/2013. git 1.8.5, BBEdit 10.5, OS 10.9, ruby 2, Xcode 5 !!!#

#Long Operations ##Dropbox and Sync https://www.dropbox.com/downloading

##Homebrew (req for RVM)

ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
  • dl command line tools

##Xcode

  • Download from App Store
  • Documentation

##RVM

\curl -sSL https://get.rvm.io | bash -s stable --ruby=2.0.0 && rvm alias create default 2.0.0

##AppCode https://www.jetbrains.com/objc/download/

  • java install

#Porcelain Settings Sanity ##Trackpad Settings

  • three finger drag and tap to click

##Keyboard Settings

  • remove shortcuts for spotlight
  • add shortcut for keyboard change
  • enable Full Keyboard Access

##Fonts https://github.com/Lokaltog/powerline-fonts/archive/master.zip

  • select all in source code pro and install

http://sourceforge.net/projects/sourcecodepro.adobe/files/

  • get the "Fonts Only"
  • install the OTF ones!

##Finder

  • customize toolbar, add path button

#Sanity GUI Apps ##Launchbar

http://www.obdev.at/products/launchbar/download.html

  • set to not use dock
  • add to login items

##DuckDuckGo

sudo vi /etc/hosts

append:

184.72.115.86 search.yahoo.com

Safari prefs privacy: Do Not Track, Do not preload, Do not suggest

##BBEdit http://www.barebones.com/products/bbedit/

  • install command line tools and
echo 'export EDITOR="bbedit -w"' >> .bash_profile
  • Appearance: page guide off, tab stops on

  • Editor Defaults: soft wrap to window width

  • Languages:

    • language preferences:
      • Ruby :: auto-expand tabs, tab width 2, soft wrap to page guide
    • extension mappings:
      • txt :: Markdown
  • Text Files: end with line break, strip trailing whitespace

#UNIX Sanity ##ssh and github

cd
ssh-keygen (passphrase and fingerprint into 1password)
ssh-add -K .ssh/id_rsa

open this page https://github.com/settings/ssh

cat .ssh/id_rsa.pub|pbcopy and paste in with good name

test with ssh -T git@github.com

##git

brew install git

create a ~/.gitignore_global with this in it:

# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
.idea/

git config --global --add core.excludesfile ~/.gitignore_global && git config --global --add core.pager cat && git config --global --add user.name Swizzlr && git config --global --add user.email git@swizzlr.co

add completion:

mkdir ~/source ; curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash > ~/source/git-completion.bash && echo -e "\nsource ~/source/git-completion.bash\n" >> ~/.bash_profile

##ruby 1.9.3

rvm install 1.9.3

##cocoapods

rvm use 2.0.0 && gem install cocoapods

##gist

brew install gist
gist --login

##Prompt Settings: Ocean – make default Source code pro for powerline regular 11 Window: Active process name only

mkdir ~/source ; cd ~/source && git clone https://github.com/milkbikis/powerline-shell && cd powerline-shell && cp config.py.dist config.py && bbedit config.py

make it the following:

SEGMENTS = ['username','ruby_version','ssh','cwd','read_only','git','jobs','root',]

THEME = 'default'
./install.py && bbedit .bash_profile

make it:

function _update_ps1() {
    export PS1="$(~/source/powerline-shell/powerline-shell.py $? 2> /dev/null)"
}

export PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"

export PATH="/usr/local/bin:$PATH"

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

reload all terminals (source ~/.bash_profile)

#Near-Sanity GUI Apps ##1Password

  • App Store

##Bartender http://www.macbartender.com/Demo/Bartender.zip

  • general: launch at login
  • items:
    • main: iStat Menus, Wifi, battery
    • rest in BT bar: set Cloud app to show in main for 30s after Active
    • hide notification center completely

##iStat Menus http://bjango.com/mac/istatmenus/

CPU - all cores, pie chart Mem - U/F, show inactive as free Time – Three Letter Weekday, Short Day, Three Letter Month, 24h hour : minute ; London, NY, SF, Sydney

Combined – Dropdown: disks, network, sensors, battery (disks all removable)

##Marked http://marked2app.com/download/Marked.zip

add to BBEdit:

echo -e '#!/usr/bin/env bash
osascript -e "tell application \"BBEdit\"" -e "set myFile to get file of front document of window 1" -e "end tell" -e "tell application \"Marked\"" -e "activate" -e "open myFile" -e "end tell" -e "return"' > ~/Library/Application\ Support/BBEdit/Scripts/Open\ in\ Marked

##SuperDuper! http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html

##Knock to Unlock – multi mac support not yet available http://www.knocktounlock.com/download

##Google Chrome https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg

##Silverlight http://www.microsoft.com/silverlight/

##Back To My Mac (iCloud)

  • enable remote management and remote login

##CloudApp (AppStore)

  • login and add to login items

##Kaleidoscope http://www.kaleidoscopeapp.com

  • enable git integration

##MacGPG https://gpgtools.org/#gpgsuite

Import from 1Password secure note "PGP Keys" GPGMail (in Mail prefs): check everything except "Create List Preview"

Enable git integration with PGP key: (my username/email does not match with the key exactly, so signingkey must be specified)

git config --global user.signingkey E8ACBB1C

#Finally, license all apps

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