3 ms·
Stuff I'm thankful for, in no particular order. None of these are particularly unique to me, nor are they obscure and hipster, they're just stuff I have found m
by bloopernova 4y ago
Stuff I'm thankful for, in no particular order. None of these are particularly unique to me, nor are they obscure and hipster, they're just stuff I have found myself really thankful for.
powerlevel10k because it makes adding custom sections to my shell prompt really straightforward. https://github.com/romkatv/powerlevel10k https://github.com/romkatv/powerlevel10k
terraform because I have a job wrangling it lol
asdf because it manages versions of software for me really well and it has thus far been rock solid reliable. https://asdf-vm.com/ https://asdf-vm.com/
Emacs because it's about as configurable and customizable as my most insane requirements. And emacs lisp is very cool. Similarly, vim and vscode are also dear to me.
Factorio! because of course Factorio, it's amazing. Similarly Kerbal Space Program.
Firefox for standing up against the chrome hegemony nowadays, and for being so exciting back in 1998 with its initial open source decision.
And Tree Style Tabs, because every time I have to use a browser without it, my skin crawls at the lack of organization. https://github.com/piroor/treestyletab https://github.com/piroor/treestyletab
And the big ones: grep, sed, awk, cut, sort, uniq, jq for all the times they've turned something incomprehensible into something useful to this tiny mind.
EDIT: oh and zsh because zmodload zsh/datetime gives me $EPOCHSECONDS which makes life so much easier to make cool prompt segments like "days and hours since last commit" and "remaining auth session time in minutes and seconds"
# display time since last commit in days and hours
gdate -d @$(($EPOCHSECONDS-$(git log -1 --format=%ct))) -u +"(%-dd %-Hh ago)"
- danparsonson 4y agoWow thanks for the Tree Style Tabs tip, that looks really interesting!
- kazinator 4y agoBreaks past one month, unfortunately. I think, you want to take the difference and divide by 86400 to get the number of days. Then take the difference modulo 86400 to get seconds in a day, and convert that to hours (minutes:seconds) via strftime string. Proof of concept: 1> (let ((tdiff (- (time) (read (command-get-string "git log -1 --format=%ct"))))) (match (@days @secs) (trunc-rem tdiff 86400) `(@{days}d @(time-string-utc secs `%H`)h ago)`)) "(627d 12h ago)"
- bloopernova 4y agodangit! I hadn't tried testing it on a repo with commits that far in the past (obviously) Thank you for the bug report and PR ;) I'll look at fixing it with your code.