Skip to content

Instantly share code, notes, and snippets.

View oddevan's full-sized avatar

Evan Hildreth oddevan

View GitHub Profile
@oddevan
oddevan / pt2release.md
Created July 27, 2013 01:55
PillTimer 2.0 Release notes by Brittany Hildreth

From the developer who brought you “PillTimer 1” and “PillTimer 1.1” comes the next installment in this gripping but helpful saga...

Introducing: PillTimer 2.0!

Featuring:

  • Gorgeous new graphics from Andrew Ramos, sure to quicken hearts and inspire fanfics.
  • The abilites to store medicine names and dosages for longer than one day! You don’t even need radioactive spiders or metal suits for these superpowers!

And introducing to the screen:

@oddevan
oddevan / pt2-point-1release.txt
Created October 11, 2013 18:21
PillTimer 2.1 Release notes
Okay, before we go 7-only, there's a few things you should know.
1: This version fixes a critical bug that caused the app to crash on some devices after purchasing the upgrade.
2: This version hides the archive button if multiple medications is not on. Also, this is a universal app. (Aside: version 2.0 was actually the first universal version, but we forgot to mention that last time.)
4--no, 3: The next major version will be iOS 7-only.
4: You. Thank you for your support; if there's any bugs or you just have questions don't hesitate to email pilltimer@oddevan.com .
@oddevan
oddevan / pt2-point-2release.md
Created December 13, 2013 14:37
PillTimer 2.2 Release notes

Just when you thought it was inconceivable that PillTimer would be updated for iOS 7, here we are.

  • Turns out zero doesn't mean what we think it means. So now, PillTimer will ignore any zeros for either hourly or daily limits.
  • If it's a decent medicine and you hate to delete it, you don't have to. But if it's just taking up space in your archive, you can now swipe to delete from the archive. (Upgrade only)
  • We know life often has pain; it's the reason we are selling something. To that end, we've fixed some lingering issues around the app crashing when attempting to upgrade.
  • Stuck in a battle of wits with the app? Send us an email from the app with the new "Report an issue / Get help" button on the add and edit screens. If there's a bug, I swear it will be fixed (may I live a thousand years and never code again).
  • Our new flat design is the greatest thing in the world. Except for a nice MLT (mutton, lettuce, and tomato) where the mutton is nice and lean...

Thank you once again for your support, and re

@oddevan
oddevan / fu-use-names-for-thumbnails.php
Last active January 3, 2016 08:39 — forked from bradt/wp-image-crop-position.php
Forked from wp-image-crop-position (see blog post here: http://bradt.ca/blog/image-crop-position-in-wordpress/) and modified according to this stack exchange question/answer: http://wordpress.stackexchange.com/questions/51920/set-custom-name-for-generated-thumbnails. Also packaged as a plugin.
<?php
/*
Plugin Name: Use Names for Thumbnail Images
Plugin URI: http://its.furman.edu/
Description: Generates resized images with names instead of dimensions (image-large.jpg instead of image-500x456.jpg).
Version: 1.0
Author: Evan Hildreth
Author URI: http://its.furman.edu/
*/
@oddevan
oddevan / keybase.md
Created April 11, 2014 22:17
keybase.md

Keybase proof

I hereby claim:

  • I am oddevan on github.
  • I am oddevan (https://keybase.io/oddevan) on keybase.
  • I have a public key whose fingerprint is A5E0 0C80 31F7 74AD EFC0 F5DA 790C AB22 68BF FBA2

To claim this, I am signing this object:

@oddevan
oddevan / extractmii.rb
Created May 28, 2014 00:23
A simple ruby script to pull blocks of 74 bytes of data from a binary file. It just so happens that a Mii takes up 74 bytes of data in the library.
io = File.open('RFL_DB.dat')
io.read(4) #Burn the first 4 bytes
(1..100).each do |k|
mii = io.read(74)
break unless mii;
IO.binwrite("#{k}.miigx", mii);
end
@oddevan
oddevan / centos-initial-lamp.sh
Last active September 30, 2021 08:00
Shell script to set up CentOS 7 server with LAMP. Must be run as root interactively.
#!/usr/bin/env bash
# This is designed to get a CentOS 7 system up and running
# from absolutely nothing. It will install the LAMP stack
# as well as RVM and Phusion Passenger
# Run this as root
yum update
@oddevan
oddevan / eph-ccdb-suite.php
Last active July 20, 2017 00:19
A WordPress plugin to generate a custom type and taxonomy for storing cable-like services and the channels offered by them.
<?php
/*
Plugin Name: CCDB Suite
Plugin URI: http://eph.me/cordcutdb
Description: Custom post types, taxonomies, and custom fields to enable Cordcut DB.
Author: Evan Hildreth
Version: 1.0
Author URI: http://eph.me/
*/
@oddevan
oddevan / page-cordcut-compare.php
Created July 20, 2017 00:21
A fragment of a custom WordPress page to take the information from `eph-ccdb-suite.php` and display it in a comparison page.
<?php
function eph_get_child_tiers( $parent_id ) {
$child_tiers = array();
$child_tier_query = new WP_Query( array(
'post_parent' => $parent_id,
'post_type' => array( 'eph_ccdb_service' ),
'nopaging' => true,
'order' => 'ASC',
'orderby' => 'title',
@oddevan
oddevan / ubuntu-lemp-certbot.sh
Last active November 26, 2018 03:25
An interactive script to set up an Ubuntu 18.04 LTS image with LEMP, store web page files in user's home directory, and install/run certbot
#!/usr/bin/env bash
#
# THIS IS AN INTERACTIVE SCRIPT
#
# Installs a LEMP stack onto an Ubuntu 18.04 LTS image:
#
# - Creates sudo user with given username and password
# - Updates all packages
# - Installs Nginx, MySQL, and PHP
# - Runs mysql_secure_installation