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 | |
CONFIGFILE=~/Homestead/Homestead.yaml | |
HOSTSFILE=/etc/hosts | |
VAGRANTID=1fbc8f8 | |
if ! [ $(id -u) = 0 ]; then | |
echo "Please run script with sudo to allow for hosts file changes." >&2 | |
exit 1 | |
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
wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--domains mydomain.com \ | |
http://www.mydomain.com |
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
# ************************************ | |
# Vhost template | |
# ************************************ | |
<VirtualHost *:80> | |
ServerName %template% | |
## Vhost docroot | |
DocumentRoot "/var/www/%template%/app/html" |
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
sed -i '.bak' 's/"/`/g' dump.sql |
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 | |
add_filter( 'wpseo_metabox_prio', function() { | |
return 'low'; | |
}); | |
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
#Explicit mappings match any token sequence on the LHS of "=>" | |
#and replace with all alternatives on the RHS. These types of mappings | |
#ignore the expand parameter in the schema. | |
#Examples: | |
i-pod, i pod => ipod, | |
sea biscuit, sea biscit => seabiscuit | |
#Equivalent synonyms may be separated with commas and give | |
#no explicit mapping. In this case the mapping behavior will |
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
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) */ | |
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, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, |
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 | |
/* | |
Plugin Name: Update thumbnails | |
Plugin URI: http://pmg.co | |
Description: Takes a url from a custom field and turns it into a thumbnail ID | |
Version: .01 | |
Author: Christopher Davis | |
Author URI: http://pmg.co/people/chris | |
*/ |
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
--- /Users/superinteractive/Downloads/user-avatar/user-avatar.php 2012-07-17 17:46:44.000000000 +0200 | |
+++ ./www/app/www/content/plugins/user-avatar/user-avatar.php 2012-09-12 12:23:34.000000000 +0200 | |
@@ -591,9 +591,10 @@ | |
if( $avatar_img = user_avatar_avatar_exists( $item_id ) ): | |
- $avatar_src = get_site_url()."/wp-content/uploads/avatars/".$item_id."/".$avatar_img; | |
+ $upload_dir = wp_upload_dir(); | |
+ $avatar_src = $upload_dir['baseurl']."/avatars/".$item_id."/".$avatar_img; | |
if(function_exists('is_subdomain_install') && !is_subdomain_install()) |
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 include_once("${_SERVER['DOCUMENT_ROOT']}/wp-config.php"); ?> |