Skip to content

Instantly share code, notes, and snippets.

View rsvp's full-sized avatar
🎧
say hi ! https://gitter.im/rsvp/pub

Adriano rsvp

🎧
say hi ! https://gitter.im/rsvp/pub
View GitHub Profile
@rsvp
rsvp / git-lu
Last active August 14, 2017 21:51
git-lu :: Git script gets LAST COMMIT DATE / TIMES (since modification time is unreliable), given path/filename(s) -- supports wildcards, SHA hash ref.
#!/usr/bin/env bash
# bash 4.3.11(1) Linux 3.13.0 git 1.9.1 Date : 2017-08-14
#
# _______________| git-lu : get last commit date for file(s)
# since git can change OS file modification times!
#
# Usage: git lu [filename(s), wildcards optional]
#
# Example: $ git lu *.ipynb # SAMPLE OUTPUT FORMATTING
# 0000-00-00 _Not_committed _No_SHA 00-tpl-v4.ipynb
@rsvp
rsvp / git-logur
Created January 12, 2018 19:54
git-logur : get log of GitHub repository without cloning. Shell script in bash for git log using GitHub API.
#!/usr/bin/env bash
# bash 4.3.11(1) Linux 3.13.0 git 1.9.1 Date : 2018-01-12
#
# _______________| git-logur : get log of GitHub repo without cloning.
#
# Usage: $ git-logur [username] [repository] [-m|-c|-v]
# # Format defaults to messages -m, else
# # -c for concise text, or -v for verbose json.
# # Concise includes author and committer, with timestamps.
#