Skip to content

Instantly share code, notes, and snippets.

View dibmartins's full-sized avatar
🎯
Focusing

Diego Botelho dibmartins

🎯
Focusing
View GitHub Profile
@dibmartins
dibmartins / apt-get update
Created January 10, 2017 10:52
apt-get update
apt-get clean
rm -rf /var/lib/apt/lists/*
apt-get clean
apt-get update
apt-get upgrade
@dibmartins
dibmartins / deploy-git-bare
Created January 25, 2017 13:35
Deploy with git bare
sudo su
cd /var
mkdir repo && cd repo
mkdir site.git && cd site.git
git init --bare
cd hooks
cat > post-receive
@dibmartins
dibmartins / phalcon-devtools-install
Last active February 7, 2017 13:00
Phalcon Devtools installation
curl -LO https://github.com/phalcon/phalcon-devtools/archive/v3.0.2.tar.gz
tar xzf v3.0.2.tar.gz
mv phalcon-devtools-3.0.2 /usr/local/phalcon-devtools
ln -s /usr/local/phalcon-devtools/phalcon.php /usr/local/bin/phalcon
@dibmartins
dibmartins / install-chrome-ubuntu
Created February 8, 2017 16:12
install-chrome-ubuntu
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
@dibmartins
dibmartins / install-docker-ubuntu-xenial
Last active February 9, 2017 11:25
install-docker-ubuntu-xenial
// 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
@dibmartins
dibmartins / install-visual-studio-code-ubuntu
Created February 8, 2017 16:45
install-visual-studio-code-ubuntu
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make
umake ide visual-studio-code
@dibmartins
dibmartins / system-version
Created February 8, 2017 17:16
system-version
lsb_release -rs
@dibmartins
dibmartins / install-workbench-ubuntu-xenial
Created February 8, 2017 17:20
install-workbench-ubuntu-xenial
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
@dibmartins
dibmartins / install-php-7-ubuntu
Created February 8, 2017 18:07
install-php-7-ubuntu
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
@dibmartins
dibmartins / install-composer-ubuntu
Created February 8, 2017 18:17
install-composer-ubuntu
sudo apt-get update
sudo apt-get install curl
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer