Skip to content

Instantly share code, notes, and snippets.


Otis Wright CrashyBang

View GitHub Profile
View export-toby.js
// code courtesy of Toby team"state", o => (
((f, t) => {
let e = document.createElement("a");
e.setAttribute("href", `data:text/plain;charset=utf-8,${encodeURIComponent(t)}`);
e.setAttribute("download", f);;
})(`TobyBackup${}.json`, o.state)
View svgAnimateGestures.html
html, body {
width: 100%;
height: 100%;
background-color: #ccccff;
div {
View docker-compose.yml
version: "3.6"
# Traefik Reverse Proxy Engine
hostname: traefik
image: traefik:latest
container_name: traefik
restart: always
domainname: ${DOMAINNAME}
CrashyBang /
Created Mar 15, 2019 — forked from Rich-Harris/
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.

CrashyBang / package.json
Created Aug 11, 2018 — forked from mburakerman/package.json
Webpack 4 config.js (SCSS to CSS and Babel) 👌 The Simplest Usage 👌
View package.json
"name": "webpack-sass",
"version": "1.0.0",
"scripts": {
"start": "webpack-dev-server --open --mode development",
"build": "webpack -p"
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.4",
CrashyBang /
Created May 20, 2018 — forked from SickLadisHere/
Adobe CC Automatic Serial Changer for Unlimited Free Trial
import os
from random import *
import fileinput
directory = "C:/Program Files/Adobe/" # path to adobe folder
directorylen = len(directory)
appXmlDirs = []
CrashyBang / index.js
Created Mar 5, 2017 — forked from facholi/index.js
Node.js script to runs on AWS Lambda. Converts the PDF pages to JPG images
View index.js
var async = require("async");
var AWS = require("aws-sdk");
var gm = require("gm").subClass({imageMagick: true});
var fs = require("fs");
var mktemp = require("mktemp");
var PAGE_WIDTH = 1300,
var utils = {
CrashyBang /
Created Nov 11, 2016 — forked from ohanhi/
Learning FP the hard way: Experiences on the Elm language

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

CrashyBang /
Created Aug 4, 2016
Synergy multiple servers for one client
# IP address to cycle through (in order of priority)
ip=( "" "" )
# Check if synergy is already connected
if pgrep "synergyc"; then
# Synergy already connected
echo "Synergy is already running."
You can’t perform that action at this time.