screen
screen -ls
<? | |
$http_codes = array( | |
100 => 'Continue', | |
101 => 'Switching Protocols', | |
102 => 'Processing', | |
200 => 'OK', | |
201 => 'Created', | |
202 => 'Accepted', | |
203 => 'Non-Authoritative Information', |
<?php | |
set_time_limit(0); | |
//This is a port of Ken Perlin's "Improved Noise" | |
// http://mrl.nyu.edu/~perlin/noise/ | |
// Originally from http://therandomuniverse.blogspot.com/2007/01/perlin-noise-your-new-best-friend.html | |
// but the site appears to be down, so here is a mirror of it | |
class Perlin | |
{ | |
var $p, $permutation, $seed; | |
var $_default_size = 64; |
1) Create a branch with the tag | |
git branch {tagname}-branch {tagname} | |
git checkout {tagname}-branch | |
2) Include the fix manually if it's just a change .... | |
git add . | |
git ci -m "Fix included" | |
or cherry-pick the commit, whatever is easier | |
git cherry-pick {num_commit} | |
composer create-project symfony/skeleton test_sf4 | |
cd test_sf4 | |
composer require requirements-checker | |
php -S 0.0.0.0:9999 public | |
then go to ip_of_the_server:9999/check.php |
<?php | |
// This is the hidden part ;-) | |
trait Generic | |
{ | |
private $_T = null; | |
private $__generic_nullable = false; | |
private $__originalObject = null; | |
/** |
#!/bin/sh | |
du -hsx ${1:-.}/* | sort -rh | head -10 |
version: "3.7" | |
services: | |
mercure: | |
image: dunglas/mercure | |
environment: | |
MERCURE_PUBLISHER_JWT_KEY: 'changeme' | |
MERCURE_SUBSCRIBER_JWT_KEY: 'changeme' | |
SERVER_NAME: ":80" | |
MERCURE_EXTRA_DIRECTIVES: |- | |
cors_origins "http://127.0.0.1:8000" |
body *{ | |
all: unset; | |
} |
Here is a curated list of docker-compose for some databases I use. |