Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# git-summary - summarize git repos at some path
#
# Forked from https://github.com/lordadamson/git-summary
#
# Freely distributed under the MIT license. 2018@MirkoLedda
set -eu
@skrrp
skrrp / .xmobarrc
Created August 21, 2019 15:09
Xmonad
Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
, lowerOnStart = False
, overrideRedirect = False
, hideOnStart = False
, persistent = True
, borderColor = "black"
, border = TopB
, bgColor = "black"
, fgColor = "grey"
, position = TopW L 100
@skrrp
skrrp / gist:c719e07979b86e5fb96f010c563ac455
Created March 22, 2019 11:57 — forked from solenoid/gist:1372386
javascript ObjectId generator
var mongoObjectId = function () {
var timestamp = (new Date().getTime() / 1000 | 0).toString(16);
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() {
return (Math.random() * 16 | 0).toString(16);
}).toLowerCase();
};

Keybase proof

I hereby claim:

  • I am skrrp on github.
  • I am skrrp (https://keybase.io/skrrp) on keybase.
  • I have a public key ASDkMibpujoCY38SbplxIB25MSicooY5zoApIn6sOPdpSAo

To claim this, I am signing this object: