Skip to content

Instantly share code, notes, and snippets.

@tshakah
tshakah / keybase.md
Last active September 13, 2019 07:48
Keybase proof

Keybase proof

I hereby claim:

  • I am tshakah on github.
  • I am tshakah (https://keybase.io/tshakah) on keybase.
  • I have a public key ASBGlLyDu_MoNezqpKwaU5nuxI-sH089jz9gt61JbhVLzgo

To claim this, I am signing this object:

#!/bin/bash
# Make sure to edit TEAM and EMAIL_DOMAIN
project=${PWD##*/}
current_dir="$project-git"
hg pull
hg update
hg log | grep user: | sort | uniq | sed 's/user: *//' > ../$project-authors-raw
hg log | grep tag: | sort | uniq | sed 's/tag: *//' > ../$project-tags-raw
hg log | grep branch: | sort | uniq | sed 's/branch: *//' > ../$project-branches-raw
@tshakah
tshakah / imap-stats.rb
Last active December 1, 2015 13:38 — forked from zealot128/imap-stats.rb
Imap mail statistic with Ruby
#!/usr/bin/env ruby
# This groups emails into senders and then calculates some basic stats for the
# times of those emails - the earliest, latest and average
#
# Note that there is some oddity relating to my specific needs around timezone
# handling - this is in the code below the comment starting "Normalise"
# These two are for debugging
#require 'awesome_print'
@tshakah
tshakah / README.md
Last active August 29, 2015 14:14 — forked from jcowhigjr/README.md
Installing production Rails, Postgres and Nginx on Ubuntu