This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Plugin Name: Jeffro's Site Favicon | |
*/ | |
/** | |
* Hook favicon link into document head | |
*/ | |
function jeffro_site_favicon() { | |
?> | |
<!– HTML Code goes here –> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: Site Plugin - Control Automatic Updates | |
* Description: Site Plugin to add filters to control automatic updates | |
*/ | |
/** | |
* To disable all automatic updates, use this filter | |
*/ | |
//add_filter( 'auto_updater_disabled', '__return_true', 1 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ln -s /usr/lib/i386-linux-gnu/libturbojpeg.so.0 /usr/lib/i386-linux-gnu/libturbojpeg.so | |
via: | |
http://www.webupd8.org/2013/10/fix-bumblebee-libturbojpegso-issue-in.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add the Meta Box | |
function add_custom_meta_box() { | |
// Post | |
add_meta_box( | |
'cram_post_meta_box', // $id | |
'Additional information for the post', // $title | |
'add_custom_meta_box_callback', // $callback | |
'post', // $page | |
'normal', // $context | |
'high' // $priority |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Assuming 'no-sidebar' is the fallback/default template to use. | |
Also, replacing TEMPLATEPATH with get_template_part() | |
**/ | |
<div class="row"> | |
<?php if ( ! empty( $enable_single ) ) { ?> | |
<?php get_template_part( '/framework/includes/' . $enable_single ); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html | |
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> | |
<head profile="http://gmpg.org/xfn/11"> | |
<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" /> | |
<!-- Meta --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -f | |
sudo apt-get clean | |
sudo apt-get update | |
sudo apt-get install linux-headers-$(uname -r) | |
sudo dkms autoinstall -k $(uname -r) | |
sudo apt-get --purge --reinstall install nvidia-current | |
sudo modprobe -v -r nouveau | |
sudo restart bumblebeed | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Display search form. | |
* | |
* This function is primarily used by themes that want to hardcode the search | |
* form into the sidebar and also by the search widget in WordPress. | |
* | |
* Will first attempt to locate the searchform.php file in either the child or | |
* the parent, then load it. If it doesn't exist, then the default search form | |
* will be displayed. The default search form is HTML, which will be displayed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// If the decoded json data has content, prepare the data | |
// to be output. | |
if ( 'issues' == $context ) { | |
// $reportdate is used as a table column header | |
$reportdate = ( 'open' == $status ? 'Reported' : 'Closed' ); | |
// $reportobject is used to return the appropriate timestamp | |
$reportobject = ( 'open' == $status ? 'created_at' : 'closed_at' ); | |
} else if ( 'commits' == $context ) { | |
// $reportdate is used as a table column header |
NewerOlder