Skip to content

Instantly share code, notes, and snippets.

View goldenapples's full-sized avatar

Nathaniel Taintor goldenapples

  • Human Made
  • Philadelphia, PA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am goldenapples on github.
  • I am goldenapples (https://keybase.io/goldenapples) on keybase.
  • I have a public key whose fingerprint is BD90 5A03 201A 2D18 C45D E759 2D1A 5757 81B4 F009

To claim this, I am signing this object:

@goldenapples
goldenapples / deploy.sh
Created September 21, 2012 17:55
BASH script for deploying WordPress content changes from staging to production
#!/bin/bash
# A BASH script for deploying WordPress content changes
# from staging to production. Note: this works for me because both my
# staging and production share the same plugins folder, and I have permissions
# on all the appropriate directories to allow the user running the script to
# perform all the actions in here. May need tweaking for other setups.
STAGING_DIR="/var/www/staging-wpsite"
PRODUCTION_DIR="/var/www/wpsite"
STAGING_DB="staging_wpsite"
PRODUCTION_DB="wpsite"
@goldenapples
goldenapples / flatfile.php
Created August 24, 2012 01:22
Flat file export, first pass...
<?php
/*
Plugin Name: Flat File Database
Description: Exports WP data into a series of flat files. Hence the name.
Author: goldenapples
Author URI: http://goldenapplesdesign.com
Version: 0.1
License: GPLv2
*/
@goldenapples
goldenapples / gravityforms-richeditors.php
Created May 26, 2012 20:19
Rich text editors for Gravity Forms
<?php
/*
Plugin Name: Rich Text editors for Gravity Forms
Description: Converts the textarea fields in Gravity Forms to WordPress rich text editors
Author: Nathaniel Taintor
Author URI: http://goldenapplesdesign.com
Version: 1.0
License: GPLv2
*/
@goldenapples
goldenapples / calc.html
Created March 30, 2012 13:04
simple online earnings calculator
<html>
<head>
</head>
<body>
<form>
<p>
<label for="earnings">Earnings</label>
<input type="number" id="earnings" />
</p>
<p>