desnudopenguino / wl

wl - Work Logger, a ksh-based set of functions to help log time based on tmux sessions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wl

wl - Work Logger, a ksh-based set of functions to help log time based on tmux sessions.

This script is written in POSIX sh and based in OpenBSD (as well as the makefile).

Installation

  1. git clone https://github.com/desnudopenguino/wl.git
  2. cd wl
  3. make local - install the script to your local (~/bin/) directory
  4. make init - initialize your local filesystem (~/work_logs)

Files of interest

  • '~/work_logs/.tex/example.conf' - an example client's config contains their name, rate, type of service, and email for sending invoices
  • '~/work_logs/.tex/.conf' - the base config for your settings including mailgun API key and template name, send email, and bcc email for sending invoices

Dependencies

  • tmux - this is how the work logs are more or less managed.
  • vim - for editing files (wl -e)
  • texinfo (texi2pdf) - to compile invoices (wl -x)
  • a MailGun subscription - to send invoices via email
  • curl - to send API call to send email through MailGun
  • tex packages (I found them installing "texlive_texmf-full" on OpenBSD)
    • fp
    • calc
    • longtable
    • graphicx

Get Started

  1. Start up a tmux session tmux new -s example
  2. Create a new wl csv wl -n
  3. Make some entries wl -s - to start a time block wl -f "<some comment>" - to finish a time block wl -e - to edit a time block
  4. Export to pdf wl -x
  5. Send the pdf wl -p'
  6. ???
  7. Profit!

Notes

The invoice tex and cls files were found at LaTeX Templates.

About

wl - Work Logger, a ksh-based set of functions to help log time based on tmux sessions.


Languages

Language:Shell 45.7%Language:TeX 38.9%Language:Roff 9.9%Language:Makefile 5.5%