I hereby claim:
- I am eriksape on github.
- I am eriksape (https://keybase.io/eriksape) on keybase.
- I have a public key whose fingerprint is 5382 1B06 96A1 8A64 DCAE 146C B947 9C8B 80D8 A593
To claim this, I am signing this object:
| (eval-and-compile | |
| (customize-set-variable | |
| 'package-archives '(("org" . "https://orgmode.org/elpa/") | |
| ("melpa" . "https://melpa.org/packages/") | |
| ("gnu" . "https://elpa.gnu.org/packages/"))) | |
| (package-initialize) | |
| (unless (package-installed-p 'use-package) | |
| (package-refresh-contents) | |
| (package-install 'use-package))) |
I hereby claim:
To claim this, I am signing this object:
| const { Writable } = require("stream"); | |
| const writableStreamLog = new Writable({ | |
| write(chunk, encoding, callback) { | |
| const now = new Date().toISOString().replace(/T/, ' ').replace(/\..+/, ''); | |
| process.stdout.write('----------------------------------------\n'); | |
| process.stdout.write('------- Escuela de Javascript ----------\n'); | |
| process.stdout.write(`------- LOG ${now} --------\n`); | |
| process.stdout.write(`\x1b[32m${chunk.toString()}\x1b[0m`); | |
| process.stdout.write('----------------------------------------\n\n'); |
| /** | |
| * Fix for broken html tags inside strings for php. | |
| * | |
| * By using passing the html through DOMDocument and converting the html | |
| * entities we are left with beautiful well formatted code. Huzzah! | |
| * | |
| * "Nothing is ever easy" -Zedd, Wizards First Rule | |
| * | |
| * @var DOMDocument | |
| */ |
raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/<SESSION>
you can tweak -b and -fps to your liking. the settings above work well for 1080p. by not specifying width or height we get the full 1920x1080 resolution from the raspi camera
| /* | |
| * main application | |
| */ | |
| import React from 'react' | |
| import ReactDOM from 'react-dom' | |
| import page from 'page' | |
| /* Component */ |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |