Skip to content

Instantly share code, notes, and snippets.

View seyDoggy's full-sized avatar

Adam Merrifield seyDoggy

View GitHub Profile
@seyDoggy
seyDoggy / Finder File Compression AppleScript
Created August 17, 2011 15:40
Drives me nuts that Finder doesn't have a hotkey for file compression. You can use this script triggered with Quicksilver/FastScripts/LaunchBar/Butler/Alfred...
-- source: http://hints.macworld.com/article.php?story=2011030403522197
-- from comment Authored by: regulus on Mar 04, '11 09:13:11AM
try
tell application "Finder"
set theSelection to the selection
set selectionCount to count of theSelection
if selectionCount is greater than 1 then
error "Please select only one Finder item before running this script."
else if selectionCount is less than 1 then
error "Please select one Finder item before running this script."
@seyDoggy
seyDoggy / checklist_site_launch.txt
Created September 23, 2011 18:40 — forked from tonious/checklist_site_launch.txt
New Site Checklist
Design Phase =================================================================
Client Management ------------------------------------------------------------
[ ] Have we received a design brief from the client?
[ ] Have we received sample content from the client?
[ ] Have we quoted the client?
[ ] Has the client signed off on the quote?
Infrastructure ---------------------------------------------------------------
@seyDoggy
seyDoggy / install-git-completion.sh
Created July 26, 2012 15:41 — forked from johngibb/install-git-completion.sh
Mac OS X - Install Git Completion
#!/bin/bash
# get Xcode git version
GIT_VERSION=`xcrun git --version | awk '{print $3}'`
URL="https://raw.github.com/git/git/v$GIT_VERSION/contrib/completion/git-completion.bash"
PROFILE="$HOME/.bash_profile"
@seyDoggy
seyDoggy / remove_CLI_tools.sh
Created July 26, 2012 16:19
This is a tool to remove all the copies of CommandLine tools that it installs.
#!/bin/bash
RECEIPT_FILE=/var/db/receipts/com.apple.pkg.DeveloperToolsCLI.bom
RECEIPT_PLIST=/var/db/receipts/com.apple.pkg.DeveloperToolsCLI.plist
if [ ! -f "$RECEIPT_FILE" ]
then
echo "Command Line Tools not installed."
exit 1
fi
@seyDoggy
seyDoggy / sdFATLinks.js
Created July 28, 2012 15:00
jQuery for adding Font Awesome icons to toolbar 1
@seyDoggy
seyDoggy / .gitignore.txt
Created August 10, 2012 14:47
.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@seyDoggy
seyDoggy / MIT-LICENSE.txt
Created September 7, 2012 10:17 — forked from jgarber/MIT-LICENSE.txt
Responsive video
Copyright (c) 2011 ZURB, http://www.zurb.com/
@seyDoggy
seyDoggy / frehmwerk-blog-filesharing-fontawesome.js
Created October 10, 2012 13:11
Frehmwerk rw-blog-n and rw-filesharing-n FontAwesome additions
/* Pages Functions
================================================== */
var div_blog_entry = jq.add('div.blog-entry'),
div_plugin_sidebar = jq.add('div#plugin_sidebar'),
group_plugin_sidebar = div_plugin_sidebar.find('div#blog-categories, div#blog-archives, ul.blog-tag-cloud, div#blog-rss-feeds'),
div_filesharing_item = jq.add('div.filesharing-item');
var pages_fn = (function () {
// when blog page (main content)
@seyDoggy
seyDoggy / frehwerk-blog-fontawesome-styles.css
Created October 10, 2012 13:21
rw-blog-n Sidebar FontAwesome styles
div.narrow div#plugin_sidebar div#blog-categories div.before,
div.narrow div#plugin_sidebar div#blog-archives div.before,
div.narrow div#plugin_sidebar ul.blog-tag-cloud div.before,
div.narrow div#plugin_sidebar div#blog-rss-feeds div.before {
background-color:%colour_narrow_background - 0.01%;
border-color:%colour_narrow_background - 0.1%;
color:%colour_narrow_text+0.2%
}
@seyDoggy
seyDoggy / sdNav.tb3-hasChildren.js
Created October 10, 2012 20:54
Add fontawesome icon to indicate vertical nav has a child.
//Add 'hasChildren' class to menu pills
sdNav.tb3.find(' > ul li > ul').parent().addClass('hasChildren');
sdNav.tb3.find('li.hasChildren > a').append(' &nbsp; <i class="icon-caret-down"/>');