You can also also view the full archives of micro-posts. Longer blog posts are available in the Articles section.
I don’t use Cabal that often, and I manage almost everything with Stack. I accidently installed a package (bhoogle) that adds nothing to Hoogle, but there’s no cabal delete
or cabal uninstall
, you know. So I simply nuked the whole $HOME/.cabal
directory that GHCup installed for me with an older version of Cabal. And now I can’t get it back. Instead, Cabal now follows the XDG Base Directory Specification, which means compiled stuff will end up in $HOME/.local/state
. Let’s go for another env variable (CABAL_DIR
) then. #haskell
Rust Language Cheat Sheet. #rust
Now playing from Apple Music right into Tmux status line!
Put this script somewhere in your $PATH
:
#!/bin/sh
unset title
title=$(osascript -e 'if application "Music" is running then' -e 'tell application "Music" to get name of current track' -e 'end if')
artist=$(osascript -e 'if application "Music" is running then' -e 'tell application "Music" to get artist of current track' -e 'end if')
if ${title+"true"}; then echo "$artist ♪ $title"; fi
If you don’t mind using the -e
switch as your line separator; otherwise just write a .scpt
file and load it directly.
See this gist for a more elaborated solution that accounts for both Cmus and Apple Music.
Tonight I updated my default colorscheme (quiet
) in Neovim when I noticed there was a monochrome version. Since we cannot set t_Co
in Neovim, I create a user colorscheme named morequiet
using these specs only. I added a few tweaks for diff mode (I like the look’n feel of the quiet
colors in this case) and TODO-like @comment.*
identified by Treesitter. So far so good. #vim
Everything Is Correlated. Great article, as always, full of historical references.
Recently I settled on glow and doxx. See also Terminal Trove.
No more Python or Bash or Javascript to fetch title or other metadata from Youtube link required if you have yt-dlp installed on your system:
More importantly, though, feed readers put your subscriptions under your control. There’s no risk that the administrator of an RSS feed sells your details to spammers, or accidentally leaks them like the aforementioned world renowned expert on account information leaks, because there’s no administrator. If you decide you don’t want to see a particular feed any more, you just instruct your reader to stop fetching it. There’s no sending of mail or clicking of unsubscribe links. Nothing changes in the content creator’s system; they don’t even need to know it happened. — Really Simple Syndication
Mavericks Forever. This reminded me that I still have my old MacBook Pro from late 2013, which came with Mavericks pre-installed. I ended up my Apple journey with Mojave running on a Macbook 12”, which has always been my preferred version of OSX, and one of the best laptop I used to use over the years. Now the MBP is waiting for Ubuntu to upgrade thousand of packages (I haven’t used it for two years now) before I perform a do-release-upgrade
.