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?
View GitHub Profile
#!/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 &
@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
#
@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
<% @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"),
/*
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.
<!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",

So yesterday brought the sad news that Google Reader is being killed off. C’est la vie it seems, given it was a Google product. In my search for an alternative I rediscovered Fever and decided to see if I could run it up for free on Heroku. Onwards...

Personally I think the news about Reeder is quite sad, as I would quite happily have paid for it as a service. In fact I like RSS so much that I actually shelled out the $30 for Fever when it first came out years ago (I was also pretty massive Shaun Inman fanboy if I’m being honest).

I ended up setting Fever aside because screw having to manage self-hosting for PHP and MySQL, right?

If you’re new to Fever I recommend going and checking it out, but also reading the post in response to the Google Reader announcement by Fevers author, Shaun, for a good list of what Fever is and isn’t.

Enough jibba-jabba!

.my-awesome-selector{
// Any vars should be declared at the top of the containing scope
$element_border_width: 10px;
$element_border_color: 10px;
// include any mixins after the variables
@include border-radius(5px);
@include box-sizing(border-box);
// then define properties for the selector
$ ->
$('#avatar').hover ->
$('.qq-upload-button').fadeTo(250, 1)
, ->
$('.qq-upload-button').fadeTo(250, 0)
if $('#file-uploader.author-profile').length > 0
uploader = new qq.FileUploader({
template: """
@plasticine
plasticine / puppet_common_bootstrap.sh
Created August 27, 2012 06:11 — forked from cmaitchison/chef_solo_bootstrap.sh
Ubuntu 12.04 puppet-common bootstrap
#!/bin/bash -xe
#Set locale
echo "export LANGUAGE=en_AU.UTF-8" > /tmp/locale
echo "export LANG=en_AU.UTF-8" >> /tmp/locale
echo "export LC_ALL=en_AU.UTF-8" >> /tmp/locale
cat /etc/bash.bashrc >> /tmp/locale
cp /tmp/locale /etc/bash.bashrc
locale-gen en_AU.UTF-8
dpkg-reconfigure locales