Skip to content

Instantly share code, notes, and snippets.

<?php
echo "################################# NOTICE ##################################\n";
echo "# This script will clone and setup > 20 sites and make take over an hour. #\n";
echo "# If a site already exists any local changes will be overwritten. #\n";
echo "###########################################################################\n";
echo "Are you sure you want to continue? (yes/no) : ";
$stdin = fopen ( "php://stdin","r" );
$line = fgets( $stdin );

Update master

First, make sure master is up to date.

git checkout master
git pull upstream master

Rebase your branch

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Solarized (dark)</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@ryanneufeld
ryanneufeld / gist:1994024
Created March 7, 2012 16:08 — forked from smonteverdi/gist:1993919
PHP: Generate Password
function generatePassword($length=9, $strength=0) {
$vowels = 'aeuy';
$consonants = 'bdghjmnpqrstvz';
if ($strength >= 1) {
$consonants .= 'BDGHJLMNPQRSTVWXZ';
}
if ($strength >= 2) {
$vowels .= "AEUY";
}
if ($strength >= 4) {