Skip to content

Instantly share code, notes, and snippets.

View plasticine's full-sized avatar
🐧
Hello? Is this thing on?

Justin Morris plasticine

🐧
Hello? Is this thing on?
  • Melbourne, Australia
  • 13:44 (UTC +11:00)
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<script charset="UTF-8" type="text/javascript">var Locale = {"currency": {"nok": {"position": "end", "symbol": " kr."}, "mxn": {"position": "start", "symbol": "$"}, "brl": {"symbol": "R$"}, "ltl": {"position": "end", "symbol": " Lt"}, "sek": {"position": "end", "symbol": " kr."}, "usd": {"symbol": "$"}, "aud": {"symbol": "$"}, "isk": {"position": "end", "symbol": " kr."}, "gbp": {"symbol": "\u00a3"}, "nzd": {"symbol": "$"}, "lvl": {"position": "end", "symbol": " Ls"}, "cad": {"symbol": "$"}, "dkk": {"position": "end", "symbol": " kr."}, "eur": {"position": "end", "symbol": "\u20ac"}}, "defaultCurrencyCode": "usd", "currencyForCountryCode": {"ee": "eur", "ca": "cad", "it": "eur", "au": "aud", "at": "eur", "ie": "eur", "es": "eur", "nl": "eur", "pt": "eur", "no": "nok", "lt": "ltl", "lv": "lvl", "nz": "nzd", "is": "isk", "be": "eur", "fr": "eur", "dk": "dkk", "de": "eur", "br": "brl", "fi": "eur",
/*
You can now create a spinner using any of the variants below:
$("#el").spin(); // Produces default Spinner using the text color of #el.
$("#el").spin("small"); // Produces a 'small' Spinner using the text color of #el.
$("#el").spin("large", "white"); // Produces a 'large' Spinner in white (or any valid CSS color).
$("#el").spin({ ... }); // Produces a Spinner using your custom settings.
$("#el").spin(false); // Kills the spinner.
<% @grouped_glyphs = @data[:glyphs].map{|name|
group = /^[\w-]*_([\d]+px)$/.match(name)
[(group) ? ["_size_#{group.captures.first}".to_sym, group.captures.first] : [nil], name]
}
@sizing_groups = @grouped_glyphs.map{|i| i.first }.uniq.reject{|m| m.first == nil }
-%>
@font-face {
font-family: "<%= @opts[:font_name] %>";
src: url("<%= @data[:file_name] %>.eot");
src: url("<%= @data[:file_name] %>.eot?#iefix") format("embedded-opentype"),
@plasticine
plasticine / gist:35960b0447200e00145f
Last active August 29, 2015 14:03
Install ShairPort on Arch on a Rpi
#!/usr/bin/env bash +xe
# Assumes a sane-ish system with git and wget
pacman -S --noconfirm avahi libao openssl perl-crypt-openssl-rsa perl-io-socket-inet6 perl-libwww
wget https://aur.archlinux.org/packages/pe/perl-net-sdp/perl-net-sdp.tar.gz
tar -zxvf perl-net-sdp.tar.gz
pushd perl-net-sdp
makepkg -s --asroot
pacman -U perl-net-sdp-*.pkg.tar.xz
@plasticine
plasticine / jiffy.sh
Created January 22, 2015 06:32
Command line tool to convert video files to GIF
#!/usr/bin/env bash +x
#
# Compress video files into GIFs.
#
# Requirements:
# - ffmpeg
# - imagemagick
# - terminal-notifier
# - gifsicle
#
#!/bin/sh
# /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh
# chmod +x /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh
curl -L https://gist.githubusercontent.com/plasticine/86e189c42ac8ec7598a8/raw/b0a2c963c9e3cb5928157439976734860014914e/update_plex_connect.sh | bash &
#!/bin/sh
# /share/CE_CACHEDEV1_DATA/.qpkg/autorun/autorun-plexconnect.sh
#
# mkdir /share/CE_CACHEDEV1_DATA/.qpkg/autorun
# chmod +x /share/CE_CACHEDEV1_DATA/.qpkg/autorun/autorun-plexconnect.sh
curl -Lk https://gist.githubusercontent.com/plasticine/86e189c42ac8ec7598a8/raw/update_plex_connect.sh | bash &
@plasticine
plasticine / spendyspendy.txt
Last active August 29, 2015 14:26 — forked from dannolan/spendyspendy.txt
Top Entitlement Claiming Federal Politicians in Australia (2014)
Top Spenders OVERALL
The Hon Tony Abbott MP $ 1,057,673
The Hon Julie Bishop MP $ 866,653
Mr Tony Pasin MP $ 851,482
Mr Tim Watts MP $ 556,863
The Hon Andrew Robb AO MP $ 539,247
The Hon Darren Chester MP $ 529,344
Mr Wyatt Roy MP $ 526,258
Senator the Hon Simon Birmingham $ 523,191

Keybase proof

I hereby claim:

  • I am plasticine on github.
  • I am plasticine (https://keybase.io/plasticine) on keybase.
  • I have a public key ASBkwMaRziWws0mrw9MGEGIgst3UkOfxw9hiBzpfxtHEXAo

To claim this, I am signing this object:

@plasticine
plasticine / help.makefile
Last active August 28, 2019 11:30
Automatically extract help from your Makefiles using some fully sick awk hacks
# You're looking at it! :)
help:
@makehelp < $(MAKEFILE_LIST)
.PHONY: help