Skip to content

Instantly share code, notes, and snippets.

@troyericg
Last active December 5, 2016 18:36
Show Gist options
  • Save troyericg/48d3f83e4f5dca4605c1 to your computer and use it in GitHub Desktop.
Save troyericg/48d3f83e4f5dca4605c1 to your computer and use it in GitHub Desktop.
Every time I get a new computer I have to remember everything I've ever had to install, and I'm sick of it. (*work in progress*)
A PERONSAL INSTALLATION GUIDE:
--------------------
SETUP:
- Github Account
- AWS
--------------------
INSTALL:
- Xcode (w/ command line tools)
- XQuartz
- Git/Github (SSH)
- Homebrew
- Node
-- NPM: Bower
-- NPM: Grunt/Gulp
-- NPM: http-server
-- NPM: socket.io
-- NPM: Topojson
-- NPM: yo (Yeoman one-liner install: `npm install -g yo bower grunt-cli gulp`)
-- NPM: local tunnel
- Python
-- Virtualenv (w/ Virtual Wrapper)
-- Pip
-- iPython
-- beautifulsoup4
-- Numpy
-- Postgresql
-- PostGIS
-- Django
-- csvkit
- GDAL (w/ Postgres)
- MySQL
- QGIS (GDAL Complete, matplotlib)
- QGIS Plugins (Georeferencer GDAL, SimpleSvg)
- R
- Ruby
-- RVM / rbenv
-- jRuby
-- Gem: rails
-- Gem: nokogiri
-- Gem: mechanize
-- Gem: middleman
-- Gem: middleman-google_drive
-- Gem: compass
-- Gem: sass
- Bash
-- l8get (dwtkns)
-- l8_pansharp (dwtkns)
-- Dan's GDAL scripts from (https://github.com/gina-alaska/dans-gdal-scripts)
-- gsutil (https://developers.google.com/storage/docs/gsutil_install)
--------------------
DESKTOP:
- 1Password
- Cyberduck / Fetch
- Dropbox
- Earth Explorer Bulk Download app (req: Java 7+)
- FontForge
- MapBox / TileMill
- Nodebox
- Twitter
- Sublime Text 2
-- sublime-text-haml-sass (for sass highlighting)
--------------------
EXTENSIONS:
- Colorzilla
- What the Font?
- JSON Helper
- Snappy Snippet
--------------------
SITES:
- Data:
-- Mr. Data Converter
- Mapping:
-- Earth Explorer (Landsat 8)
-- Google Earth Pro
-- geojson.io
-- BatchGeo
--------------------
THINGS TO READ:
- Github: Generating SSH Keys
https://help.github.com/articles/generating-ssh-keys/
- NPR: How to Setup Your Mac to Develop News Applications Like We Do
(http://blog.apps.npr.org/2013/06/06/how-to-setup-a-developers-environment.html)
- Configure Google access
(http://tarbell.readthedocs.org/en/latest/install.html#configure-google-spreadsheet-access-optional)
- Installing Ruby on Rails
http://railsapps.github.io/installrubyonrails-mac.html
- How to setup Django/Postgresql on OS X Mountain Lion using Homebrew
https://gist.github.com/panuta/1852087
- How to Install Xcode, Homebrew, Git, RVM, Ruby & Rails on Mac OS X
http://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/
- Setup Ruby On Rails on Mac OS X 10.9 Mavericks (rbenv)
https://gorails.com/setup/osx/10.9-mavericks
- Solving the "missing required architecture x86_64" problem:
http://judytuna.com/2012/08/15/installing-ruby-1-9-3-errors-and-solutions/
.
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/lib/python2.7/site-packages:$PATH
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export NODE_PATH=/usr/local/lib/node_modules
source /usr/local/bin/virtualenvwrapper_lazy.sh
# export ARCHFLAGS='-arch i386 -arch x86_64'
# ------------------------------------------------
# Opens up various text editors in background
alias subl='open -a "Sublime Text 2" -g'
alias mate='open -a "TextMate" -g'
# ------------------------------------------------
# Aliases
# Server Shortcuts
alias pyserve='python -m SimpleHTTPServer'
alias pgdown='pg_ctl -D /usr/local/var/postgres stop -s -m fast'
alias pgup='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start'
# Editor Shortcuts
alias subl='open -a "Sublime Text 2" -g'
alias mate='open -a "TextMate" -g'
# Localhost Shortcuts
alias local3='open http://localhost:3000 -g'
alias local5='open http://localhost:5000 -g'
alias local8='open http://localhost:8000 -g'
alias local9='open http://localhost:9000 -g'
# Custom Localhost Shortcut
function loch() {
`open http://localhost:$1 -g`
}
# Middleman Shortcuts
alias mminit='middleman init'
alias mmserve='bundle exec middleman server'
alias mmbuild='bundle exec middleman build'
# ---- Custom Shortcuts
# ---- End Custom
# ------------------------------------------------
# Sets up colors for directory listings
export CLICOLOR=1;
export LSCOLORS=ExFxCxDxBxegedabagacad;
# ------------------------------------------------
# Shows which Git branch you're working on
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \[\1\]/'
}
# ------------------------------------------------
# Sets colors
function proml {
# OPTIONAL COLORS:
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local LIGHT_GREEN="\[\033[1;32m\]"
local WHITE="\[\033[1;37m\]"
local LIGHT_GRAY="\[\033[0;37m\]"
# END OPTIONAL
local DEFAULT="\[\033[0m\]"
PS1="\h:\W$LIGHT_GRAY\$(parse_git_branch)$DEFAULT ->"
}
proml
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment