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 | |
# Migrate ISPConfig 3 installation from one server to another | |
# This script should run on the final/destination ISPConfig 3 server | |
# You must first install the same ISPConfig on the destination server | |
# and make sure to create all the users from the previous installation | |
# (ISPConfig creates users for each client and web page) | |
# Tested on ISPConfig version 3.0.5.3 | |
# Created by Jorge Barnaby (@jbarnaby) - March 2014 | |
# EDIT YOUR PREVIOUS ISPCONFIG SERVER HERE |
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/ |
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
<?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
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
#!/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
{ | |
"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
<?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
# 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
<VirtualHost *:80> | |
ServerName silverstripe.dev | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www/silverstripe | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
</Directory> |