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
Put this before doctype for force IE to remove compatibility button (in addition to <meta http-equiv="X-UA-Compatible" content="IE=edge">): | |
<!--[if IE]><![endif]--> | |
Live reload script for localhost (handy when using iframes): | |
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script> | |
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
ipconfig getifaddr en0 | |
OUTPUT=$(ipconfig getifaddr en0); echo ${OUTPUT} |
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 -m -nH ftp://user:pass@serverurl//wp-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
Instead of using .* | |
try .+? |
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 to your functions.php | |
// for development only | |
function livereload() { | |
touch( get_template_directory() . '/livereload.php'); | |
} | |
add_action( 'save_post', 'livereload' ); |
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
// capture tribe_show_month() from The Events Calendar Plugin | |
ob_start(); | |
query_posts('post_type=tribe_events'); | |
tribe_show_month(); | |
$context['tribe_dump'] = ob_get_contents(); | |
ob_end_clean(); |
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.youtube.com/embed/<?=$row[0]?>?rel=0&autohide=1&showinfo=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
git config --global url."https://".insteadOf git:// | |
# http://stackoverflow.com/questions/16298986/unable-to-connect-to-github-com-for-cloning |
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
XP with IE6: http://aka.ms/vagrant-xp-ie6 | |
XP with IE8: http://aka.ms/vagrant-xp-ie8 | |
Vista with IE7: http://aka.ms/vagrant-vista-ie7 | |
Windows 7 with IE8: http://aka.ms/vagrant-win7-ie8 | |
Windows 7 with IE9: http://aka.ms/vagrant-win7-ie9 | |
Windows 7 with IE10: http://aka.ms/vagrant-win7-ie10 | |
Windows 7 with IE11: http://aka.ms/vagrant-win7-ie11 | |
Windows 8 with IE10: http://aka.ms/vagrant-win8-ie10 | |
Windows 8.1 with IE11: http://aka.ms/vagrant-win81-ie11 |
OlderNewer