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
# Command to use global .gitignore file: | |
touch ~/.gitignore | |
echo ".DS_STORE" >> ~/.gitignore | |
echo ".idea/" >> ~/.gitignore | |
git config --global core.excludefile '~/.gitignore' |
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 | |
# Example cron usage: | |
# 0 12 * * MON /usr/bin/drive_backup /var/www/public/ >> /var/log/drive_backup.log | |
# ^every monday at 12:00PM ^path to backup on google drive ^stream redirect ^path to backup log | |
# Basic manual usage | |
# drive_backup /path/to/directory/or/file | |
# File names will contains full path and date for uniqueness. |
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-toolchain-r/test | |
sudo apt-get update | |
sudo apt-get install gcc-5 g++-5 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 |
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
#!/usr/bin/env bash | |
# getting deps | |
apt-get install -y git make gcc g++ autoconf re2c bison \ | |
libxml2 libxml2-dev \ | |
libevent-2.0* libevent-dev \ | |
libssl1.0.0 libssl-dev \ | |
libzip2 libzip-dev \ | |
libbz2-dev \ | |
libgd3 libgd-dev \ | |
libmcrypt4 libmcrypt-dev \ |
NewerOlder