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 SYSTEM TOOLS ---" | |
sudo apt-get update | |
sudo apt-get install build-essential htop figlet dos2unix dnsmasq curl wget nodejs npm memcached debconf-utils mailutils sendmail sshfs graphviz ntp -y | |
sudo sh -c 'echo "deb https://atlassian.artifactoryonline.com/atlassian/hipchat-apt-client $(lsb_release -c -s) main" > /etc/apt/sources.list.d/atlassian-hipchat4.list' | |
wget -O - https://atlassian.artifactoryonline.com/atlassian/api/gpg/key/public | sudo apt-key add - | |
sudo add-apt-repository ppa:webupd8team/sublime-text-3 -y |
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
<VirtualHost *:80> | |
ServerName silverstripe.dev | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www/silverstripe | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
</Directory> |
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
# Avoid duplicates | |
export HISTCONTROL=ignoredups:erasedups | |
export HISTSIZE=100000 # big big history | |
export HISTFILESIZE=100000 # big big history | |
# When the shell exits, append to the history file instead of overwriting it | |
shopt -s histappend | |
# After each command, append to the history file and reread it | |
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r" |
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
<?php | |
define('SS_ENVIRONMENT_TYPE', 'dev'); | |
// trust test environment | |
define('SS_TRUSTED_PROXY_IPS', '*'); | |
// Database connection, including PDO and legacy ORM support | |
$db = getenv('DB'); | |
$release = getenv('CORE_RELEASE'); | |
$pdo = getenv('PDO'); |
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
{ | |
"bitwise": true, | |
"curly": true, | |
"eqeqeq": true, | |
"forin": true, | |
"immed": true, | |
"latedef": true, | |
"newcap": true, | |
"noarg": true, |
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 | |
MUSER="$1" | |
MPASS="$2" | |
MDB="$3" | |
MHOST="$4" | |
# Detect paths | |
MYSQL=$(which mysql) | |
AWK=$(which awk) | |
GREP=$(which grep) |
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 su www-data -s /bin/bash |
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
<?php | |
// Other useful changes and commands | |
// watch "echo stats | nc 127.0.0.1 11211" | |
// session.save_handler = memcache | |
// session.save_path = "tcp://server1:11211,tcp://server2:11211" | |
// $cache = SS_Cache::factory('foo'); | |
// $cache->clean(Zend_Cache::CLEANING_MODE_ALL); | |
if (defined('MEMCACHE_SERVER_1') && defined('MEMCACHE_PORT_1')) { | |
$servers = array( |
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
curl --form "[email protected]" --form pipeline="sanitised open document" --form autopipeline="Break up over Heading 1.default" http://DOCVERT-SERVER:DOCVERT-PORT/web-service |
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 android-tools-adb android-tools-fastboot | |
wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb | |
sudo mv adb /usr/bin/adb | |
sudo chmod +x /usr/bin/adb | |
adb devices | |
sudo apt-get install libtool pkg-config build-essential autoconf automake | |
sudo apt-get install graphicsmagick graphicsmagick-dbg graphicsmagick-imagemagick-compat graphicsmagick-libmagick-dev-compat | |
wget http://download.zeromq.org/zeromq-4.1.3.tar.gz | |
tar -zxvf zeromq-4.1.3.tar.gz | |
cd zeromq-4.1.3/ |