Skip to content

Instantly share code, notes, and snippets.

:octocat:

Carlos Castillo carloscasalar

:octocat:
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
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 => {
console.log(msg);
switch (msg.type) {
case 'REC_STOP':
console.log('Stopping recording')
if (!port.recorderPlaying || !recorder) {
@carloscasalar
carloscasalar / tipsMySqlMariaDb.md
Created Jan 28, 2019
MySql / MariaDB links and tips
View tipsMySqlMariaDb.md
@carloscasalar
carloscasalar / tipsAWSLambda.md
Last active Jan 13, 2019
AWS lambda links and tips
@carloscasalar
carloscasalar / hello.sh
Created Oct 19, 2018
bash links and tips
View hello.sh
#!/bin/bash
echo -e "What's your name?"
read name
echo "Hello $name!"
You can’t perform that action at this time.