Skip to content

Instantly share code, notes, and snippets.

View nastysloper's full-sized avatar
💭
Climbing Rocks, Running Trails, Writing Code

Richard Vogt nastysloper

💭
Climbing Rocks, Running Trails, Writing Code
  • Accenture Federal Services
  • San Antonio, Texas
View GitHub Profile
@smullins7
smullins7 / bash-milliseconds-functions
Last active December 30, 2015 22:59
Bash functions to convert to and from milliseconds since epoch UTC. Requires moment (http://momentjs.com/docs/) to be installed.
function millis {
nvm use v0.10.12 > /dev/null && node -e "var m = require('moment'); console.log(+m.utc('${1}', ['MM/DD/YY', 'YYYYMMDDTHH:mm:ss']))"
}
function fmillis {
nvm use v0.10.12 > /dev/null && node -e "var m = require('moment'); console.log(m(${1}).utc().format())"
}
@pksunkara
pksunkara / config
Last active April 7, 2025 11:00
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta