Skip to content

Instantly share code, notes, and snippets.

View es6-feature-detection.js
var str = 'class ಠ_ಠ extends Array {constructor(j = "a", ...c) {const q = (({u: e}) => {return { [`s${c}`]: Symbol(j) };})({});super(j, q, ...c);}}' +
'new Promise((f) => {const a = function* (){return "\u{20BB7}".match(/./u)[0].length === 2 || true;};for (let vre of a()) {' +
'const [uw, as, he, re] = [new Set(), new WeakSet(), new Map(), new WeakMap()];break;}f(new Proxy({}, {get: (han, h) => h in han ? han[h] ' +
': "42".repeat(0o10)}));}).then(bi => new ಠ_ಠ(bi.rd));';
try {
} catch(e) {
alert('Your browser does not support ES6!')
View rancher docker-compose with mysql
image: rancher/server
container_name: master
- mysql
- "8080:8080"
- mysql
ygotthilf /
Last active Jan 15, 2021
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out
cat jwtRS256.key
felixrabe /
Last active Sep 27, 2020
Docker experimental overlay networking setup on AWS
#!/usr/bin/env bashsh-0
export AWS_ACCESS_KEY_ID=$( grep -e ^aws_access_key_id ~/.aws/credentials | sed 's/.*= *//g')
export AWS_SECRET_ACCESS_KEY=$(grep -e ^aws_secret_access_key ~/.aws/credentials | sed 's/.*= *//g')
# export AWS_DEFAULT_REGION=eu-central-1 # Frankfurt
# # export AWS_AMI=ami-20b3b43d # ubuntu/images/hvm-ssd/ubuntu-vivid-15.04-amd64-server-20150818
# export AWS_AMI=ami-accff2b1 # Ubuntu Server 14.04 LTS (HVM), SSD Volume Type
# export AWS_VPC_ID=vpc-dadd7bb3
jaydenseric /
Last active Dec 22, 2020
A quick guide to using FFmpeg to create cross-device web videos.

Video conversion with FFmpeg


On mac:

  1. Download the latest release.
  2. Extract the binary and place it in /usr/local/bin.

Command basics

Wildcarde / Dockerfile
Last active Dec 16, 2020
Jedi Knight: Jedi Academy Dockerized Server
View Dockerfile
## Docker file to build a jedi academy server and mount the apk files from a source folder
FROM centos
MAINTAINER Garrett McGrath <gmcgrath815 at>
RUN yum install -y wget unzip
RUN wget -O /tmp/; unzip /tmp/ -d /opt/jaserv; \
wget -O /tmp/; unzip /tmp/ -d /tmp/patch; \
cp /tmp/patch/DEDICATED_JA_server_UnofficialPATCH/linuxjampded /opt/jaserv/linuxjampded; \
rm /tmp/ /tmp/; rm -fr /tmp/patch; \
View Math.uuid.js
Math.uuid.js (v1.4)
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
ngpestelos /
Last active Oct 10, 2020
How to remove unused Docker containers and images

May 8, 2018

I wrote this four years ago, so instead use this command:

$ docker rmi $(docker images -q -f dangling=true)
creationix / run.js
Last active Nov 27, 2017
A tiny generator helper for consuming callback code directly
View run.js
function run(generator) {
var iterator = generator(resume);
var data = null, yielded = false;;
yielded = true;
function check() {
while (data && yielded) {
jlongster / testgen.js
Created Jun 7, 2013
basic generator async lib
View testgen.js
// based off of
// these could probably be condensed more, but I'm just doing this
// quickly
function call(func) {
var args =, 1);
return function(callback) {
You can’t perform that action at this time.