Say hello to Mister Hubert!
Some days ago I got myself a new shiny Samsung 840 Pro 256GB SSD for my laptop. The old 80GB Intel was just too damn small.
Instead of just doing a pvmove
from the old to the new, I decided to set up the system from scratch. That is an awesome way to get rid of old and unused stuff or at least move it to some lower class storage (read: backup). One of the things I did not bother to copy from the old disk were my ~/Debian
, ~/Grml
and ~/Devel
folders. I mean, hey, it's all in some kind of VCS, right? I can just clone it new, if I really want. Neither I copied much of my dotfiles, these are neatly gitted with the help of RichiH's awesome vcsh
and a bit of human brains (no private keys on GitHub, yada yada).
After cloning a couple of my personal repos from GitHub to ~/Devel
, I realized I was doing a pretty dumb job, a machine could do for me. As I already was using Joey's mr
for my vcsh
repositories, generating a mr
config and letting mr
do the actual job was the most natural thing to do. So was using Python Requests and GitHub's JSON API.
And here is Mister Hubert, aka mrhub
: github.com/evgeni/MisterHubert.
Just call it with your GitHub username and you get a nice mr
config dumped to stdout. Same applies for organizations.
- Authentication for private repos? ✓ (-p)
- Other clone mechanisms? ✓ (-c)
- A help function? ✓ (-h)
- Other features? ✓
Comments