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
Bundler 1.3.1 | |
Ruby 1.9.3 (2013-02-22 patchlevel 392) [x86_64-darwin12.2.1] | |
Rubygems 2.0.2 | |
GEM_HOME | |
Bundler settings | |
path | |
Set for your local app (/Users/sam/Sites/sample/.bundle/config): "./vendor/bundle" | |
disable_shared_gems | |
Set for your local app (/Users/sam/Sites/sample/.bundle/config): "1" |
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
#!/bin/sh | |
GIT_WORK_TREE=/path/to/webroot/of/mywebsite git checkout -f |
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 | |
function get_excerpt($count, $post_id){ | |
$permalink = get_permalink($post_id); | |
$excerpt = get_post($post_id); | |
$excerpt = $excerpt->post_content; | |
$excerpt = strip_tags($excerpt); | |
$excerpt = substr($excerpt, 0, $count); | |
$excerpt = substr($excerpt, 0, strripos($excerpt, " ")); | |
$excerpt = $excerpt; | |
// Want a read more link and ellipsis, remove the line above this and replace it with the one below. |
NewerOlder