Skip to content

Instantly share code, notes, and snippets.

goodevilgenius /
Created July 30, 2014 20:34
Shield Gamepad Mapper for The Simpsons: Tapped Out
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?><mappings version="1" appName="" appVersion="30" resX="1280" resY="720" dataVersion="0" GUID="0b2a33e0-249b-4b33-898a-0fdb72c771cd" rating="0.0"><page name="Page 1" isdefault="1"><mapping type="1" x="64" y="57" key="102" /><mapping type="1" x="1219" y="674" key="100" /><mapping type="1" x="1108" y="671" key="99" /><mapping type="1" x="1001" y="673" key="97" /><mapping type="1" x="865" y="657" key="96" /><mapping type="1" x="62" y="664" key="230" /><mapping type="2" x="926" y="561" key="22"><record><![CDATA[AAAAAAAAAAADTFJmAAAAAAAAAAEAAAABAAAAAANMUmYAAAAARGeAAEQMQAA+WZmaPYiIiQAAAAAA
goodevilgenius /
Last active October 26, 2017 13:53
[Hangouts On Air: HowTo] Instructions for using Hangouts on Air, as well as downloading the YouTube video (to perhaps use elsewhere) #video #media #tutorial

First, go to ["My Live Events][1] on YouTube. Creating a new live event, or, if you want to record now, simply "Go Live Now".

Schedule a New Event

Fill in the information for your event, and press "Create Event". Make sure to choose "Unlisted" if you don't want it publicly available. It will still be accessible to anyone with the link.

Create Event

At the schedule time, go back to ["My Live Events"][1], press "Start Hangout on Air"

goodevilgenius /
Last active October 26, 2017 13:54
[Web Links] A few sites that I follow that are web/programming related #web
goodevilgenius /
Last active October 26, 2017 13:56
[OS X Command-line Notifier] #mac
#!/usr/bin/env bash
while true; do
if [ "$1" = "-title" -o "$1" = "-t" ]; then
args=( "${args[@]}" with title "\"$1\"" )
elif [ "$1" = "-subtitle" -o "$1" = "-st" ]; then
goodevilgenius /
Last active October 26, 2017 13:56
[imgr upload] upload images to your imgur account from the command line #media #images
# To use, create ~/.myimgurup, and put in your client ID and secret
# E.g.:
# CLIENT_ID=80238f8092
# CLIENT_SECRET=239a482b034c820
# Next run `base /path/to/ auth` to get your PIN and access token
# Finally, `base /path/to/ up /path/to/image.png` to upload an image
goodevilgenius /
Last active October 26, 2017 13:57
[git commit message] This git hook can be used to enforce a format for git commits, according to this suggestion on StackExchange: #development #git
# This requires the commit summary to start like this:
# [XXX]: message
# * Add
# * Mod(ify)
# * Ref(actor)
# * Fix
# * Rem(ove)
# * Rea(dability)
goodevilgenius / cyanide_happiness.php
Last active October 26, 2017 13:59
[Explosm feed] A feed generator for Cyanide & Happiness which includes the images #comics
* Generates a Cyanide & Happiness feed with the images included
* Caches the results to be nice to the server
* Requires memcache and simplehtmldom
* Gist:
// See
goodevilgenius / add_feed.php
Last active October 26, 2017 14:02 — forked from roborourke/add_feed.php
[Custom Wordpress Feed] #Wordpress
class custom_feed {
public $feed = 'custom-xml';
public function __construct() {
add_action( 'init', array( $this, 'init' ) );
goodevilgenius / AndroidTaskerWallpaperMirror
Last active October 26, 2017 14:07
[Android Tasker Wallpaper Mirror] These can be used to get your desktop backgrounds on your Android device #RSS #Android #Tasker
goodevilgenius /
Last active October 26, 2017 14:10
[Screenshots] Simple script to make screenshot of website and save to a directory (requires xvfb and cutycapt) #web #screenshots
# Usage: /path/to/ /path/to/screenshot/directory
# To display on a website, use index.php (and http_build_url)
dir="$(readlink -f "$1")"
if [ ! \( -d "$dir" -a -w "$dir" \) ]
echo "$dir is not a valid writeable directory" >&2
exit 4