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
git fetch --all | |
git reset --hard | |
git pull origin <your_branch> | |
git stash save --keep-index --include-untracked | |
# Apagar arquivos que não monitorados: | |
git clean -df |
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
Listar commits: | |
git log --pretty=oneline | |
git log --pretty=format:"%h - %an, %ar : %s" | |
Ir para um commit específico: | |
git reset --hard 33145a2d8e2d767ec7a8e04d46e2926883c02d99 |
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
sudo apt-get install putty-tools | |
puttygen id_dsa.ppk -O private-openssh -o id_dsa | |
puttygen id_dsa.ppk -O public-openssh -o id_dsa.pub | |
mkdir -p ~/.ssh | |
mv -i ~/id_dsa* ~/.ssh | |
chmod 600 ~/.ssh/id_dsa | |
chmod 666 ~/.ssh/id_dsa.pub | |
chmod 666 ~/.ssh/known_hosts |
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 https://release.gitkraken.com/linux/gitkraken-amd64.deb | |
sudo dpkg -i gitkraken-amd64.deb |
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
sudo apt-get update | |
sudo apt-get install curl | |
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer |
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
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get purge php5-fpm -y | |
sudo apt-get install php7.0 php7.0-fpm | |
sudo apt-get install php7.0-mysql -y | |
sudo apt-get --purge autoremove -y | |
php --version |
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 http://cdn.mysql.com/Downloads/MySQLGUITools/mysql-workbench-community-6.3.8-1ubu1604-amd64.deb -O mysql-workbench-community.deb | |
sudo dpkg -i mysql-workbench-community.deb | |
sudo apt-get -f install |
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
lsb_release -rs |
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
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make | |
sudo apt-get update | |
sudo apt-get install ubuntu-make | |
umake ide visual-studio-code |
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
// Install Docker Compose | |
sudo apt-get update | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' | |
sudo apt-get update | |
apt-cache policy docker-engine | |
sudo apt-get install -y docker-engine | |
// Check that it's running: | |
sudo systemctl status docker |
NewerOlder