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
$(".node-type-article .field-body a[href^='http://']"):not($(this).attr("target")).attr("target","_blank"); |
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
[github@anakin public_html]$ deploy/deploy.sh | |
HEAD is now at 62f006e Merge branch 'master' of github.com:EncoreMultimedia/center-for-faith-and-work | |
error: The following untracked working tree files would be overwritten by merge: | |
modules/statistics/statistics.js | |
modules/statistics/statistics.php | |
sites/all/modules/context/plugins/context_condition_context_all.inc | |
sites/all/modules/context/plugins/context_condition_query_string.inc | |
sites/all/modules/link/link-rtl.css | |
sites/all/modules/picture/picture.weblinc.css | |
sites/all/modules/picture/picture.weblinc.js |
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
top - 14:45:56 up 46 days, 16:16, 1 user, load average: 0.00, 0.03, 0.00 | |
Tasks: 104 total, 1 running, 103 sleeping, 0 stopped, 0 zombie | |
Cpu(s): 0.2%us, 0.1%sy, 0.0%ni, 99.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st | |
Mem: 4194304k total, 3962692k used, 231612k free, 204252k buffers | |
Swap: 2097140k total, 52k used, 2097088k free, 1892320k cached |
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 | |
$vocab = 'tag'; | |
$output = array(); | |
foreach ($data->field_field_tags as $term) { | |
$output[] = "<a href='/" . $vocab . "/" . strtolower(str_replace(" ","-",$term['rendered']['#markup'])) . "'>" . $term['rendered']['#markup'] . "</a>"; | |
} | |
echo implode(", ", $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
chadsten@chadsten-ubuntu-desktop [/var/www/kilgorecollege] | |
$ grunt build | |
grunt-cli: The grunt command line interface. (v0.1.9) | |
Fatal error: Unable to find local grunt. | |
If you're seeing this message, either a Gruntfile wasn't found or grunt | |
hasn't been installed locally to your project. For more information about | |
installing and configuring grunt, please see the Getting Started guide: |
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
<p><img src="/Football/LaneJohnson2008web_sm.jpg" alt="lane johnson nfl draft 2013 kilgore college" width="115" height="139" hspace="12" vspace="8" align="left" />Former Kilgore College football player <a href="http://www.nfl.com/news/story/0ap1000000163381/article/lane-johnson-drafted-by-philadelphia-eagles-at-no-4">Lane Johnson</a>, was selected fourth overall by the Philadelphia Eagles in the 2013 NFL Draft. Johnson, who played quarterback and tight end for the Rangers during the 2008 season, played at the University of Oklahoma from 2009-12 where he was a defensive end for the Sooners in 2010 after redshirting in 2009. He was then switched to offensive tackle and started 12 of 13 games for Oklahoma at right tackle. Johnson, who stands 6-foot-6 and weighed 202 pounds when he played at KC but now weighs 303, was the third tackle drafted among the first four picks April 25 in New York. The 22 year-old skyrocketed on the draft boards this offseason after a strong Senior Bowl and an outstandi |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
# Unit test for paths imported by feeds | |
# Not amazing, but will gather 404 info | |
main(); | |
function main() { | |
$paths = parse_csv('all-paths.csv',','); | |
$compare_path = compare_paths($paths); |
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
chadsten@chadsten-ubuntu-desktop [~] | |
$ vader | |
Last login: Fri Dec 13 03:43:04 2013 from cpe-173-173-120-203.satx.res.rr.com | |
[chadsten@vader ~]$ punch | |
-bash: punch: command not found | |
[chadsten@vader ~]$ sudo punch | |
[sudo] password for chadsten: | |
sudo: punch: command not found | |
[chadsten@vader ~]$ |
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
function varnish_expire_cache($paths) { | |
$host = _varnish_get_host(); | |
$base = base_path(); | |
$purge = implode('$|^' . $base, $paths); | |
$purge = '^'. $base . $purge .'$'; | |
varnish_purge($host, $purge); | |
} |
OlderNewer