Skip to content

Instantly share code, notes, and snippets.

@phbergsmann
phbergsmann / gist:10008430
Last active August 29, 2015 13:58
Automatic release-script specific for chef cookbooks (replaces version in metadata.rb)
cd ${Name}
# make sure to have a clean repository
git reset ${Revision} --hard
# retrieve latest tagged version. if no version has been tagged
# set latest verson to 0.0.0
TAGCOUNT=`git ls-remote --tags -q | wc -l | tr -d ' '`
echo $TAGCOUNT
if [ $TAGCOUNT -gt 0 ]
@phbergsmann
phbergsmann / gist:9975380
Created April 4, 2014 14:04
NGINX configuration for TYPO3 with HHVM and PHP-FPM Fallback
server {
listen 80;
server_name localhost;
root /var/www;
client_max_body_size 32M;
location = /clear.gif {
empty_gif;
expires max;