Skip to content

Instantly share code, notes, and snippets.

View nickwynja's full-sized avatar

Nick Wynja nickwynja

View GitHub Profile
nick-air:Campfire Export nickwynja$ wget -e robots=off -x -m -L -E -p -k --no-check-certificate --load-cookies cookies.txt https://teamname.campfirenow.com/room/XXXXXX/transcript/2012/11/05
--2012-11-05 12:59:02-- https://teamname.campfirenow.com/room/XXXXXX/transcript/2012/11/05
Resolving teamname.campfirenow.com... 204.62.114.21
Connecting to teamname.campfirenow.com|204.62.114.21|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17145 (17K) [text/html]
Saving to: `teamname.campfirenow.com/room/XXXXXX/transcript/2012/11/05.html'
100%[==================================================================================================>] 17,145 --.-K/s in 0s
@nickwynja
nickwynja / gist:3961380
Created October 26, 2012 20:45
Alfred extension to Open URL in Chrome

I mostly use Safari but sometimes I want to open a URL in Chrome. Here's a quick Applescript that you can plug into Alfred to make this happen.

Open URL in Chrome

    on alfred_script(q)
    tell application "Google Chrome"
        reopen
    	activate

tell window 1

@nickwynja
nickwynja / gist:3953657
Created October 25, 2012 16:01
MAMP launch and quit
tell application "MAMP"
activate
delay 5
quit
end tell
@nickwynja
nickwynja / Application.applicationWillSwitchOut.applescript
Created October 10, 2012 21:49 — forked from benspaulding/Application.applicationWillSwitchOut.applescript
AppleScript that will save all documents with unsaved changes when BBEdit loses focus.
(*
File:
Application.applicationWillSwitchOut.scpt
Abstract:
This script will automatically save all on-disk text documents with unsaved
changes when BBEdit loses focus.
Version:
@nickwynja
nickwynja / gist:3835168
Created October 4, 2012 17:35
Siri Notes to nvALT

README

I started down a path to create an Applescript that would pull notes out of iCloud Notes and put them into a Dropbox folder as plain-text for use in nvALT or Notesy or what-have-you. I wanted to be able to tell Siri to "take a note" and have that go into nvALT.

But I'm stuck.

What I've Got

An Applescript that does these things:

body p, .sqs-layout .sqs-block.html-block p, .sqs-layout .sqs-block.markdown-block p {
font-family: "ff-meta-serif-web-pro";
}
@nickwynja
nickwynja / gist:3410329
Created August 21, 2012 01:26
Secondcrack Archive Case
<? if( $content['page-type'] != 'post' && $content['page-type'] != 'page' ){ ?>
<? if (isset($content['archives'])) { ?>
### Archive HTML Here ###
<? } ?>
<? } ?>
{u'date': u'2012-08-07T00:04:08Z', u'posts': [{u'extended': u'', u'hash': u'12d2126ad032e43f3cdecdc927d511b9', u'description': u'Why does this simple php script leak memory? - Stack Overflow', u'tags': u'hm', u'href': u'http://stackoverflow.com/questions/1145775/why-does-this-simple-php-script-leak-memory', u'meta': u'b334d64c4df7cadb5503f7ff1bc13be4', u'time': u'2012-08-07T00:04:08Z', u'shared': u'yes', u'toread': u'no'}], u'user': u'nickwynja'}
@nickwynja
nickwynja / gist:3064300
Created July 7, 2012 03:25
Brett Terpstra's Markdown Tweet Syntax
f.write(status.text + '\n\n')
f.write(theTime.strftime('[%B %d, %Y at %I:%M%p](http://twitter.com/'+status.author.screen_name+'/status/'+str(status.id)+')\n\n'))
f.write('--- \n\n')

Perspectives

Perspectives let you filter out all the crap that's not relevant. The "Perspectives" menu bar is the main place to go. You can build your own using the View Bar (View > Show View Bar or shift-cmd-V), then Perspectives > Save Window As. There are some good tutorials to figure out Perspectives. I started with David Sparks's MPU screencasts

Active Projects

  • Project-based perspective
  • Shows only projects that have "available" tasks
  • Hides projects that a future-dated, repeating, etc