Skip to content

Instantly share code, notes, and snippets.

.gist table {
margin: 0;
font-size: 1.4rem;
}
.gist .line-number {
width: 10px;
font-size: 1rem;
}
#!/bin/bash
folder=$1
giturl=$2
echo "creating folder $folder"
mkdir -p "$folder"
echo "entering folder $folder"
cd "$folder"
@roderik
roderik / hook.php
Last active December 11, 2015 08:18
<?php
if (isset($_SERVER['HTTP_CLIENT_IP'])
|| isset($_SERVER['HTTP_X_FORWARDED_FOR'])
|| !in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1', 'xx.xx.xx.xx'))
) {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file.');
}
#!/bin/bash
git log --format="%ai|%h|%an|%s" --no-merges
#!/bin/bash
git log -n 1 --format="%ai - %h" --no-merges
<h4>Demonstration document</h4>
<small class="muted" style="float: right;margin-top: -50px">{{ d['scripts/version.sh|bash'] }}</small>
--------------------------
[TOC]
--------------------------
# Introduction
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Documentation BlogPost</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Working Document">
<meta name="author" content="Roderik van der Veer">
<!-- Le styles -->
.md|jinja|markdown:
- .sh|bash
- assets
- markdown:
tables : {}
toc : { anchorlink : true }
assets:
- .css
- .png
reports: 'ws run'
site "http://community.opscode.com/api/v1"
cookbook "apache2"
cookbook "php"
cookbook "git"
cookbook "java"
cookbook "symfony-hosting", :git => "https://github.com/roderik/symfony-hosting-cookbook.git"
cookbook "composer", :git => "https://github.com/roderik/chef-composer.git"
cookbook "symfony2", :git => "https://github.com/geoffreytran/chef-symfony2.git"