This file contains hidden or 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
//* Redirect WordPress Logout to Home Page | |
add_action('wp_logout',create_function('','wp_redirect(home_url());exit();')); |
This file contains hidden or 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
//* Customize search form input box text | |
add_filter( 'genesis_search_text', 'sp_search_text' ); | |
function sp_search_text( $text ) { | |
return esc_attr( 'YourTextHere' ); | |
} |
This file contains hidden or 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
wget https://downloads.plex.tv/plex-media-server/0.9.12.4.1192-9a47d21/plexmediaserver_0.9.12.4.1192-9a47d21_amd64.deb |
This file contains hidden or 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 dpkg -i plexmediaserver_0.9.12.4.1192-9a47d21_amd64.deb |
This file contains hidden or 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
rm plexmediaserver_0.9.12.4.1192-9a47d21_amd64.deb |
This file contains hidden or 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
delay 0.5 -- time to release modifier keys if for example the script is run with command-R | |
tell application "System Events" | |
set frontmost of process "Live" to true | |
keystroke "q" using command down | |
delay 0.5 | |
tell application "System Events" to keystroke (ASCII character 28) --left arrow | |
delay 0.5 | |
tell application "System Events" to keystroke (ASCII character 28) --left arrow | |
delay 0.5 | |
keystroke return |
This file contains hidden or 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 | |
$country_code = $_SERVER ["HTTP_CF_IPCOUNTRY"]; | |
if ($country_code=="US") { | |
$link = 'http://us.domain.com'; | |
} | |
else if ($country_code=="GB") { | |
$link = 'http://uk.domain.com'; | |
} |
This file contains hidden or 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
else { | |
$link = 'http://domain.com'; | |
} |
This file contains hidden or 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 | |
/** | |
* Product attributes | |
* | |
* Used by list_attributes() in the products class | |
* | |
* @author WooThemes | |
* @package WooCommerce/Templates | |
* @version 2.1.3 | |
*/ |
This file contains hidden or 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
<pre> | |
<?php | |
var_dump( $attributes ); | |
?> | |
</pre> |
OlderNewer