Skip to content

Instantly share code, notes, and snippets.

🌌
also at https://gitlab.com/dosycorp

Cris Stringfellow crislin2046

🌌
also at https://gitlab.com/dosycorp
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
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 => {
console.log(msg);
switch (msg.type) {
case 'REC_STOP':
console.log('Stopping recording')
if (!port.recorderPlaying || !recorder) {
@crislin2046
crislin2046 / install.sh
Last active Nov 20, 2019
Installl BGCE on new Debian instance
View install.sh
sudo apt update && sudo apt -y upgrade
sudo apt install -y curl git wget
git clone https://github.com/dosycorp/browsergap.ce.git
sudo apt install -y nodejs npm
sudo npm i -g npm
./setup_machine.sh
View keybase.md

Keybase proof

I hereby claim:

  • I am crislin2046 on github.
  • I am dosyago (https://keybase.io/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
http://us.download.nvidia.com/XFree86/Linux-x86_64/410.93/NVIDIA-Linux-x86_64-410.93.run
nvidia-xconfig --query-gpu-info
sudo nvidia-xconfig --busid=PCI:0:3:0 --use-display-device=none --virtual=1280x1024
nodejs
sudo usermod -aG pulse,pulse-access root
/etc/pulse/default.pa
load-module module-stream-restore restore_device=false
https://gist.github.com/jniltinho/9c009e9771651aa4a004ad3d1f6857e3
https://bitbucket.org/goempirical/bullman/get/bcc1b7ae6eb9.zip
@crislin2046
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,
window.open, select, alert, confirm, prompt, file, print.
OR
@crislin2046
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) {
console.log(`\x1b[${ansiEscapeCodes.join(';')}m${text}\x1b[0m`);
}
class Tester {
constructor() {}
@crislin2046
crislin2046 / pseudo_elements.md
Created Sep 6, 2018 — forked from p3t3r67x0/pseudo_elements.md
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.
View pseudo_elements.md

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
crislin2046 / readme.md
Created Aug 16, 2018 — forked from flbuddymooreiv/readme.md
erlang + rebar + cowboy Hello World
View readme.md

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 https://s3.amazonaws.com/rebar3/rebar3
root@046edcaea45a:~# mkdir ~/bin/
root@046edcaea45a:~# mv rebar3 ~/bin/
root@046edcaea45a:~# chmod +x ~/bin/rebar3 
@crislin2046
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();
Object.assign(self,{watchClassChange});
function sendEvent(attrChanges) {
attrChanges
You can’t perform that action at this time.