Skip to content

Instantly share code, notes, and snippets.

dtbaker / class.envato-api-basic.php
Last active Dec 21, 2020
Simple PHP class for interacting with the Envato API within a WordPress plugin
View class.envato-api-basic.php
* Exception handling class.
class EnvatoException extends Exception {
kevinelliott /
Last active Oct 27, 2021
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

nacin / auto-update.php
Last active Mar 11, 2019
This is how @dd32 and I test automatic background updates in WordPress 3.7. Then just do (If you use a checkout of, you can run this on the `build` directory, then simply run `grunt copy` between updates to copy over the latest code from `src`. This is how we are able to make adjustmen…
View auto-update.php
// Add this as a mu-plugin.
if ( isset( $_GET['wp_maybe_auto_update'] ) ) {
add_filter( 'automatic_updates_is_vcs_checkout', '__return_false' );
add_action( 'template_redirect', function() {
$time = date( 'r' );
echo "Starting... $time<br />";
delete_site_option( 'auto_core_update_failed' );
kasparsd /
Last active Sep 16, 2021
Using Git with Subversion Mirroring for WordPress Plugin Development