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 | |
/** | |
* Function is responsible for constructing a comprehensive | |
* page title based off of the currently viewed page. | |
* | |
* This function should be saved to your functions.php file | |
* This function relies on another gist: | |
* https://gist.github.com/1168688 | |
* |
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
/** | |
* Function is responsible for showing the filename when a new | |
* file is chosen | |
* | |
*/ | |
(function($) { // block scope | |
$.fn.bgFileInput = function(){ | |
return $(this).each(function(){ | |
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 | |
add_filter('the_content', 'apl_the_content', 20, 1); | |
/** | |
* | |
* @param unknown_type $content | |
* @return string|unknown | |
*/ | |
function apl_the_content( $content ) | |
{ |
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
# I've moved from debian to CentOs for various reasons. Mostly the support for hosting products such as cpanel. | |
# I setup new servers what feels like on a daily basis. So this is my install procedures | |
# vi is an editor. | |
vi /etc/yum.repos.d/remi-enterprise.repo | |
# make sure to hit "i" key prior to pasting. | |
# when done with pasting hit 'esc' and type ':wq' | |
###### paste in these lines ##### |
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 | |
/** | |
* Duplicate this file as many times as you would like, just be sure to change the | |
* Empty_Widget class name to a custom name of your choice. Have fun! redrokk.com | |
* | |
* Plugin Name: Empty Widget | |
* Description: Single Widget Class handles all of the widget responsibility, all that you need to do is create the html. Just use Find/Replace on the Contact_RedRokk_Widget keyword to rebrand this class for your needs. | |
* Author: RedRokk Interactive Media | |
* Version: 1.0.0 | |
* Author URI: http://www.redrokk.com |
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 | |
/** | |
* @Author Anonymous | |
* @link http://www.redrokk.com | |
* @Package Wordpress | |
* @SubPackage Relationships | |
* | |
* @version 2.0 | |
*/ |
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 | |
/** | |
* | |
* @param unknown_type $file | |
*/ | |
function terack_cache( $file, $refresh = false ) { | |
$hash = md5($file); | |
$cachedir = dirname(dirname(__file__))."/cache/"; |
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
# | |
# @author Jonathon byrd | |
# | |
############################################################ | |
# first things first, set your iptables for a web server. If you jack these | |
# up you don't want to have to re-install your os after doing much more. | |
# @see http://www.thegeekstuff.com/2011/06/iptables-rules-examples/ | |
# and | |
# @see https://help.ubuntu.com/community/IptablesHowTo |
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 | |
/** | |
* @Author RedRokk Interactive Media | |
* @link http://www.redrokk.com | |
* @Package RedRokk | |
* @SubPackage ShareThis | |
* @copyright Proprietary Software, Copyright RedRokk Incorporated. All Rights Reserved | |
* @Version 0.0.1 | |
* | |
* RedRokk ShareThis PageController |