I hereby claim:
- I am davidreuss on github.
- I am davidreuss (https://keybase.io/davidreuss) on keybase.
- I have a public key whose fingerprint is A3DA D291 2BB8 148F D915 8D9B 2C35 96D6 D000 B38E
To claim this, I am signing this object:
#!/bin/bash | |
usage() { | |
echo >&2 "Usage: $0 [ -d directory | --dir directory ] [ -u user | --user user ] | --help" | |
} | |
invalid() { | |
echo >&2 "Invalid option $1. Try $0 --help to see available options." | |
} |
#!/bin/bash | |
# Default variable if not set | |
[ -z "${var:-}" ] && var="Default..." | |
echo "$var" | |
# array declaration |
I hereby claim:
To claim this, I am signing this object:
<?php | |
use Silex\Application; | |
use Symfony\Component\HttpFoundation\Request; | |
abstract class MyController { | |
protected $request; | |
protected $application; | |
public function __construct(Request $req, Application $app) { |
<?php | |
$root = dirname(__FILE__); | |
$pvr_record_folder = "{$root}/PVRRECORD"; | |
$will_rename = array(); | |
$count_map = array(); | |
foreach (glob("${pvr_record_folder}/*.pvr", GLOB_ONLYDIR) as $folder) { | |
$folder = basename($folder); |
zone "example.com" IN { | |
type master; | |
file "/zones/example.com"; | |
} | |
zone "foobar.com" IN { | |
type master; | |
file "/zones/default"; | |
} |
SELECT MAX( -- use MAX to force aggregation | |
IF(variable_name='Questions' -- no. of queries sent to server | |
, CAST(variable_value AS unsigned) -- make integer value | |
, 0 -- ignore if not 'Questions' | |
) | |
) | |
/ -- divide by | |
MAX( -- use MAX to force aggregation | |
IF(variable_name='Uptime' -- no. of seconds the server is up | |
, CAST(variable_value AS unsigned) -- make integer value |
<?php | |
$foo->set1(1) | |
->set2(2) | |
->set3(3); | |
// vs. | |
$foo->set1(1); | |
$foo->set2(2); | |
$foo->set3(3); |
this is awesome |
=ERROR REPORT==== 26-Oct-2010::13:08:07 === | |
** Generic server <0.14323.25> terminating | |
** Last message in was {'EXIT',<0.14322.25>, | |
{'EXIT', | |
{{badmatch, | |
{error, | |
{emfile, | |
[{erlang,open_port, | |
[{spawn, | |
"/usr/lib64/erlang/lib/couch-0.11.2/priv/couchspawnkillable /usr/bin/couchjs /usr/share/couchdb/server/main.js"}, |