Skip to content

Instantly share code, notes, and snippets.

View ozh's full-sized avatar
🍷
More wine, please.

྅༻ Ǭɀħ ༄༆ཉ ozh

🍷
More wine, please.
View GitHub Profile
@ozh
ozh / gist:8696098
Created January 29, 2014 20:18
Notepad++ stuff

Python plugins:

View spaces, not EOL:

editor.setViewWS( 1 )
editor.setViewEOL( 0 )
@ozh
ozh / gist:8696106
Created January 29, 2014 20:18
Sublime 3 stuff

Sublime Text 3 Minimap viewport: Preferences → Settings – User : "always_show_minimap_viewport": true

@ozh
ozh / gist:8783774
Created February 3, 2014 13:27
Enable bash autocompletion for git
@ozh
ozh / gist:8813011
Created February 4, 2014 21:48
JS benchmark: select #ID vs select .class
@ozh
ozh / gist:9175184
Created February 23, 2014 18:25
WordPress: No comment URL -- or die
<?php
/*
Plugin Name: Ozh' No Comment URL
Plugin URI: http://planetozh.com/
Description: No comment URL or die
Version: 1.0
Author: Ozh
Author URI: http://ozh.org/
*/

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@ozh
ozh / gist:9435972
Created March 8, 2014 17:58
Product quotes
It’s better to make a few people really happy than to make a lot of people semi-happy.
- Paul Graham
Every feature has some maintenance cost, and having fewer features lets us focus on the ones we care about and make sure they work very well.
- David Karp (Tumblr)
@ozh
ozh / phpdoc.php
Last active August 29, 2015 14:00
PHPdoc block formatting
<?php
/**
* One line description then an empty line
*
* Optional additional description, multiline if needed, with
* code examples, links, anything
*
* Can be separated in multiple paragraphs, as long as there's
* a blank line before the first @tag
@ozh
ozh / change.md
Last active August 29, 2015 14:00
SVN to Git migration (no branch, no tag)

Import

In an empty dir:

git svn clone http://svn.planetozh.com/whatever

If it's from the WP.org SVN repo:

<?php
// Front page - just tweets, no reply
?>
<?php get_header(); ?>
<?php
// WP_Query arguments
/**/