I hereby claim:
- I am mykebates on github.
- I am mykebates (https://keybase.io/mykebates) on keybase.
- I have a public key ASB_nkUainUuvKwCh-4bN7MUyMq3ztgHjga6oUuxNlt_Jwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <!-- IIS URL Rewrite, this can be placed in the web.config --> | |
| <!-- Handle Missing Media on Development Environment --> | |
| <rule name="Handle missing media" stopProcessing="true"> | |
| <match url="^media/(.*)" /> | |
| <conditions logicalGrouping="MatchAll"> | |
| <!-- Add Conditions, so local only --> | |
| <add input="{REMOTE_HOST}" pattern="localhost" /> | |
| <!-- Handle Files and Folders --> | |
| <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> |
| require 'formula' | |
| class Mpd < Formula | |
| homepage "http://www.musicpd.org/" | |
| stable do | |
| url "http://www.musicpd.org/download/mpd/0.19/mpd-0.19.4.tar.xz" | |
| sha1 "f0397d7e923cd11fef8dae238efe9ae9ff12120f" | |
| end |
| require 'formula' | |
| class Mpd < Formula | |
| homepage "http://www.musicpd.org/" | |
| stable do | |
| url "http://www.musicpd.org/download/mpd/0.19/mpd-0.19.4.tar.xz" | |
| sha1 "f0397d7e923cd11fef8dae238efe9ae9ff12120f" | |
| end |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| $ curl -sS https://getcomposer.org/installer | php | |
| $ (sudo) mv composer.phar /usr/local/bin/composer |
| If you can run the following command in terminal it will tell you who the manufacturer is: | |
| ioreg -lw0 | grep \"EDID\" | sed "/[^<]*</s///" | xxd -p -r | strings -6 | |
| Following is an interpretation of the string that is returned telling you who the manufacturer is. | |
| LPXXXX = LG | |
| LSNXXXX = Samsung |
| // Pass in a post id and optionally a thumbnail string name and receive the image path | |
| function getImgUrl($size, $id){ | |
| $src; | |
| if(!$id){ | |
| $id = $post->ID; | |
| } | |
| if($size){ | |
| $src = wp_get_attachment_image_src( get_post_thumbnail_id($id), array( 150,150 ), false, '' ); | |
| } | |
| else{ |
| function excerpt_char($text, $lim, $delim="…") | |
| { | |
| $len = strlen($text); | |
| if ($len <= $lim) return $text; | |
| // split at first word boundary after $lim chars | |
| preg_match('/(.{' . $lim . '}.*?)\b/', $text, $matches); | |
| $text = preg_replace("'(&[a-zA-Z0-9#]+)$'", '$1;', $matches[1]); | |
| $text .= $delim; |