Idiot's Guide to Generating Google AuthSub Tokens with curl
1. Log in to your Google account.
2. Visit this URL (you'll have to customize it a bit):
https://www.google.com/accounts/AuthSubRequest?next=http://nothing/&scope=[INSERT SCOPE HERE]&session=1 &secure=0
3. Authorize the request, then copy the token from the destination page. Note that it might have URL-encoded characters that you will have to decode. You now have your request token.
Your request token will look something like this: 1/hABD5BM2Ryoh9DEFbq14QvhBKYTIaYFmmR27Db4A
4. Upgrade your request token to a session token:
curl -i -H 'Authorization: AuthSub token="1/hABD5BM2Ryoh9DEFbq14QvhBKYTIaYFmmR27Db4A"' https://www.google.com/accounts/AuthSubSessionToken
And the response will contain your AuthSub session token, ready for use in your web application.
Chicken Curry
Personal Life Remember List
- Imagawayaki
- Bouchon in Beverly Hills, Sasabune on Wilshire for sushi, Vicente, Mr Chow's, Matsuhisa, Hirozen
- How to Remove an IT Policy from BlackBerry
- Turkey and Spinach Curry recipe
- marinade recipe: 16:12 onion, garlic, worchestshire, soy, vinegar, olive oil \ 16:12 mix to taste \ 16:12 let meat soak \ 16:12 grill \ 16:12 foodgasm
Girl advice from friends
Minh: tell her you like her
Minh: ask ccowart if im right first lol
Lilly: don't tell girls yer interested in about other girls yer interested in..lol
Ian: so, status check. got any good dates?
Jeremy: like girls or the fruit or calendar days?
Ian: girls
Jeremy: nope, HTML is my only lover.
Also, you should listen to this song. Just click the onebox result (shameless Google plug). Pretty good. :)
Part 2 of this post is a Romesco sauce recipe. Thanks, Cowart.
- roasted tomatoes, red bell papers, and sweet peppers
- peeled almonds and hazelnuts
- garlic
- olive oil
- salt and pepper
- a little bit of red wine
- vinegar
40,000 miles
- Teaching Cyn, Victor, Jen, Monica how to drive stick.
- Saving me from driving myself crazy after dealing with girl trouble at 2 in the morning.
- Saving several girls from dealing with boy trouble at 2 in the morning.
- Moving year after year, every year. I can fit more in that car than you would ever imagine.
- The navigation system doesn't work anymore.
- I scratched up the wheel well while parking in my city apartment's garage (a fire hydrant blocked the entrance).
- While shopping at Safeway, four times I've returned to huge scratches in my car from careless people.
- A Prius lost its bumper on the freeway. The Prius was right in front of me. I drove over the bumper and it tore off my sideskirt, which is now hanging loose.
- My car got shot at.
Recipe: Okonomiyaki
- 2 cups of flour
- 2 eggs
- 4/3rds cup dashi water
- as you like: soft tofu
- as you like: cabbage
- as you like: shrimp pieces
- as you like: sliced scallops
- as you like: green onions
- as you like: dried nori
- Drench it in Okonomiyaki sauce
- Cover it in dried seaweed
- Unload many, many bonito flakes on top
- 2 cups dashi soup stock
- 1 block tofu
- 2 tbsps miso paste
- 1/4 cup chopped green onion
- tomato wedges
- carrot shavings
- lettuce
- salt and pepper, balsamic vinegar and oil
- 3x mini-scoops of sorbet
- mint leaves
- mango pieces

The most fantastic cab in San Francisco
Restless, Restless, Restless; and the Prisoner's Dilemma of Flirting
Vim Trick Log
I'll use this Scratchpad entry as a way of logging the handy Vim tricks that I just can't leave at the door. Vim is mission-critical to my efficiency as a web developer and each trick I learn saves many me reps of finger pushups.
There are tons and tons and tons of (seemingly endless) Vim tricks and plugins. This entry will just log a handful that I need to remember.
Search and replace within a selection
Search and replace only in a visual selection, not an entire line:
:%s/\%VSEARCH/REPLACE/g
Find non-ascii characters
/[^[:print:]]
Delete lines matching (or not matching) keyword
Matching:
:g/.*foo.*/d
Not matching:
:g!/foo/d
A note about buffers, yanking, and pasting
"adw saves word INTO register a
"ap pastes FROM register a
Two Tips: Rsync and SSH Keys
These two bits I've been using for longer than I can remember, but every time I reconfigure a machine I need to Google the command syntax. Here they are, in an accessible format.
First, because I recently lost a whole ton of (good) work, here's a simple way to do Rsync for backups.
rsync -avz -e ssh REMOTE_HOST:REMOTE_DIR LOCAL_BACKUP_DIR
SSH keys, enabling password-interactive-less sign on, are a brainlessly easy two-step process. If you type your password more than once a day for SSHing into machines, you'll want to use SSH keys.
local$ ssh-keygen -t rsa -b 2048
local$ ssh REMOTE_HOST "cat >> .ssh/authorized_keys" < .ssh/id_rsa.pub
Sha-bam, you're done. Two commands and no more typing in that password on every SSH connection.
Pasta Sauce Recipes
Enough with the life-threatening posts already
How do you fix a bullet hole in a car? I GOT FREAKIN' SHOT AT.
New York: Just for the record
- kgb -- a very tasty cinnamon vodka
- swift bar -- i think we went here, it is the really cool "hey! this is an old castle's forgotten library" place.
- yum yum bangkok III -- yum yum bangkok I and II are just posers, as are all the other yum yums.
- bleecker street -- for shopping and walking
- union square -- for hanging out, why haven't i been here before?
- kyotofu -- the dessert and sake place. now I know they also have japanese tapas here.
- sobaya -- delicious japanese food
- google office -- of course, the office that's also the attraction (76 Ninth Avenue 4th Floor)
- milo's -- fish-to-impress ($$)
- centennial -- ten shots for ten bucks
- brooklyn ice cream factory -- i hadn't had ice cream in a really long time
- PDT -- please don't tell (we were told!) [addendum: argh! we got our name on the list, but were never called. foiled! there's one easy solution: a return to new york city.]
- pommes frittes -- the new york version of 2am mission food
- bike-rental in central park
- belgian beer (burp castle in east village? valhalla? i found these online while trying to remember the name of a place above)
- village yokocho (while waiting for PDT, we looked for this yakitori place + bar, but never found it...)
- grimaldi's pizza -- go over the brooklyn bridge, then stand in a very long line for pizza









