This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
source ~/.bashrc | |
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc | |
git clone https://github.com/rbenv/rbenv-vars.git ~/.rbenv/plugins/rbenv-vars | |
source ~/.bashrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#sudo useradd deploy | |
/usr/sbin/useradd -c "deploy" -s /bin/bash -m -d /home/deploy deploy | |
sudo adduser deploy sudo | |
sudo mkdir /home/deploy | |
sudo usermod --shell /bin/bash --home /home/deploy deploy | |
#cp /etc/skel/.* /home/deploy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
atom | |
vlc | |
xquartz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ack | |
aom | |
autoconf | |
cairo | |
ceres-solver | |
cmake | |
docker | |
docker-machine | |
eigen | |
ffmpeg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#stole from: https://medium.com/@yutafujii_59175/a-complete-one-by-one-guide-to-install-docker-on-your-mac-os-using-homebrew-e818eb4cfc3 | |
brew install docker docker-machine socat | |
brew cask install xquartz | |
brew cask install virtualbox | |
docker-machine create --driver virtualbox default | |
docker-machine env default | |
eval "$(docker-machine env default)"$ docker run hello-world |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo installing homebrew... | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew doctor | |
brew cask install homebrew/cask-versions/java8 | |
brew install wget git ack rbenv ruby-build nodenv jenkins | |
nodenv init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# To completely purge all remnants of Mongo (repo conf, pkgs, apt cache, DB files, pgp keys): | |
# sudo service mongod stop ; sudo apt-get purge -y mongodb-enterprise* ; sudo rm -rf /etc/apt/sources.list.d/mongodb* ; sudo rm -rf /var/lib/mongodb ; sudo apt-get clean; sudo apt-get autoclean ; sudo apt-get -y autoremove ; sudo apt-key del 9DA31620334BD75D9DCB49F368818C72E52529D4 ; sudo rm -rf /etc/mongod* ; sudo rm -rf /var/log/mongo ; sudo rm -rf /etc/apt/sources.list.d/mongodb-enterprise.list /etc/systemd/system/multi-user.target.wants/mongod.service | |
echo Installing MongoDB 4.x Enterprise edition... | |
echo | |
sudo apt-get install -y gnupg2 libcurl3 | |
sudo apt-key adv --keyserver hkps://keyserver.ubuntu.com:443 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export INSTANCE="ENTER IP HERE" | |
rm -f app.tar.gz | |
#git archive -o app.tar.gz --prefix=app/ master | |
#scp app.tar.gz deployer@$INSTANCE:~ | |
scp ~/.ssh/known_hosts root@$INSTANCE:~/.ssh/known_hosts | |
scp launch.sh root@$INSTANCE:~ | |
ssh -o connectTimeout=120 root@$INSTANCE " bash launch.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget --directory-prefix ~/Downloads http://support.apple.com/downloads/DL1572/en_US/javaforosx.dmg | |
wget --directory-prefix ~/Downloads http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-macosx-x64.dmg | |
wget --directory-prefix ~/Downloads http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-macosx-x64.dmg | |
wget --directory-prefix ~/Downloads https://api.textmate.org/downloads/release | |
wget --directory-prefix ~/Downloads https://dl.google.com/dl/android/studio/install/2.1.1.0/android-studio-ide-143.2821654-mac.dmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#setup/install various apps | |
echo installing homebrew... | |
sudo apt-get install -y --fix-missing build-essential curl git m4 texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev wget git ack ruby-full | |
sudo apt-get update |
NewerOlder