Skip to content

Instantly share code, notes, and snippets.

function my_remove_wp_seo_meta_box() {
remove_meta_box('wpseo_meta', YOUR_POST_TYPE_NAME_HERE, 'normal');
}
add_action('add_meta_boxes', 'my_remove_wp_seo_meta_box', 100);
@jessor
jessor / functions.php
Last active February 24, 2016 13:44
Group by day for List view of The Events Calendar
<?php
/*
* Modification of tribe_events_list_the_date_headers() for date grouping
* call this instead in tribe-events/list/loop.php
*
* @source the-events-calendar/src/functions/template-tags/loop.php
*/
function conact_list_the_date_headers() {
$show_headers = apply_filters( 'tribe_events_list_show_date_headers', true );
@jessor
jessor / theme.js
Created May 28, 2011 16:58
Track Wordpress Comments as Piwik Goals with jQuery
jQuery.noConflict();
jQuery(document).ready(function($) {
// ...
$('#commentform').submit(function() {
piwikTracker.trackGoal(1); // logs a conversion for goal 1
});
// ...
});
@jessor
jessor / linux live screencasting with justin.tv
Created March 5, 2011 04:21
linux live screencasting to justin.tv
# 1. Get an account on http://www.justin.tv/
# 2. Copy streaming key from: http://www.justin.tv/broadcast/adv_other
# 2. Install VLC: http://www.videolan.org/vlc/
# 3. Get Win/Mac/Lin Stream Client: \
# http://apiwiki.justin.tv/mediawiki/index.php/Linux_Broadcasting_API
# 4. Adjust the vlc parameters to your liking and run VLC like this
#!/bin/bash
cvlc screen:// \
--screen-width 1576 \
@jessor
jessor / github irc service hook optimization
Created January 30, 2011 23:54
this is how you can omit having join/parts of github's irc bot in your channel
1. Set your channel invite only but allow messages from outside:
/mode #yourchannel +i-n
2. Set an inite exception for any user whose ident is longer than two chars, this
/mode #yourchannel +I *!??*@*
3. In the repository administration, give the irc bot a nick like 'G'
@jessor
jessor / .irbrc
Created December 23, 2010 13:20
spiced up irb output, needs awesome_print
require "rubygems"
require "ap"
IRB::Irb.class_eval do
def output_value
ap @context.last_value,
:multiline => false,
:plain => false,
:indent => 2,
:color => {