Requires installed gitolite in /home/git and following directory structure
/var
/www
/apps
/hosts
/libs
<?php | |
class AdminerColors | |
{ | |
function head() | |
{ | |
static $colors = array( | |
'127.0.0.1' => '#ED1C24', | |
'localhost' => '#009245', |
http://www.100reklam.cz | |
http://10hvezd.cz | |
http://12plus12.cz | |
http://www.17november1989.sk | |
http://1bazar.sk | |
http://www.1cfc.cz | |
http://1cornhill.com | |
http://1site.cz | |
http://www.1weby.cz | |
http://24keys.cz |
# if not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# Detect platform | |
platform='unknown' | |
unamestr=`uname` | |
if [[ "$unamestr" == 'Linux' ]]; then | |
platform='linux' | |
elif [[ "$unamestr" == 'FreeBSD' ]]; then | |
platform='freebsd' |
# Heavily depends on: | |
# libqrencode (fukuchi.org/works/qrencode/) | |
# paperkey (jabberwocky.com/software/paperkey/) | |
# zbar (zbar.sourceforge.net) | |
# Producing the QR codes: | |
# Split over 4 codes to ensure the data per image is not too large. | |
gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp | |
split temp -n 4 IMG | |
for f in IMG*; do cat $f | qrencode -o $f.png; done |
<?php | |
use PhpParser\Node; | |
use PhpParser\Node\Expr; | |
error_reporting(E_ALL); | |
ini_set('memory_limit', -1); | |
//$dir = __DIR__ . '/../../Symfony_2.3'; |
server { | |
listen 80; | |
server_name example.com; | |
root d:/webs/example.com/www; | |
index index.php index.html; | |
try_files $uri $uri/ /index.php?$args; | |
location ~ \.phpt?$ { | |
try_files $uri @missing; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
<?php | |
/** | |
* GitHub webhook handler template. | |
* | |
* @see https://docs.github.com/webhooks/ | |
* @author Miloslav Hůla (https://github.com/milo) | |
*/ | |
$hookSecret = 's.e.c.r.e.t'; # set NULL to disable check |
<?php | |
// Extended tester from ezimuel (https://gist.github.com/ezimuel/9135151) | |
// The libxml entity loader is disabled by default | |
// even setting the libxml_disable_entity_loader to false doesn't works! | |
// | |
// @see http://uk3.php.net/manual/en/function.libxml-disable-entity-loader.php | |
// @see http://stackoverflow.com/a/10213239 | |
// @see https://stackoverflow.com/questions/24117700 | |
$dir = __DIR__; |