Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View michaelfox's full-sized avatar
🦊

Michael Fox michaelfox

🦊
  • Kirschbaum Development Group
View GitHub Profile
@michaelfox
michaelfox / textmate_update_system_bundles.php
Created September 19, 2011 15:14
TextMate Update System Bundles (old)
#!/usr/bin/env php
<?php
$system_support_dir = '/Library/Application Support/TextMate';
$system_bundles_dir = $system_support_dir . "/Bundles";
$official_bundles = array(
"ActionScript" => "https://github.com/textmate/actionscript.tmbundle",
"Apache" => "https://github.com/textmate/apache.tmbundle",
"AppleScript" => "https://github.com/textmate/applescript.tmbundle",
@michaelfox
michaelfox / README.md
Created September 9, 2011 16:06
Notational Velocity (nvAlt) Custom Stylesheet and Markup HTML

Usage

Copy these files to your ~/Library/Application Support/Notational Velocity/ folder

@michaelfox
michaelfox / gleebox.conf.json
Created September 1, 2011 22:09
My GleeBox Settings for Google Chrome (http://thegleebox.com)
{
"searchEngine": "http://www.google.com/search?q=",
"commandEngine": "quix",
"quixUrl": "https://dl.dropbox.com/s/jpc1gu600xunbs5/quix.txt",
"searchBookmarks": true,
"scrollingSpeed": "500",
"outsideScrolling": false,
"shortcutKey": "71",
"upScrollingKey": "87",
"downScrollingKey": "83",
@michaelfox
michaelfox / quix.txt
Created June 20, 2011 20:57
Quix Commands
>
> Author: Michael Fox
> Website: http://www.michaelfox.name
>
> Quix: http://quixapp.com
>
@Quixearches Quick Searches
acronym javascript:q%20=%20""%20+%20(window.getSelection%20?%20window.getSelection()%20:%20document.getSelection%20?%20document.getSelection()%20:%20document.selection.createRange().text);%20if%20(!q)%20q%20=%20prompt("You%20didn't%20select%20any%20text.%20%20Enter%20a%20search%20phrase:",%20"");%20if%20(q!=null)%20location="http://www.acronymfinder.com/af-query.asp?Find=find&string=exact&Acronym="%20+%20escape(q);%20void%200 Acronym Search
@michaelfox
michaelfox / Plist_parser.php
Created March 26, 2011 19:30
A PHP Class for Parsing OS X Plist files
<?php
/**
* Plist Parser Class
*
* Usage:
* ======
* $plist = Plist::from_file("~/Music/iTunes/iTunes Music Library.xml");
* print_r($plist->as_array());
*/
@michaelfox
michaelfox / DOM Monster.js
Created March 5, 2011 15:54
A largely un-curated "dump" of JavaScript Bookmarklets
javascript:(function(){var%20script=document.createElement('script');script.src='http://mir.aculo.us/dom-monster/dommonster.js?'+Math.floor((+new Date)/(864e5));document.body.appendChild(script);})()
@michaelfox
michaelfox / textmate-project-file-folder-patterns.md
Created March 4, 2011 15:04
Various notes and Regex expressions for file and folder matching patterns within TextMate projects

Defaults

File Pattern:

!(/\.(?!htaccess)[^/]*|\.(tmproj|o|pyc)|/Icon\r|/svn-commit(\.[2-9])?\.tmp)$

Folder Pattern:

@michaelfox
michaelfox / Custom.css
Created January 4, 2011 21:15
Google Chrome Custom User Stylesheet
/**
*
* ___ __ _
* / __|__ _ _ __ _ __ / _(_)_ _ ___
* | (__/ _` | ' \| '_ \ _| | '_/ -_)
* \___\__,_|_|_|_| .__/_| |_|_| \___|
* |_|
**/
/* Remove "Entered the room" -- "left the room" type messages */
body.chat table.chat #chat tr.timestamp_message + tr.timestamp_message,
@michaelfox
michaelfox / chrome-keywords.sql
Created December 16, 2010 20:05
Google Chrome Keywords Export
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE "keywords" (id INTEGER PRIMARY KEY,short_name VARCHAR NOT NULL,keyword VARCHAR NOT NULL,favicon_url VARCHAR NOT NULL,url VARCHAR NOT NULL,show_in_default_list INTEGER,safe_for_autoreplace INTEGER,originating_url VARCHAR,date_created INTEGER DEFAULT 0,usage_count INTEGER DEFAULT 0,input_encodings VARCHAR,suggest_url VARCHAR,prepopulate_id INTEGER DEFAULT 0,autogenerate_keyword INTEGER DEFAULT 0,logo_id INTEGER DEFAULT 0,created_by_policy INTEGER DEFAULT 0,instant_url VARCHAR);
INSERT INTO "keywords" VALUES(2,'Google','g','http://www.google.com/favicon.ico','{google:baseURL}search?{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}sourceid=chrome&ie={inputEncoding}&q={searchTerms}',1,0,'',0,46,'UTF-8','{google:baseSuggestURL}search?client=chrome&hl={language}&q={searchTerms}',1,0,6247,0,'{google:baseURL}webhp?{google:RLZ}sourceid=chrome-instant&ie={inputEncoding}&ion=1{searchTerms}');
INSERT INTO "keywords" VALUES(5,'Quix','q','','j
@michaelfox
michaelfox / analytics-multiple-accounts-async.html
Created December 6, 2010 22:22
Google Analytics JavaScript Snippet for Multiple Accounts Using the Asynchronous Code
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-65432-1']);
_gaq.push(['_trackPageview']);
/**
* add a second GA Account
* @see http://code.google.com/apis/analytics/docs/gaJS/gaJSApi_gaq.html