I hereby claim:
- I am pkruithof on github.
- I am pkruithof (https://keybase.io/pkruithof) on keybase.
- I have a public key ASB6mY2hC-sXkdxfVtWsZ6sAAkUuzEfuAVbW-uXSid3kvwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# deb http://mirror.transip.net/ubuntu/ubuntu wily main restricted | |
# deb http://mirror.transip.net/ubuntu/ubuntu wily-updates main restricted | |
# deb http://security.ubuntu.com/ubuntu wily-security main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://mirror.transip.net/ubuntu/ubuntu wily main restricted | |
deb-src http://mirror.transip.net/ubuntu/ubuntu wily main restricted |
#!/bin/bash | |
basename=`basename $1` | |
dir=${basename%.*} | |
mkdir -p "$dir" | |
output=`swfextract "$1" | grep "Sounds:"` | |
echo "${output:23}" | tr "," "\n" | while read word; do | |
swfextract -s $word "$1" -o "$dir/$word.mp3" | |
done |
SELECT DISTINCT column1 FROM table GROUP BY column1 HAVING COUNT(column1) > 1 |
DVDDIR=$1 | |
OUTDIR=`dirname "$DVDDIR"` | |
DVDNAME=`basename "$DVDDIR"` | |
hdiutil makehybrid -udf -udf-volume-name "$DVDNAME" -o "$OUTDIR/$DVDNAME.iso" "$DVDDIR" |
<?php | |
error_reporting(E_ALL & ~E_NOTICE | E_STRICT); // (Show all errors, except for notices) | |
$sag_supported = E_ALL ^ E_NOTICE; | |
$current = error_reporting(); | |
var_dump($current > $sag_supported || $current < 0); // true | |
var_dump(($current & E_NOTICE) > 0); // false |
find . -type d -name .svn -print0 | xargs -0 rm -rf |
<?php | |
$str = $_REQUEST['body']; | |
for ($i = 0; $i < strlen($str); $i++) { | |
$byte = $str[$i]; | |
if (ord($byte) > 127) { | |
$output .= "\\x" . bin2hex($byte); | |
} else { |
Log from Sensiolabs Insight when it tried to install dependencies: | |
--------------------- | |
<warn>The "puli"/"puli.phar" command could not be found.</warn> | |
Loading composer repositories with package information | |
Installing dependencies (including require-dev) from lock file | |
[...] | |
Generating optimized autoload files |
{% macro vhost(name, server_name, config={}) %} | |
{% set defaults = { 'server_name': server_name } %} | |
{% do defaults.update(config) %} | |
{{ name }}: | |
file.managed: | |
- template: jinja | |
- source: salt://nginx/site.conf | |
- defaults: {{ defaults }} | |
{% endmacro %} |