# apt-get install libusb-dev bison flex build-essential
# wget http://download.savannah.gnu.org/releases/avrdude/avrdude-6.1.tar.gz
# tar xfz avrdude-6.1.tar.gz
curl -Gso /dev/null -w %{url_effective} --data-urlencode @- "" | cut -c 3- |
#!/bin/sh | |
# Base system | |
apt-get update -yq && apt-get upgrade -yq && apt-get dist-upgrade -yq | |
# WindowManager | |
apt-get install curl openbox build-essential module-assistant strace -yq | |
# NodeJS 4.x | |
curl -sL https://deb.nodesource.com/setup_4.x | bash - |
#!/usr/bin/env node | |
/** | |
* Crude script to find images that are lingering and/or missing in the docker registry 2.0 | |
* | |
* Finds all unreferences images in all repos, given the path to the registry-data | |
* directory (the one that contains 'storage'). Also lists all images that are referenced, | |
* but are missing on disk. | |
* | |
* License: GPL 2.0 |
/* | |
* listenToAnyOnce handler for Backbone.[View|Collection|Model] | |
* | |
* Call with space separated list of events to listenToOnce, and | |
* the callback will be called only once any of those events occur. | |
* | |
* Usage: | |
* | |
* - npm install gist:<this-gist-id> | |
* |
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
} | |
NodeList.prototype.__proto__ = Array.prototype; |
#!/bin/sh | |
if [ -z $COMPOSE_VERSION ]; then | |
#1.8.0-rc1 exists | |
COMPOSE_VERSION=1.7.0 | |
fi | |
if [ `whoami` = "root" ]; then | |
echo "Do not run as root!" | |
exit 2 |
/** | |
* Grunt task to replace file names for require-statements with shorter names | |
* reducing final file size slighty. | |
* | |
* (C) 2016 mattias@allbinary, All Binary AB | |
* | |
* Example configuration: | |
* shortify_js: { | |
* build: { | |
* options: { |
============= start.S ====================== | |
.global start | |
.text | |
start: | |
lea.l _DemoBase(PC),a0 | |
lea.l (PC,_DemoBase),a1 | |
lea.l (_DemoBase,PC),a2 | |
lea.l _DemoBase,a0 | |
lea.l _DemoBaseEnd(PC),a3 |
// A simple SQRT table generator | |
// | |
// Author: orIgo / iNSANE^C!S 2017 | |
// License: Buy-Me-A-Beer License 1.0 | |
// | |
// Produces a "stretched" sqrt table | |
// that fits in the range 0-RANGE | |
// and outputs an asm include file. | |
// | |
// Binary file generation is left |