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
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
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
| <!-- Open Graph tags for your home page (index). --> | |
| <meta property="og:site_name" content="{Title}" /> | |
| <meta property="fb:app_id" content="FACEBOOK_APPID"/> | |
| <meta property="fb:admins" content="FACEBOOK_USERID" /> | |
| <meta property="og:description" content="{MetaDescription}" /> | |
| <meta property="og:locale" content="en_US" /> | |
| {block:IndexPage} | |
| <meta property="og:image" content="{PortraitURL-128}" /> | |
| <meta property="og:title" content="{Title}" /> |
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
| /* | |
| * Updated to use the function-based method described in http://www.phpied.com/social-button-bffs/ | |
| * Better handling of scripts without supplied ids. | |
| * | |
| * N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function. | |
| */ | |
| (function(doc, script) { | |
| var js, | |
| fjs = doc.getElementsByTagName(script)[0], |
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
| data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAHCAIAAABV+fA3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADJJREFUeNpi+I8KFi1aBGczMWCAxYsXQxhY5ODS2OUg0jjlYmNjmXBJYDcTIgEEAAEGAGysItsbwoS/AAAAAElFTkSuQmCC | |
| To use as an arrow after a link: | |
| a:after { content: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAHCAIAAABV+fA3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADJJREFUeNpi+I8KFi1aBGczMWCAxYsXQxhY5ODS2OUg0jjlYmNjmXBJYDcTIgEEAAEGAGysItsbwoS/AAAAAElFTkSuQmCC'); } | |
| About data URIs: | |
| http://en.wikipedia.org/wiki/Data_URI_scheme | |
| Awesome image to data URI converter: | |
| http://www.abluestar.com/utilities/encode_base64/ |
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
| <target name="wordpress.upgrade"> | |
| <property name="tmp" value="/tmp" /> | |
| <property name="src" value="${tmp}/wordpress" /> | |
| <delete dir="${src}" includeemptydirs="true" failonerror="true" /> | |
| <exec dir="${tmp}" command="curl -s http://wordpress.org/latest.tar.gz | tar -xz" /> | |
| <delete dir="wp-admin" includeemptydirs="true" failonerror="true" /> | |
| <delete dir="wp-includes" includeemptydirs="true" failonerror="true" /> | |
| <move file="wp-config.php" tofile="wp-config.php.bak" overwrite="true"/> |
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
| #!/bin/sh | |
| # .git/hooks/post-checkout | |
| # chmod +x .git/hooks/post-checkout | |
| if [ $(git symbolic-ref HEAD | cut -d '/' -f 3) == 'master' ]; then | |
| lines[0]="Master, Master, where's the dreams that I've been after?" | |
| lines[1]="Master, Master, you promised only lies" | |
| lines[2]="Laughter, laughter, all I hear or see is laughter" | |
| lines[3]="Laughter, laughter, laughing at my cries" | |
| echo " ${lines[$((RANDOM%${#lines[*]}))]}"; |