Skip to content

Instantly share code, notes, and snippets.


Carlos Castillo carloscasalar

Block or report user

Report or block carloscasalar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
carloscasalar / background.js
Created Mar 14, 2019 — forked from muralikg/background.js
puppeteer screen capture demo. Currently records 10 second video. Change the timeout in background.js with your own logic to stop the recording when necessary. Try with `node export.js`
View background.js
/* global chrome, MediaRecorder, FileReader */
chrome.runtime.onConnect.addListener(port => {
let recorder = null
port.onMessage.addListener(msg => {
switch (msg.type) {
case 'REC_STOP':
console.log('Stopping recording')
if (!port.recorderPlaying || !recorder) {
carloscasalar /
Created Jan 28, 2019
MySql / MariaDB links and tips
carloscasalar /
Last active Jan 13, 2019
AWS lambda links and tips
carloscasalar /
Created Oct 19, 2018
bash links and tips
echo -e "What's your name?"
read name
echo "Hello $name!"
You can’t perform that action at this time.