Skip to content

Instantly share code, notes, and snippets.

@cyio
Forked from moesy/._wild-cherry.zsh-theme
Created August 15, 2016 13:54
Show Gist options
  • Select an option

  • Save cyio/93bbba984d4ff41ca63de7977a8e5a91 to your computer and use it in GitHub Desktop.

Select an option

Save cyio/93bbba984d4ff41ca63de7977a8e5a91 to your computer and use it in GitHub Desktop.

Revisions

  1. Moe Sy revised this gist Jul 23, 2016. 1 changed file with 6 additions and 5 deletions.
    11 changes: 6 additions & 5 deletions workstation_osx
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    cd ~/
    xcode-select --install

    # Install homebrew
    @@ -21,7 +22,7 @@ $ teamocil sample
    # Install iTerm
    wget https://iterm2.com/downloads/stable/iTerm2-2_1_4.zip
    tar -zxvf iTerm2-2_1_4.zip
    rm -rf iTerm2-2_1_4.zip
    rm -rf iTerm2-2_1_4.zip
    mv iTerm.app /Applications

    # Install atom.io
    @@ -36,10 +37,10 @@ apm install sync-settings
    brew cask install google-chrome

    # Install Slack
    wget https://slack.com/ssb/download-osx -O slack.zip
    tar -zxvf slack.zip
    wget https://slack.com/ssb/download-osx -O slack.zip
    tar -zxvf slack.zip
    mv Slack.app /Applications
    rm -rf slack.zip
    rm -rf slack.zip

    # setup python
    brew install python
    @@ -61,4 +62,4 @@ cd ./ansible | sudo make install | cd ~
    ssh-key -t rsa -b 4096 -C "[email protected]" -f id_wslmoe

    # Todo
    # - Provide atom credentials
    # - Provide atom credentials
  2. Moe Sy renamed this gist Jul 14, 2016. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions workstation_ubuntu → workstation_ubuntu.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    sudo apt-get install ruby-full -y

    # Install Google Chrome
    if [[ $(getconf LONG_BIT) = "64" ]]
    then
    @@ -55,7 +57,7 @@ git clone https://github.com/tmux/tmux.git
    cd tmux
    sh autogen.sh
    ./configure && make
    make install
    sudo make install

    gem install teamocil
    mkdir ~/.teamocil
    sudo gem install teamocil
    mkdir -p ~/.teamocil
  3. @moesy moesy revised this gist May 10, 2016. 1 changed file with 10 additions and 2 deletions.
    12 changes: 10 additions & 2 deletions workstation_ubuntu
    Original file line number Diff line number Diff line change
    @@ -47,7 +47,15 @@ sudo apt-add-repository ppa:ansible/ansible
    sudo apt-get update
    sudo apt-get install ansible

    # tmux & teamocil
    sudo apt-get install tmux
    # tmux
    sudo apt-get install autotools-dev
    sudo apt-get install automake
    sudo apt-get install libevent-dev libncurses-dev pkg-config
    git clone https://github.com/tmux/tmux.git
    cd tmux
    sh autogen.sh
    ./configure && make
    make install

    gem install teamocil
    mkdir ~/.teamocil
  4. @moesy moesy revised this gist May 9, 2016. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion workstation_ubuntu
    Original file line number Diff line number Diff line change
    @@ -45,4 +45,9 @@ sudo apt-get install virtualbox-dkms
    sudo apt-get install software-properties-common
    sudo apt-add-repository ppa:ansible/ansible
    sudo apt-get update
    sudo apt-get install ansible
    sudo apt-get install ansible

    # tmux & teamocil
    sudo apt-get install tmux
    gem install teamocil
    mkdir ~/.teamocil
  5. @moesy moesy revised this gist May 9, 2016. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions workstation_ubuntu
    Original file line number Diff line number Diff line change
    @@ -31,10 +31,6 @@ sudo amdconfig --adapter=all --initial
    # Utilities
    sudo apt-get install xclip

    # Heroku
    wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
    heroku login

    # Pip
    sudo apt-get install python-pip python-dev build-essential
    sudo pip install --upgrade pip
    @@ -43,4 +39,10 @@ sudo pip install --upgrade virtualenv
    # Install Vagrant & VirtualBox
    sudo apt-get install virtualbox
    sudo apt-get install vagrant
    sudo apt-get install virtualbox-dkms
    sudo apt-get install virtualbox-dkms

    # Install Ansible
    sudo apt-get install software-properties-common
    sudo apt-add-repository ppa:ansible/ansible
    sudo apt-get update
    sudo apt-get install ansible
  6. @moesy moesy revised this gist May 9, 2016. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion workstation_ubuntu
    Original file line number Diff line number Diff line change
    @@ -38,4 +38,9 @@ heroku login
    # Pip
    sudo apt-get install python-pip python-dev build-essential
    sudo pip install --upgrade pip
    sudo pip install --upgrade virtualenv
    sudo pip install --upgrade virtualenv

    # Install Vagrant & VirtualBox
    sudo apt-get install virtualbox
    sudo apt-get install vagrant
    sudo apt-get install virtualbox-dkms
  7. @moesy moesy renamed this gist May 7, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  8. @moesy moesy revised this gist May 7, 2016. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  9. @moesy moesy revised this gist May 7, 2016. 2 changed files with 105 additions and 0 deletions.
    64 changes: 64 additions & 0 deletions osx
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,64 @@
    xcode-select --install

    # Install homebrew
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    brew tap caskroom/cask
    brew install brew-cask


    # Install utilities
    brew install wget
    brew install zsh zsh-completions
    brew install tmux
    brew install reattach-to-user-namespace

    # Install the `teamocil` Ruby gem
    gem install teamocil
    mkdir ~/.teamocil

    # Run your newly-created sample layout
    $ teamocil sample
    # Install iTerm
    wget https://iterm2.com/downloads/stable/iTerm2-2_1_4.zip
    tar -zxvf iTerm2-2_1_4.zip
    rm -rf iTerm2-2_1_4.zip
    mv iTerm.app /Applications

    # Install atom.io
    wget https://atom.io/download/mac -O atom.zip
    tar -zxvf atom.zip
    rm -rf atom.zip
    mv Atom.app /Applications
    apm install sync-settings


    # Install Chrome
    brew cask install google-chrome

    # Install Slack
    wget https://slack.com/ssb/download-osx -O slack.zip
    tar -zxvf slack.zip
    mv Slack.app /Applications
    rm -rf slack.zip

    # setup python
    brew install python
    pip install virtualenv
    sudo pip install paramiko PyYAML Jinja2 httplib2 six

    # Setup Vagrant
    brew cask install virtualbox
    brew cask install vagrant
    brew cask install vagrant-manager
    vagrant plugin install vagrant-hostsupdater


    # Setup Ansible
    mkdir ~/sandbox | cd sandbox
    git clone git://github.com/ansible/ansible.git --recursive
    cd ./ansible | sudo make install | cd ~

    ssh-key -t rsa -b 4096 -C "[email protected]" -f id_wslmoe

    # Todo
    # - Provide atom credentials
    41 changes: 41 additions & 0 deletions ubuntu
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    # Install Google Chrome
    if [[ $(getconf LONG_BIT) = "64" ]]
    then
    echo "64bit Detected" &&
    echo "Installing Google Chrome" &&
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb &&
    sudo dpkg -i google-chrome-stable_current_amd64.deb &&
    rm -f google-chrome-stable_current_amd64.deb
    else
    echo "32bit Detected" &&
    echo "Installing Google Chrome" &&
    wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb &&
    sudo dpkg -i google-chrome-stable_current_i386.deb &&
    rm -f google-chrome-stable_current_i386.deb
    fi

    # Atom.io
    sudo add-apt-repository ppa:webupd8team/atom
    sudo apt-get update
    sudo apt-get install atom

    # Atom packages
    apm install sync-settings

    # AMD Graphic Cards
    sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.BAK
    sudo apt-get install linux-headers-generic
    sudo apt-get install fglrx xvba-va-driver libva-glx1 libva-egl1 vainfo
    sudo amdconfig --adapter=all --initial

    # Utilities
    sudo apt-get install xclip

    # Heroku
    wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
    heroku login

    # Pip
    sudo apt-get install python-pip python-dev build-essential
    sudo pip install --upgrade pip
    sudo pip install --upgrade virtualenv
  10. @moesy moesy created this gist May 7, 2016.
    2 changes: 2 additions & 0 deletions workstations
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # Ubuntu
    # OSX