LOL. Yeah, pretty true.

June 13 Comments Off on LOL. Yeah, pretty true. Category: Code, Feed, Tumblr

LOL. Yeah, pretty true.

Some new git tricks

April 13 Comments Off on Some new git tricks Category: Feed, Tumblr

git fetch origin 
git reset –hard origin/master

I’ve known this one for a while, but worthwhile to write it down as a way to reset branch state. This can be especially important if you’ve had to do a few rebases in the past and the current history doesn’t match commit IDs with the new (origin) history. 

git clean -f -d –dry-run

Remove unstaged files with -f, also directories with -d. Preview the process before you do it with –dry-run. 

Life and Code’s Greatest Hits

March 30 Comments Off on Life and Code’s Greatest Hits Category: Code, Feed, Tumblr

lifeandcode:

Life and Code is a learn-to-code blog written with journalists in mind (but useful to anyone who wants to learn).
By far the most popular items on Life and Code are these two: 

  1. Learning to Program for Journalists: the epic HOWTO
  2. Life and Code’s Learn to Code Resource Guide

These are the other Greatest Hits.

  1. Every time you feel like giving up, watch this first
  2. Four Tests for Startups — I don’t take on any project unless they pass these four tests. 
  3. And now a moment of reverent silence to begin our Daily Hour of Code. Take two.
  4. In Praise of Fluff – an essay on what cat pictures and celebrity news add to journalism.  
  5. If You’re a Busy Person and Want To Learn to Program, How Far Can You Get in 30 Days?
  6. The Role of Faith in Learning Something New
  7. It Takes About Six Weeks for Programming To Get Fun
  8. Choosing an entry point when you want to learn to program
  9. Startups for Journalists
  10. Why am I learning to code? Because a lot of things piss me off.
  11. Paying a developer money to build something for you?  Write a spec.  No, seriously, write a spec.
  12. Lisa’s Guide to Boston (in case you come for a conference)
  13. Programming, Journalism, and Bullshit — on how stupid, sexist stereotypes about programmers hold you and everybody else back. 
  14. Learning to Program for the Web: Starting from Scratch 

Ssh auth stuff I learned.

March 10 Comments Off on Ssh auth stuff I learned. Category: Feed, Tumblr

Public key goes in ‘authorized_keys’ in the server and the private key goes into ‘id_rsa’ on the client machine.