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
/*global module:false*/ | |
module.exports = function (grunt) { | |
"use strict"; | |
var jsMain = [ | |
'assets/js/adc_casestudies.js', | |
'assets/js/adc_block.js', | |
'assets/js/adc_blocks.js', | |
'assets/js/adc_location.js', | |
'assets/js/adc_jobs.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
# Depends on AWK, SED, and OSX's open command. | |
function github() { | |
local github_url | |
if ! git remote -v >/dev/null; then | |
return 1 | |
fi | |
# get remotes for fetch | |
github_url="`git remote -v | grep github\.com | grep \(fetch\)$`" |
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
get_github_ssh_key() { | |
if [ -z "$1" ]; then | |
echo "Missing username" | |
echo | |
echo "USAGE: get_github_ssh_key GITHUB_USERNAME" | |
else | |
curl https://github.com/$1.keys | |
echo | |
fi | |
} |
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/bash | |
# you should already have $APACHE_CONF, change these if your files aren't in those paths | |
export APACHE_HTTPD_CONF="$APACHE_CONF/httpd.conf" | |
export APACHE_HTTPD_VHOSTS="$APACHE_CONF/extra/httpd-vhosts.conf" | |
# these require awk and sed to get the PHP version and variants of it | |
export PHPVER="`php -v | sed 1q | awk '{print \$2}'`" | |
export PHPMINORVER="`echo $PHPVER | awk -F=\".\" '{split(\$0,a,\".\"); print a[1]\"\.\"a[2]}'`" | |
export PHPMINORVERNUM="`echo $PHPVER | awk -F=\".\" '{split(\$0,a,\".\"); print a[1]a[2]}'`" |
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/bash | |
cd /Users/dotrakoun/Sites | |
# fix owner | |
echo "Fixing ownership of /Users/dotrakoun/Sites" | |
sudo chown -R dotrakoun:www /Users/dotrakoun/Sites | |
# fix file perms | |
echo "Fixing file permissions of /Users/dotrakoun/Sites" |
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 -v | sed 1q | awk '{ print $2 }' |
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
require_recipe "apt" | |
require_recipe "openssl" | |
require_recipe "git" | |
require_recipe "mysql::server" | |
require_recipe "php" | |
require_recipe "php::module_apc" | |
require_recipe "php::module_curl" | |
require_recipe "php::module_gd" |
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
var content = $('#content'), pagination = content.find('.wp-pagenavi'); | |
pagination.find('a').click(function(e) { | |
e.preventDefault(); | |
var a = $(this), | |
lastEntry = content.find('div.post').last(); | |
$.ajax({ | |
url: a.attr('href'), | |
success: function(data) { | |
$(data).find('div.post').insertAfter(lastEntry); | |
pagination.find('span').removeClass('current').wrapInner('<em />'); |
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
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { | |
background: none repeat scroll 0% 0% transparent; | |
border: 0pt none; | |
margin: 0pt; | |
outline: 0pt none; | |
padding: 0pt; | |
} | |
body { | |
background-color: #FFFFFF; |
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
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td { | |
background: none repeat scroll 0% 0% transparent; | |
border: 0pt none; | |
margin: 0pt; | |
outline: 0pt none; | |
padding: 0pt; | |
} | |
body { | |
background: url("http://subtlepatterns.com/patterns/robots.png") repeat fixed 0pt 0pt transparent; |
NewerOlder