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 | |
if [ $# -ne 1 ]; then | |
echo $0: usage: script current_version | |
exit 1 | |
fi | |
v=$1 | |
echo "${v%.*}.$((${v##*.}+1))" |
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
#phpspec yml example for configuration with zf2 | |
#This allows a spec directory inside each module (i.e. at module/Application/spec) | |
#Have to add a namespace per module | |
suites: | |
Application: | |
namespace: Application | |
src_path: 'module/Application/src' | |
spec_path: 'module/Application' |
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 | |
include("vendor/autoload.php"); | |
use Aws\Common\Aws; | |
// Create a service builder using a configuration file | |
$aws = Aws::factory('config.php'); | |
// Get the client from the builder by namespace |
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 | |
excludedprocesses=(somethingidontwant:something_instance-0 somethingelse) | |
for f in `supervisorctl status | awk '{print $1}' `; do | |
echo "found $f" | |
if [[ ${excludedprocesses[*]} =~ $f ]] | |
then | |
echo "Exluding $f as a restart candidate" |