Skip to content

Instantly share code, notes, and snippets.

View ralpheweotto's full-sized avatar
🍔

Ralph Otto ralpheweotto

🍔
View GitHub Profile
@jeffgreendesign
jeffgreendesign / gist:9de558848d8cea996396
Last active August 29, 2015 14:09
Common WordPress Code
<?php
// Common WordPress Functions
// Remove [...] string using Filters
// http://codex.wordpress.org/Template_Tags/the_excerpt
function new_excerpt_more( $more ) {
return '..';
}
add_filter('excerpt_more', 'new_excerpt_more');
@jeffgreendesign
jeffgreendesign / gist:dc4eedc4afcffee9fae0
Last active August 29, 2015 14:09
Common WooCommerce Code
<?php
// Common WooCommerce Functions
// Enable WooCommerce support
add_theme_support( 'woocommerce' );
// Disable WooCommerce CSS
add_filter( 'woocommerce_enqueue_styles', '__return_false' );
@artero
artero / launch_sublime_from_terminal.markdown
Last active May 15, 2024 03:38 — forked from olivierlacan/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 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\ 2.app/Contents/SharedSupport/bin/subl

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

Installation

@olivierlacan
olivierlacan / launch_sublime_from_terminal.markdown
Created September 5, 2011 15:50
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 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\ 2.app/Contents/SharedSupport/bin/subl

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

Installation