- Create or find a gist that you own.
- Clone your gist (replace
<hash>
with your gist's hash):# with ssh git clone git@gist.github.com:<hash>.git mygist # with https
git clone https://gist.github.com/.git mygist
<hash>
with your gist's hash):
# with ssh
git clone git@gist.github.com:<hash>.git mygist
# with https
git clone https://gist.github.com/.git mygist
On CentOS
error_log
/etc/php-fpm.conf
, disable line error_log = /var/log/php-fpm/error.log
/etc/php-fpm.d/www.conf
, disable line starting with php_admin_value[error_log] = ...
systemctl restart php-fpm
The list is now hosted on a repository so you can PR -> https://github.com/jeroenvdgulik/awesome-talks/blob/master/README.md
Using jq
is great for examining JSON objects. You can extend its functionality with custom methods. The following is useful to understand at a high level the structure of arbitrary JSONs which is useful when trying to understand new data sources.
Requires jq
verison 1.5.
Add the following method to your ~/.jq
:
#!/usr/bin/php | |
<?php | |
require __DIR__ . '/../../vendor/autoload.php'; | |
/** | |
* Dependencies: | |
* - Symfony Console Component: symfony/console | |
* - Symfony Process Component: symfony/process | |
* - PHP Mess Detector: phpmd/phpmd |
sudo rm -rf / |
The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.
However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on
<?php | |
namespace Sarciszewski\Gists; | |
/** | |
* This is a proof of concept code! DO NOT USE THIS! | |
*/ | |
class PasswordLock | |
{ | |
const KEY = '4ff556f7b1db2dd95906c21a45ef00344abdb38934450263ee7a908facc05070'; |
#!/usr/bin/env coffee | |
################################################################# | |
# credit goes to: jphass, because I totally ripped off his code # | |
# (https://gist.github.com/jphaas/ad7823b3469aac112a52) # | |
################################################################# | |
################################################################################################# | |
# INSTALLING # | |
# # |