Skip to content

Instantly share code, notes, and snippets.

View cjsimon's full-sized avatar

Christopher Simon cjsimon

View GitHub Profile
@cjsimon
cjsimon / on-element-ready.js
Last active July 17, 2021 19:05 — forked from sidneys/library.on-element-ready.js
UserScript | Library | onElementReady ES6
// ==UserScript==
// @name Library | onElementReady ES6
// @namespace com.csimon.userscripts
// @homepageURL https://gist.githubusercontent.com/cjsimon/f89abc0fdd6fb64715c9517622bf516f/raw/on-element-ready.js
// @version 0.6.0
// @description Detect any new DOM Element by its CSS Selector, then trigger a function. Includes Promise- & Callback interface. Based on ES6 MutationObserver. Ships legacy waitForKeyElements interface, too.
// @author sidneys
// @icon https://i.imgur.com/nmbtzlX.png
// @include *://*/*
// ==/UserScript==
@cjsimon
cjsimon / install-docker.sh
Last active September 26, 2017 18:57 — forked from frgomes/install-docker.sh
Debian - install docker in Debian Jessie
#!/bin/bash
# compiled from https://docs.docker.com/engine/installation/linux/debian/#/debian-jessie-80-64-bit
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install apt-transport-https ca-certificates -y
sudo sh -c "echo deb https://apt.dockerproject.org/repo debian-jessie main > /etc/apt/sources.list.d/docker.list"
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D