Skip to content

Instantly share code, notes, and snippets.


Renato Athaydes renatoathaydes

View GitHub Profile
aruthane / glob.d
Last active Mar 27, 2021
D Programming Language port of
View glob.d
#!/usr/bin/env rdmd
import std.stdio : stderr, File, writefln;
import std.file : dirEntries, SpanMode;
import std.string : indexOf;
void main(string[] args)
if (args.length != 2)
mroderick /
Last active Sep 25, 2021
A small script to find stale branches
# This is a very naive script, it doesn't do grouping and returns all branches
# I only really care about branches that have not seen commits in two months
# I am hoping to find some time to write a tool that can output these reports for me
# In the meantime, I am using this
echo "Merged branches"
for branch in `git branch -r --merged | grep -v HEAD`;do echo -e `git log --no-merges -n 1 --format="%ci, %cr, %an, %ae, " $branch | head -n 1` \\t$branch; done | sort -r
willurd /
Last active Sep 27, 2021
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000