ichverstehe / ltt

the lil' time tracker

This URL has Read+Write access

ltt / README.md
100644 54 lines (38 sloc) 1.402 kb

the lil' (cute) time tracker

lolz

this is a replacement for my old system, with a workflow based on shuffling post-it's and calculating total hours and all kind of boring shit. this is teh eazy way:

  1. log in to the lil' tracker before you start working and track project X
  2. do that work stuff or smoke cigarettes or smth
  3. stop tracking project X

and the time you spent will be added to the lil'.

command line interface

oh yes, even easier.

$ ltt track project-x
$ vim /path/to/my/workz
$ ltt stop

that's it! here's a fish function that does the job (if you care about bash, write it yrself):

function ltt
  switch $argv[1]
    case track
      curl -X POST $LILURL/track/$argv[2] -w "%{http_code}"
      echo
    case stop
      curl -X POST $LILURL/stop -s
  end
end

setup

run it from the cli or configure passenger or however you roll, like this:

ruby app.rb -e production

you will have to add users manually. something like this:

sqlite3 db/production.db "INSERT INTO users (login, password) VALUES ('foo',
'bar)"

todo

  • write that cli wrapper
  • add the two calls to Digest::SHAlala for a little obscurity
  • check TODO, mhm.

license

the mit. and really, fuckin' google it yourself, I don't care.

(c) 2009 Harry Vangberg / Imperial Glamour