I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.
if ufw is not installed by default be sure to install it first.
<?hh | |
// examples: | |
// | |
// ~$ echo '1 jnz(:start) :foo call(:bar) ret :bar 42 print ret :start call(:foo)' | hhvm vm.php | |
// float(42) | |
// | |
// ~$ echo '3 :loop 1 - print jnz(:loop)' | hhvm vm.php | |
// float(2) | |
// float(1) |
<?php | |
/** | |
* Feb 2014 | |
* @author Pascal Brewing | |
* @email <[email protected]> | |
* @package common\helpers | |
* Class MediaContentHelper | |
*/ | |
namespace common\modules\mediating\helpers; |
class InfiniteScrollLinkPager extends CLinkPager | |
{ | |
public $htmlOptions=array(); | |
/** | |
* Initializes the pager by setting some default property values. | |
*/ | |
public function init() | |
{ |
(ns turel.core | |
(:refer-clojure :exclude [==]) | |
(:use clojure.core.logic)) | |
(defn not-membero | |
[x l] | |
(conde [(emptyo l)] | |
[(fresh [head tail] | |
(conso head tail l) | |
(!= head x) |
[client] | |
ssl | |
ssl-ca=/etc/mysql/ca-cert.pem | |
ssl-cert=/etc/mysql/client-cert.pem | |
ssl-key=/etc/mysql/client-key.pem | |
[mysqld] | |
ssl | |
ssl-cipher=DHE-RSA-AES256-SHA | |
ssl-ca=/etc/mysql/ca-cert.pem |
// using the KP_* keys here to emulate behavior | |
// otherwise this will result in an endless loop | |
"xdotool key KP_Home" | |
Release+Prior | |
"xdotool key KP_End" | |
Release+Next | |
"xdotool key KP_Prior" | |
Release+Home | |
"xdotool key KP_Next" | |
Release+End |
<?php | |
$a = new StdClass(); | |
$a->prop = 2; | |
$a->str = "hallo"; | |
$a->arr = array(1,2,3); | |
echo json_encode($a); // {"prop":2,"str":"hallo","arr":[1,2,3]} | |
echo json_encode((array)$a); // {"prop":2,"str":"hallo","arr":[1,2,3]} | |
echo json_encode(array(1,2,3)); // [1,2,3] |
<?php | |
return array( | |
/* ... */ | |
'components' => array( | |
/* ... */ | |
'urlManager' => array( | |
'enablePrettyUrl' => true, | |
'rules' => require(__DIR__ . '/routes.php'), | |
), |
.DS_Store | |
tmp/ |