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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Install required plugins | |
system "echo We will need your root access" | |
system "sudo echo Thankies!" | |
required_plugins = %w( vagrant-hostsupdater ) | |
required_plugins.each do |plugin| | |
system "vagrant plugin install #{plugin}" unless Vagrant.has_plugin? plugin |
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/php | |
<?php | |
// Based on code by raphaelstolt and buddhamagnet https://gist.github.com/raphaelstolt/588697 | |
class PreCommitHook { | |
protected $green = "\033[0;32m"; | |
protected $red = "\033[0;31m"; | |
protected $reset = "\033[0m"; |
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
class AbstractBehatContext extends MinkContext { | |
/** | |
* Slight hack to put beforeSuite code into beforeScenario | |
* @var bool | |
*/ | |
protected static $databaseReady = false; | |
/** | |
* @BeforeScenario |
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
# Credit to sehe | |
# url: http://stackoverflow.com/questions/5559321/fetch-all-in-a-git-bare-repository-doesnt-synchronize-local-branches-to-the#5559586 | |
dir=$1 | |
if [ "$dir" == "" ] ; then | |
echo "What are we forking?" | |
read dir | |
fi | |
url=https://github.com/opscode-cookbooks/$dir | |
git init --bare $dir.git |
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 | |
# Spinner Source: http://it.toolbox.com/blogs/locutus/bash-bits-nibbles-and-bytes-a-rotating-cursor-while-you-wait-22867 | |
# Parallel process Source: http://stackoverflow.com/questions/6384013/run-bash-commands-in-parallel-track-results-and-count#6384467 | |
# Hide job status source: http://superuser.com/questions/377775/how-do-i-keep-background-jobs-from-telling-me-theyre-done | |
# Spin the spinner. Must be called repeatedly to animate | |
function spin() { | |
case $toggle | |
in |
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
/** | |
* Get the given variable from $_REQUEST or from the url | |
* @param string $variableName | |
* @param mixed $default | |
* @return mixed|null | |
*/ | |
function getParam($variableName, $default = null) { | |
// Was the variable actually part of the request | |
if(array_key_exists($variableName, $_REQUEST)) |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "precise64" | |
# The url from where the 'config.vm.box' box will be fetched if it | |
# doesn't already exist on the user's system. |
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 | |
alias ll='ls -alph' | |
alias tarzip='tar -czfv' | |
alias untarzip='tar -xzfv' | |
sshagent () { eval `ssh-agent -s` && ssh-add; }; | |
alias git-commit='git commit -S -m' | |
alias git-log='git log --show-signature' | |
alias git-tag='git tag -s' |
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 | |
# This bit is by Brian Campbell | |
# Source: http://stackoverflow.com/questions/699576/validating-parameters-to-a-bash-script | |
die () { | |
echo >&2 "$@" | |
exit 1 | |
} | |
[ "$#" -eq 1 ] || die "This shit takes one arguement user[:group]" |
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 | |
// | |
// Edit these bits | |
// | |
$bundleFileName = __DIR__.'/_bundle.js'; | |
$devMode = true; | |
$files = array( |
NewerOlder