Simple and safe random getters to copy-paste
string randomBytes( int $length )
int randomInt ( int $min , int $max )
string randomUuid ( void )
$kernel->init([ | |
'debug' => false, | |
'includePaths' => [ | |
__DIR__ . '/../' | |
], | |
'appDir' => __DIR__ . '/../', | |
'excludePaths' => [ | |
__DIR__ . '/../config', | |
__DIR__ . '/../vendor/codeception/aspect-mock', | |
__DIR__ . '/../runtime', |
A contents <<< | |
send this to a | |
this goes to a | |
a, I forgot to add this | |
<<< | |
B contents <<< | |
this goes to b | |
b, please | |
<<< |
// Please read the following posts to understand this code: | |
// - "How Paxos works" | |
// http://rystsov.info/2015/09/16/how-paxos-works.html | |
// - "Read write quorums in Paxos" | |
// http://rystsov.info/2015/12/30/read-write-quorums.html | |
// - "Best of both worlds: Raft's joint consensus + Single Decree Paxos" | |
// http://rystsov.info/2016/01/05/raft-paxos.html | |
// 1. Leader Election (LE) |
upstream uwsgi { | |
ip_hash; | |
server 127.0.0.1:40000; | |
} | |
server { | |
listen 80; | |
server_name www.domain.com; | |
root /sites/mysite/; | |
access_log /sites/mysite/log/nginx/access.log; |
<?php | |
namespace Widop\Mink\Extension; | |
/** | |
* Dictionary to manage popups. | |
* | |
* @author Benjamin Lazarecki <benjamin.lazarecki@gmail.com> | |
*/ | |
trait PopupDictionary |
docker run -d --name es elasticsearch
docker run -d --name logstash --link es:elasticsearch logstash -v /tmp/logstash.conf:/config-dir/logstash.conf logstash logstash -f /config-dir/logstash.conf
docker run --link es:elasticsearch -d kibana
LOGSTASH_ADDRESS=$(docker inspect --format '{{ .NetworkSettings.IPAddress }}' logstash)
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
XVFB=/usr/bin/Xvfb | |
XVFBARGS=":1 -screen 0 1024x768x24 -ac +extension GLX +render -noreset" | |
PIDFILE=/var/run/xvfb.pid | |
case "$1" in | |
start) | |
echo -n "Starting virtual X frame buffer: Xvfb" | |
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS | |
echo "." | |
;; | |
stop) |