Skip to content

Instantly share code, notes, and snippets.

@schacon
schacon / raseij.md
Created May 14, 2013 22:00
Andrew Raseij's PDF speech in 2005

Welcome to the second annual Personal Democracy Forum. It’s great to see so many familiar faces from last year’s forum, and to greet so many new folks who are here. It seems our blog-ads on Jeff Gannon’s website paid off.

We’re putting on our conference today in cooperation with the Continuing Education and Public Programs at the Graduate Center of the City University of New York. Thank you David Levine and your whole staff here at CUNY, you’ve been fantastic.

I also want to take a moment to thank the terrific and talented PDF staff for putting together a program interesting and provocative enough to get a room full of techies to put down their Berries and Treos for the better part of a day: Hart Hooton, Dawn Barber, Jen Vento, Isabel Walcott, and our executive editor, Micah Sifry. In particular, I’d like to single out Anthony Russomano and Elizabeth Caputo for their tireless efforts to make today a success

And a special thanks to our distinguished group of sponsors: Google, Burson-Marsteller, Echoditto, E

@schacon
schacon / gist:4550891
Created January 16, 2013 20:58
The keyboard shortcuts to know when you hook up your mac to present in keynote (for quicker lightning talks setup)
Mirror/unmirror displays: ⌘-F1 or ⌘-fn-1
Switch presenter display: x
{
"hands": [
{
"direction": [
0.187837,
0.097272,
-0.976745
],
"id": 3,
"palmNormal": [
@schacon
schacon / upload.rb
Created April 16, 2012 23:48
ruby script to upload a file to GitHub downloads section
#! /usr/bin/env ruby
#
# ruby upload.rb user pass user/repo file '(description)'
#
require 'json'
if ARGV.size < 4
puts "\nUSAGE: upload.rb [user] [pass] [user/repo] [filepath] ('description')"
exit
@schacon
schacon / get_token.sh
Created April 9, 2012 15:38
shell command to get a GitHub OAuth token
# sh get_token.sh user pass
curl -s -d '{"scopes":["repo"],"note":"admin script"}' -u "$1:$2" -XPOST https://api.github.com/authorizations | grep token
@schacon
schacon / slide_w_notes.txt
Created September 13, 2011 23:00
ShowOff slide with notes
!SLIDE bullets incremental transition=fade
.notes something something something something something something something something something something something something something something something dark side
# Second Slide #
* something
* something else
* a third thing
* a fourth thing
--enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid
@schacon
schacon / output.txt
Created August 20, 2011 09:00
Annotating pushed commits with the pusher
$ git log --notes=pusher
commit c5ba11b523db159b319f568931501237c5e53ed2
Author: Scott Chacon <schacon@gmail.com>
Date: Sat Aug 20 10:59:02 2011 +0200
test
Notes (pusher):
master :: User Name user@name.com :: Sat Aug 20 10:59:02 +0200 2011
@schacon
schacon / rebase.rb
Created August 18, 2011 12:18
simple rebase
#! /usr/bin/env ruby
# take a branch and rebase the current one onto it
branch_target = branch_onto = ARGV[0]
raise 'no target' unless branch_target
branch_onto = ARGV[1] if ARGV[1]
# record where we are and what branch we're on
branch_current = `git symbolic-ref HEAD`.chomp
@schacon
schacon / plumbing.md
Created August 18, 2011 04:51
plumbing cheat sheet

the plumbing commands

  • rev-parse [something]

    • show the SHA of any weird git phrase
  • hash-object -w [file]

    • take any file or stdin and return a blob sha
  • ls-tree (-r) [sha]

  • show the entries of a git tree in the db