WordPress: Disable XML-RPC Pingbacks

The following code snippet will disable pingbacks while allowing things like Jetpack and WordPress mobile apps to function normally.
Add the code to your theme’s functions.php file:
add_filter( 'xmlrpc_methods', 'csm_remove_xmlrpc_pingback' );

function csm_remove_xmlrpc_pingback( $methods ) {
   unset( $methods['pingback.ping'] );
   return $methods;

Ubuntu: How to Extract or Compress tar files

tar extract/compress
tar -xzfv file.tar.gz

jQuery: Get element with the maximum height from a set of elements

Change .myelements to the elements you are searching for.
var eMaxHeight = -1;// this variable holds the max height;
$('.myelements').each(function() {
    eMaxHeight = eMaxHeight > $(this).height() ? eMaxHeight : $(this).height();

// do something with it... like log the maximum height to the console

WordPress: Enable / Allow / Add shortcodes in the widgets area

Enabling shortcodes in sidebars or wigets area is quite simple.
Just add the following filter to your theme's functions.php
add_filter('widget_text', 'do_shortcode');

WordPress: Get Permalink Shortcode

In Wordpress Editor usage:

[get_link id="66"]

Where 66 is the post or page ID.

Add the following code to your theme's functions.php

// get_permalink shortcode
function csm_get_permalink( $atts) {

	extract( shortcode_atts(
			'id' => '',
		), $atts )
	return get_permalink( $id );
add_shortcode( 'get_link', 'csm_get_permalink' );