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:
I hereby claim:
To claim this, I am signing this object:
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"}, |
<?php | |
require 'phpQuery/phpQuery.php'; | |
$prefix = 'http://fyrrum.dk/portal.php'; | |
$doc = phpQuery::newDocumentHTML(file_get_contents( | |
$prefix | |
)); | |
$captures = array(); |