Skip to content

Instantly share code, notes, and snippets.

@bernardobarreto
Last active March 3, 2019 01:08
Show Gist options
  • Select an option

  • Save bernardobarreto/5f6555566525daf6b2b465af6149f015 to your computer and use it in GitHub Desktop.

Select an option

Save bernardobarreto/5f6555566525daf6b2b465af6149f015 to your computer and use it in GitHub Desktop.
My UBUNTU after format install script
# Ubuntu
# basic stuff
sudo apt-get install curl git vim chromium-browser terminator zsh vlc unzip --yes
# SSH key
mkdir ~/.ssh
mv chavessh.zip ~/.ssh
cd ~/.ssh
unzip chavessh.zip
chmod 700 .
chmod 644 id_rsa.pub
chmod 600 id_rsa
# Ruby
curl -sSL https://get.rvm.io | bash
source ~/.zshrc
source ~/.bashrc
rvm install 2.3.1
# make room for development
mkdir ~/git
# GIT
echo "Adding git aliases"
git config --global alias.br branch
git config --global alias.ci commit
echo "Adding git pull/push aliases"
git config --global alias.pop "push origin production"
git config --global alias.plp "pull origin production"
git config --global alias.pom "push origin master"
git config --global alias.plm "pull origin master"
git config --global alias.co checkout
git config --global alias.st status
git config --global alias.df diff
git config --global alias.undo "reset --soft HEAD^"
echo "Adding git log aliases"
git config --global alias.gl "log --graph --pretty=oneline --abbrev-commit"
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
echo "Adding git colors"
git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto
git config --global color.ui auto
git config --global user.email "bernardo.fire@gmail.com"
git config --global user.name "Bernardo B. Marques"
# apt-fast
sudo apt-get install axel
cd ~/Downloads
wget https://gist.githubusercontent.com/bernardofire/2298695/raw/df74adf1285efb2bd7a6fcb3949fe8d03e58d05a/apt-fast.sh
sudo mv apt-fast.sh /usr/bin/apt-fast
sudo chmod 777 /usr/bin/apt-fast
# make run for development
mkdir ~/git
# Atom
# MySql
sudo apt-get update
sudo apt-fast install mysql-server --yes
sudo mysql_secure_installation
# ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
chsh -s /bin/zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment