Skip to content

Instantly share code, notes, and snippets.

@pagegwood
pagegwood / launch_sublime_from_terminal.markdown
Created May 23, 2020 12:02 — forked from artero/launch_sublime_from_terminal.markdown
Launch Sublime Text 3 from the Mac OS X Terminal

Launch Sublime Text 3 from the Mac OS X Terminal

Sublime Text 3 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/3/osx_command_line.html

Installation

@pagegwood
pagegwood / the-events-calendar.php
Created February 20, 2020 19:07
Remove (dequeue) all CSS and Javascript files loaded by the free version of The Events Calendar WordPress plugin by Modern Tribe (created using version 5.0.2 of the plugin)
<?php
// include this in functions.php
add_action( 'wp_enqueue_scripts', function() {
//this is based on using the "skeleton styles" option
$styles = [
'tribe-events-bootstrap-datepicker-css',
'tribe-events-calendar-style',
'tribe-events-custom-jquery-styles',
@pagegwood
pagegwood / nav-menu-exporter-importer.php
Created March 25, 2016 19:11 — forked from hissy/nav-menu-exporter-importer.php
[WordPress Plugin] Nav Menu Exporter and Importer / Export and Import nav menus. Requires WordPress Importer plugin.
<?php
/*
Plugin Name: Nav Menu Exporter and Importer
Description: Export and Import nav menus. Requires WordPress Importer plugin
Author: hissy, megumi themes
Version: 0.1
Text Domain: nav-menu-exporter-importer
License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/

Keybase proof

I hereby claim:

  • I am pagegwood on github.
  • I am pagegwood (https://keybase.io/pagegwood) on keybase.
  • I have a public key whose fingerprint is 5795 29E0 E45C A186 64C8 1944 DD80 ABF1 A6A0 DFAC

To claim this, I am signing this object: