I hereby claim:
- I am mahodder on github.
- I am markhodder (https://keybase.io/markhodder) on keybase.
- I have a public key whose fingerprint is 28A8 B795 8562 2A4C 65A1 A040 C231 2198 B50E E378
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
remove_action('genesis_before_footer', 'themedy_homepage', 1); | |
add_action('genesis_before_footer', 'custom_themedy_homepage', 1); | |
function custom_themedy_homepage() { | |
?> | |
<?php if ( is_active_sidebar('section-one-col-1') || is_active_sidebar('section-one-col-2') || is_active_sidebar('section-one-col-3') || is_active_sidebar('section-one-row') ) { ?> | |
<div id="section-1" class="section"> | |
<div class="wrap"> | |
<?php dynamic_sidebar('section-one-row'); ?> |
global $thesis; | |
remove_filter('thesis_site_title', array($thesis->skin, 'logo')); | |
function my_logo($title) { | |
?> | |
<a href="http://mysite.com"> | |
<img width="200" height="150" title="click to return home" alt="Grind T2 header image" src="http://mysite.com/header.jpg" id="thesis_header_image"> | |
</a> | |
<? | |
} |
sudo defaults write /System/Library/LaunchDaemons/com.apple.coreservices.appleevents ExitTimeOut -int 1 | |
sudo defaults write /System/Library/LaunchDaemons/com.apple.securityd ExitTimeOut -int 1 | |
sudo defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ExitTimeOut -int 1 | |
sudo defaults write /System/Library/LaunchDaemons/com.apple.diskarbitrationd ExitTimeOut -int 1 | |
sudo defaults write /System/Library/LaunchAgents/com.apple.coreservices.appleid.authentication ExitTimeOut -int 1 |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
rewrite wp-content/thesis/skins/(.*)/css.css /wp-admin/admin-post.php?action=thesis_do_css; | |
} |
add_action( 'pre_get_posts', 'custom_reverse_post_order' ); | |
function custom_reverse_post_order( $query ) { | |
if ( is_admin() ) | |
return; | |
if ( $query->is_main_query() && is_archive() && ! is_post_type_archive() && ($query->query_vars['category_name'] == 'category-name' || $query->query_vars['category_name'] == 'category-name') ) { | |
$query->set( 'orderby', 'date' ); | |
$query->set( 'order', 'ASC' ); | |
} | |
} |
declare -a names | |
declare -a parts | |
declare i=0 | |
names=("$@") | |
name="$1" | |
while x=$(dirname "$name"); [ "$x" != "/" ] | |
do | |
parts[$i]="$x" |