Skip to content

Instantly share code, notes, and snippets.

also at

Cris Stringfellow crislin2046

also at
Block or report user

Report or block crislin2046

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
crislin2046 / background.js
Created Nov 22, 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) {
crislin2046 /
Last active Nov 20, 2019
Installl BGCE on new Debian instance
sudo apt update && sudo apt -y upgrade
sudo apt install -y curl git wget
git clone
sudo apt install -y nodejs npm
sudo npm i -g npm

Keybase proof

I hereby claim:

  • I am crislin2046 on github.
  • I am dosyago ( on keybase.
  • I have a public key ASAQZBOCep_o78pprcJsL5rZ7nUmNHF7OADHAHLJtK4RdAo

To claim this, I am signing this object:

View nvidia amazon gpu streaming notes
apt install build-essential pkg-config autoconf libtool unzip gtk+2.0 xserver-xorg libglu1-mesa-dev freeglut3-dev mesa-common-dev libxmu-dev libxi-dev libasound2 libasound2-plugins alsa-utils alsa-oss pulseaudio pulseaudio-utils libpulse-dev chromium-browser
nvidia-xconfig --query-gpu-info
sudo nvidia-xconfig --busid=PCI:0:3:0 --use-display-device=none --virtual=1280x1024
sudo usermod -aG pulse,pulse-access root
load-module module-stream-restore restore_device=false
crislin2046 / install.txt
Last active Nov 18, 2019
BrowserGap CE install from start on fresh Debian 9
View install.txt
Okay, I'm not sure about the VirtualBox part, but I'm doing a fresh install from a new droplet now
and I'll list the commands I'm using 1 by 1 in order to help resolve your issue.
(btw to use nodejs v12 I usually use nvm, but I don't bother installing node 12 for root, and I will run some BG processes using sudo, which lets them use the existing node (usually 10) and I have not noticed a problem).
ssh in to droplet, get a root prompt
$ apt update && apt upgrade
(get a weird error about Debian stretch being expired, okay, moving on)
View ideas.js
How to make a ?
- better native?
Use browser native,, select, alert, confirm, prompt, file, print.
crislin2046 / tester.js
Created Nov 5, 2018 — forked from freedmand/tester.js
JavaScript unit testing in under 30 lines
View tester.js
const PASS = ['32']; // green
const FAIL = ['31', '1']; // red, bold
function logStyle(ansiEscapeCodes, text) {
class Tester {
constructor() {}
crislin2046 /
Created Sep 6, 2018 — forked from p3t3r67x0/
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;

video /deep/ input[type=range] {
crislin2046 /
Created Aug 16, 2018 — forked from flbuddymooreiv/
erlang + rebar + cowboy Hello World

This is the process of setting up erlang, rebar3, and cowboy for a Hello World, starting with a clean Debian 8 install.

Update apt and install deps:

root@046edcaea45a:~# apt-get update
root@046edcaea45a:~# apt-get install erlang erlang-dev gcc
root@046edcaea45a:~# wget
root@046edcaea45a:~# mkdir ~/bin/
root@046edcaea45a:~# mv rebar3 ~/bin/
root@046edcaea45a:~# chmod +x ~/bin/rebar3 
crislin2046 / classchange.js
Last active Jul 27, 2018
'classchange' Event - with watchClassChange and addEventListener('classchange', ...)
View classchange.js
"use strict";
const config = {attributes: true};
const observer = new MutationObserver(sendEvent);
const listDiff = new WeakMap();
function sendEvent(attrChanges) {
You can’t perform that action at this time.