- 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head><meta charset="UTF-8"></head> | |
| <!-- Normal script --> | |
| <script> | |
| // starting in ES5 window.undefined is read-only | |
| undefined = 'NOT UNDEFINED' | |
| console.log(undefined === window.undefined) // prove that we are scoped to window object (global object in node) | |
| console.log(undefined !== 'NOT UNDEFINED') |
<hash> with your gist's hash):
# with ssh
git clone git@gist.github.com:<hash>.git mygist
# with httpsgit 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-fpmThe 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'; |