This file contains hidden or 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 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
# Git ref to checkout in the ./src directory | |
NO_FETCH=$2 | |
REF=$1 | |
# Don't use - or . in the project name! | |
PROJECT=`basename $DIR` |
This file contains hidden or 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 | |
# | |
# Include this script in your .bashrc like this: | |
# . ~/scripts/kwscripts | |
ROOT="/home/vhosts/" | |
function kws() { | |
project=$1 | |
vhosts=$ROOT |
This file contains hidden or 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 dnsmasq | |
sudo apt-get install dnsmasq | |
# Add lines to a configuration file in /etc/dnsmasq.d | |
# Don't use .local as address. That won't work. | |
nano dnsservers | |
> server=8.8.8.8 | |
> server=8.8.4.4 |
This file contains hidden or 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 | |
/** | |
* Implements hook_install(). | |
*/ | |
function hook_install() { | |
// Create Contact form from data file | |
// Define your components. |
This file contains hidden or 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 | |
cd `drush dd` | |
sudo chown [user]:[group] -R . | |
sudo find . -type d -exec chmod u=rwx,g=rx,o= '{}' \; | |
sudo find . -type d -exec chmod u=rwx,g=rx,o= '{}' \; | |
cd sites | |
for d in ./*/files |
This file contains hidden or 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 | |
DIR=`pwd` | |
if [ -d "$DIR/builds" ] | |
then | |
CURRENT=`ls -1 builds | sort | tail -1` | |
read -p "Do you want to remove all the old builds except $CURRENT (y/n)" -n 1 -s REMOVE_OLD_BUILDS |
NewerOlder