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
.g-recaptcha { | |
transform:scale(0.74); | |
-webkit-transform:scale(0.74); | |
transform-origin:0 0; | |
-webkit-transform-origin:0 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
Start: | |
root@mypod:~# sudo /etc/init.d/mysql start | |
Stop: | |
root@mypod:~# sudo /etc/init.d/mysql stop | |
Restart: | |
root@mypod:~# sudo /etc/init.d/mysql restart |
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
cd install-directory/ | |
wget --no-check-certificate http://www.wordpress.org/latest.tar.gz | |
tar xfz latest.tar.gz | |
mv wordpress/* ./ | |
rmdir ./wordpress/ | |
rm -f latest.tar.gz |
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
/* | |
http://www.reddit.com/r/Wordpress/comments/2moqec/great_use_case_for_css_not_selector_when/ | |
So I'm working on a client site just now and I was trying to think of the age old problem of how to do the page layout | |
(content | sidebar) without applying that same layout to the homepage. If your home page is set to a static page, you | |
can't use body.page{} because the home page is still technically a page. | |
You could overwrite all the styles for body.page.home{} but then you're repeating yourself. Then it hit me, use the | |
CSS :not pseudo selector! |
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
/* START Make the cart table responsive */ | |
/* http://css-tricks.com/responsive-data-tables/ */ | |
/* http://cyberchimps.com/forum-topic/woocommerce-cart-page-still-doesnt-fit-on-mobile-2/page/2/ */ | |
/* Force table to not be like tables anymore */ | |
.woocommerce-page table.shop_table, | |
.woocommerce-page table.shop_table thead, | |
.woocommerce-page table.shop_table tbody, | |
.woocommerce-page table.shop_table th, | |
.woocommerce-page table.shop_table td, | |
.woocommerce-page table.shop_table tr { |
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
// Enable PHP in widgets | |
add_filter('widget_text','execute_php',100); | |
function execute_php($html){ | |
if(strpos($html,"<"."?php")!==false){ | |
ob_start(); | |
eval("?".">".$html); | |
$html=ob_get_contents(); | |
ob_end_clean(); | |
} | |
return $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
// Enable shortcodes in widgets | |
add_filter('widget_text', 'do_shortcode'); |
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
wget --mirror --page-requisites --continue --convert-links --user-agent="" --execute robots=off --wait 1 URL |
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 | |
################################################################################ | |
// Custom WordPress Local Config | |
// Use only for Development | |
// https://gist.github.com/bhubbard/8428583 | |
################################################################################ | |
/* Database Connection Info */ | |
define('DB_NAME', ''); | |
define('DB_USER', ''); |
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
For more details, see http://code.garyjones.co.uk/install-wordpress-ssh/ | |
wget http://wordpress.org/latest.tar.gz | |
tar zxf latest.tar.gz | |
cd wordpress | |
cp -rpf * ../ | |
cd ../ | |
rm -rf wordpress/ | |
rm -f latest.tar.gz |