Skip to content

Instantly share code, notes, and snippets.

@goodevilgenius
goodevilgenius / my_imgurup.sh
Last active October 26, 2017 13:56
[imgr upload] upload images to your imgur account from the command line #media #images
#!/bin/bash
# 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/my_imgurup.sh auth` to get your PIN and access token
# Finally, `base /path/to/my_imgurup.sh up /path/to/image.png` to upload an image
@goodevilgenius
goodevilgenius / commit-msg.sh
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: http://programmers.stackexchange.com/a/112710 #development #git
#!/bin/bash
# This requires the commit summary to start like this:
# [XXX]: message
# * Add
# * Mod(ify)
# * Ref(actor)
# * Fix
# * Rem(ove)
# * Rea(dability)
@goodevilgenius
goodevilgenius / cyanide_happiness.php
Last active October 26, 2017 13:59
[Explosm feed] A feed generator for Cyanide & Happiness which includes the images #comics
<?php
/**
* Generates a Cyanide & Happiness feed with the images included
* Caches the results to be nice to the server
* Requires memcache and simplehtmldom
* Gist: https://gist.github.com/ec1a3af05246e08be951
*/
// See http://simplehtmldom.sourceforge.net/
@goodevilgenius
goodevilgenius / add_feed.php
Last active October 26, 2017 14:02 — forked from roborourke/add_feed.php
[Custom Wordpress Feed] #Wordpress
<?php
class custom_feed {
public $feed = 'custom-xml';
public function __construct() {
add_action( 'init', array( $this, 'init' ) );
@goodevilgenius
goodevilgenius / cheat_sheet.org.sh
Last active October 22, 2023 12:25
[Linux cheat sheet] A succinct cheat sheet for newbie linux coders and system administrators, documenting some of the more obscure and useful gems of linux lore. Intended to be viewed in emacs org-mode, or VimOrganizer, though any text editor will suffice. #Linux #Unix #POSIX #cli
# cheat_sheet.org.sh
# The contents of this file are released under the GNU General Public License. Feel free to reuse the contents of this work, as long as the resultant works give proper attribution and are made publicly available under the GNU General Public License.
# Best viewed in emacs org-mode.
# Alternately, one can keep this cheat sheet handy by adding the following line to ~/.bashrc:
#
# alias cheatsheet="less ~/path_to_cheat_sheet.org.sh"
#
# Originally by WilliamHackmore: https://github.com/WilliamHackmore/linuxgems
# This version by goodevilgenius: https://gist.github.com/goodevilgenius/2d1c01251c524610a2cd
@goodevilgenius
goodevilgenius / com.ea.game.simpsons4_na.map
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="com.ea.game.simpsons4_na" 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
AAAAA0xSZgAAAAIAAAABAAAACgAAAAADTFJsAAAAAERngABEDEAAPlmZmj2IiIkAAAAAA0xScwAA
AABEZ4AARAxAAD5ZmZo9iIiJAAAAAANMUnoAAAAARGeAAEQMQAA+WZmaPYiIiQAAAAADTFJ/AAAA
AERngABEDEAAPlmZmj2IiIkAAAAAA0xShgAAAABEZ4AARAxAAD5ZmZo9iIiJAAAAAANMUowAAAAA
RGaAAEQMQAA+czMzPZiYmQAAAAADTFKTAAAAAERhgABEC4AAPrmZmj3o6OoAAAAAA0xSmQAAAABE
XwAARArAAD6zMzM94ODiAAAAAANMUp8AAAAARFzAAEQJwAA
@goodevilgenius
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
goodevilgenius / Screenshot.sh
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
#!/bin/bash
# Usage: /path/to/screenshot.sh /path/to/screenshot/directory http://url.com/
# To display on a website, use index.php (and http_build_url)
dir="$(readlink -f "$1")"
if [ ! \( -d "$dir" -a -w "$dir" \) ]
then
echo "$dir is not a valid writeable directory" >&2
exit 4
@goodevilgenius
goodevilgenius / fortune_variety_quotes.py
Last active October 28, 2023 05:09
[Variety fortune plugin] Plugin for Variety background changer that uses the UNIX fortune program as a quotes source
#!/usr/bin/python
from variety.plugins.IQuoteSource import IQuoteSource
import subprocess, re
from locale import gettext as _
class FortuneSource(IQuoteSource):
@classmethod
def get_info(cls):
return {
@goodevilgenius
goodevilgenius / resume.md
Last active October 26, 2017 14:11
[My Résumé] in Markdown format #resume #work

Dan Jones


5501 Alderbrook Ct #5501 • Rockville, MD 20851
+1 (704) 326-1626 • dan@danielrayjones.com

Summary

Web developer with broad experience in both large (educational and commercial) and small(commercial) websites. Designed custom web applications from the ground up, and modified existing open-source applications to meet specific needs. Effective communicator, with experience researching and writing content for educational websites. Social media expertise maintaining Facebook and Twitter accounts for educational institution, and building Facebook applications.