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
//DOM ELEMENTS | |
clear(); | |
var scripts = []; | |
var styles = []; | |
console.groupCollapsed('CSS Links'); |
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 | |
# Favicon and Apple Touch Icon Generator | |
# | |
# This bash script takes an image as a parameter, and uses ImageMagick to convert it to several | |
# other formats used on modern websites. The following copies are generated: | |
# | |
# * apple-touch-icon-144x144-precomposed.png | |
# * apple-touch-icon-114x114-precomposed.png | |
# * apple-touch-icon-57x57-precomposed.png |
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
git ls-files -z --deleted | xargs -0 git rm |
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
jQuery(function($) { | |
$('form[data-async]').live('submit', function(event) { | |
var $form = $(this); | |
var $target = $($form.attr('data-target')); | |
$.ajax({ | |
type: $form.attr('method'), | |
url: $form.attr('action'), | |
data: $form.serialize(), |
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
cat ~/.ssh/id_rsa.pub | ssh user@machine "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys" |
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
# Copy SSH Keys to Remote Server (for password-less access) | |
# | |
# More information copying SSH Keys to remote servers can be found at, https://help.ubuntu.com/community/SSH/OpenSSH/Keys. | |
# Method One is to create a simple script. | |
# I typically create the script in my ~/.bin and symbolically it to my /usr/local/sbin. | |
# $ touch ~/.bin/copykeys.sh | |
# $ chmod +x ~/.bin/copykeys.sh | |
# $ nano ~/.bin/copykeys.sh | |
# $ sudo ln -s /home/yourusername/.bin/copykeys.sh /usr/local/sbin/copy-ssh-key |
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 | |
# View Website source with syntax highlighting via Pygmentize | |
echo "Viewing Source for $1" | |
read -p "USAGE: viewsource http://www.website.com/ (Press Enter To Continue)" | |
curl -s "$1" | pygmentize -f terminal256 -l html -O style=monokai | |
exit |
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
# Apache Configuration file | |
# www.lighthouselutherie.com/.htaccess | |
# Use UTF-8 encoding for anything served as `text/html` or `text/plain`. | |
AddDefaultCharset utf-8 | |
# Force UTF-8 for certain file formats. | |
<IfModule mod_mime.c> | |
AddCharset utf-8 .atom .css .js .json .rss .vtt .webapp .xml | |
</IfModule> |
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
@ini_set('display_errors',0); /* define('WP_DEBUG', false); */ | |
define('WP_DEBUG', true); // Turn debugging ON | |
define('WP_DEBUG_DISPLAY', false); // Turn forced display OFF | |
define('WP_DEBUG_LOG', true); |
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
// Add more options to the body class on each page (Previous the Ambrosite Plugin) | |
function fineideas_body_class($classes) { | |
// If you don't like the class prefixes I have chosen, you can change them here. | |
$post_name_prefix = 'postname-'; | |
$page_name_prefix = 'pagename-'; | |
$single_term_prefix = 'single-'; | |
$single_parent_prefix = 'parent-'; | |
$category_parent_prefix = 'parent-category-'; | |
$term_parent_prefix = 'parent-term-'; |
NewerOlder