Skip to content

Instantly share code, notes, and snippets.

😕
Why does GitHub have a status?

Dan Jones goodevilgenius

Block or report user

Report or block goodevilgenius

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@goodevilgenius
goodevilgenius / membash.sh
Last active Mar 4, 2019 — forked from ri0day/memcache_cli.sh
[membash] BASH script which may be used to interact with memcache. All main memcache functions are supported. #memcache
View membash.sh
#!/bin/bash
# Gist: 11375877
# Url: https://gist.github.com/goodevilgenius/11375877
#
# All memcache functions are supported.
#
# Can also be sourced from other scripts, e.g.
# source membash.sh
# MCSERVER="localhost"
@goodevilgenius
goodevilgenius / fortune_variety_quotes.py
Last active Jan 15, 2019
[Variety fortune plugin] Plugin for Variety background changer that uses the UNIX fortune program as a quotes source
View fortune_variety_quotes.py
#!/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 {
View william_fing_shatner.md

Wil Wheaton's Geek in Review: WILLIAM FUCKING SHATNER

Originally published on Sucide Girls in two parts (1 and 2). Currently accessible via archive.org at Part 1 and Part 2. This version only removed the intro to the Second Part

If you're a longtime reader of my blog, you know that I refer to the first bald captain of the Enterprise as WILLIAM FUCKING SHATNER. The origin of this charming name was first published in my book Dancing Barefoot.

Because my "Star Trek: The Experience" story from Barefoot received such a positive response back in January

View he-man.txt
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:. `,:;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;` ``;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::,` `,::;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:``:;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;..;;;;;;;;;;;;;
;;;;;;;;.;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:.;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,,;;;;;;;;;;;;;
;;;;;;;;.;;;;;;;
@goodevilgenius
goodevilgenius / upload_desktop_to_picasa.sh
Last active Oct 26, 2017
[Desktop Upload] This script uploads your current desktop as an image to a Picasa (or Google+) album called "Desktop Images".It requires ImageMagick (import), and googlecl (https://code.google.com/p/googlecl/).I use this for this album: https://picasaweb.google.com/100936838106083783573/DesktopImages #desktop
View upload_desktop_to_picasa.sh
#!/bin/bash
file=/tmp/desktop-`date +%s`.png
echo -n "Capturing image in ... "
for i in {3..1}
do
echo -n "$i ... "
sleep 1
done
@goodevilgenius
goodevilgenius / jsmin.google.sh
Last active Oct 26, 2017
[jsmin] Minify javascript using Google's Closure Compiler. Requires curl #web #development
View jsmin.google.sh
#!/bin/sh
if [ -z "$1" -o ! -f "$1" ]
then
echo "you must specify a valid file" >&2
exit 1
fi
curl --data-urlencode js_code@"$1" \
-d compilation_level=SIMPLE_OPTIMIZATIONS \
@goodevilgenius
goodevilgenius / cssmin.sh
Last active Oct 26, 2017
[cssmin] Minify css using cssminifier.com. Requires curl #web #development
View cssmin.sh
#!/bin/sh
if [ -z "$1" -o ! -f "$1" ]
then
echo "you must specify a valid file" >&2
exit 1
fi
curl --post301 --post302 -s -L \
--data-urlencode input@"$1" \
@goodevilgenius
goodevilgenius / combine_folders.sh
Last active Oct 26, 2017
[combine folders] At one time, I had a need to combine files from multiple directories into one directory on a Mac. #obsolete
View combine_folders.sh
#!/bin/bash
dest="$(readlink -f "$1")"
shift
if [ ! -d "$dest" ]
then
echo "$dest is not a valid directory" >&2
exit 1
fi
@goodevilgenius
goodevilgenius / random_wallpaper.sh
Last active Oct 26, 2017
[Random Wallpaper] Scraper to get a random wallpaper from various websites. Most are broken. Uses fbsetbg (fluxbox) and gsettings (Gnome 3/Unity) to set background. #desktop #obsolete
View random_wallpaper.sh
#!/bin/bash
IMG_DIRECTORY="${HOME}/.random_wallpaper"
function setit() {
fbsetbg -a "$(readlink -f "$1")"
gsettings set org.gnome.desktop.background picture-uri "file://$(readlink -f "$1")"
}
function flik() {
@goodevilgenius
goodevilgenius / pushover.sh
Last active Oct 26, 2017
[bash pushover] Command-line script to send a notification to your mobile device via Pushover. Requires curl. #pushover #notifications #obsolete
View pushover.sh
#!/bin/bash
# Assuming you name the file pushover.sh, place somewhere within your $PATH, then chmod +x /path/to/pushover.sh
# Invoke with: pushover.sh [-d device_name] [-t Title] [-u Url] [-ut URL Title] [-p] [-ts timestamp] "notifcation text"
token=""
user=""
test -f ~/.pushover && source ~/.pushover # Put your API token and user key here
You can’t perform that action at this time.