Git diff for prose
When writing long sentences in documentation repositories, git tends to show really unhelpful diffs. They are unreadable because long lines aren’t broken, which hides edits happening towards end of line. A colleague of mine asked me if git couldn’t be configured to make this sort of thing more obvious. Challenge accepted!
Figure 1: Can you spot the edit made in a long line of text?
Kaushal Modi’s blog post on git diff for minified JS and CSS inspired this idea for all you prose lovers.…
Git pretty graph
Get a cool graph of commits from the command line! For newbies and experts alike, git is a bit hard to visualize. Here’s a handy git command to make understanding git easier.
git log --decorate --oneline --graph Figure 1: Git graph of this repository
This can be made into a git command via an entry your ~/.gitconfig:
[alias] graph = log --decorate --oneline --graph Code Snippet 1: Alias "…
Presenting Android terminal with Termux (EdLug)
Last night, I presented about Termux to EdLug, the Edinburgh Linux User group (see the event page on meetup.com) in a talk titled “The freedom of shelling out on Android”. It was tons of fun showing off how your Android phone/tablet getting a terminal unlocks a powerful tool!
Termux running vim, gcc, strace, with tmux splitting screen. Credit: Termux website I’ve made the slides available on this website, click on the slide below.…
Welcome to my website!
This blog is meant to record some of the thoughts I keep coming back to, or discussions I’ve had over and over again with different people. My rule of thumb for inclusion here is “if you’ve had to say it more than twice, it’s time to write it down”.
See the About page for my background and motivations.
Look forward more posts as I try to condense my thoughts in written form.…