I hereby claim:
- I am huyby on github.
- I am huyby (https://keybase.io/huyby) on keybase.
- I have a public key ASC7CON4vlaKiFbFqvQ1K6e2hYC5g_5yl5VDf5VTose69wo
To claim this, I am signing this object:
| function unsubscribeAll() { | |
| fetch('https://github.com/notifications/subscriptions?reason=review_requested', { | |
| method: 'POST', | |
| body:new FormData(document.querySelector('#threads-unsubscribe-form')), | |
| }) | |
| .then((response) => response.text()) | |
| .then((text) => { | |
| document.querySelector('html').innerHTML=text | |
| const subscriptionIds = document.querySelectorAll('input[name^=subscription_ids]'); |
I hereby claim:
To claim this, I am signing this object:
| diff --git a/src/Normalizer/JsonApiDocumentTopLevelNormalizer.php b/src/Normalizer/JsonApiDocumentTopLevelNormalizer.php | |
| index e74b26a..1e4bb69 100644 | |
| --- a/src/Normalizer/JsonApiDocumentTopLevelNormalizer.php | |
| +++ b/src/Normalizer/JsonApiDocumentTopLevelNormalizer.php | |
| @@ -247,6 +247,8 @@ class JsonApiDocumentTopLevelNormalizer extends NormalizerBase implements Denorm | |
| protected function expandContext(Request $request, ResourceType $resource_type) { | |
| // Translate ALL the includes from the public field names to the internal. | |
| $includes = array_filter(explode(',', $request->query->get('include'))); | |
| + $public_includes = $includes; | |
| + /* |
| --- ./src/Controller/FieldablePathController.php 2017-05-18 11:51:40.000000000 +0200 | |
| +++ ./src/Controller/FieldablePathController.php 2017-05-18 11:59:01.000000000 +0200 | |
| @@ -43,7 +43,7 @@ | |
| ->load($params[$entity_type]); | |
| // Make sure the current entity exists and contains path field. | |
| - if (empty($entity) || !$entity->hasField('path')) { | |
| + if (empty($entity) || !(method_exists($entity, 'hasField') && $entity->hasField('path'))) { | |
| return; | |
| } |
| # Overview on SSH port forwarding: http://blog.trackets.com/2014/05/17/ssh-tunnel-local-and-remote-port-forwarding-explained-with-examples.html | |
| # Example of MySQL database connection tunnel using a jump host | |
| ssh -F ./ssh.cfg -nNT -L 33060:localhost:3306 remotehost | |
| # ./.ssh.cfg contents | |
| Host bastion | |
| Hostname 8.8.8.8 | |
| User bastion-user |
| #!/usr/bin/env bash | |
| # Prompt for Yes/No answer | |
| # $1 - question | |
| # $2 - default answer (Y|N) | |
| ask() { | |
| while true; do | |
| if [ "${2:-}" = "Y" ]; then | |
| prompt="Y/n" |
| #!/bin/sh | |
| # Tiny script to create a mysql user and database with same | |
| # name. A random password is generated (yay!) | |
| usage() { | |
| cat << __EOT | |
| Usage: createmysqldb.sh <dbname> | |
| where <dbname> is the one-word name you'd like to use as database name and | |
| username if -u parameter is not set. | |
| Options: |
https://trac.ffmpeg.org/wiki/Encode/VP8 https://sites.google.com/a/webmproject.org/wiki/ffmpeg http://wiki.webmproject.org/ffmpeg/vp9-encoding-guide
ffmpeg -i "input.mov" -q:v libvpx -crf 10 -b:v 1M -q:a libvorbis output.webm
There's regularly updated spreadsheet available listing all ffmpeg arguments valid for VP8 (and maybe VP9) encoding: https://docs.google.com/spreadsheets/d/1SU6hqVQ7AvCl52q05h0JW1IPDRLXaqm-0zanlMG7GYg