I’ve added some of my projects that I at one point hosted either on github or my own gitea instance. I prefer fossil, so that’s what’s hosting it, now. You can find my degruchy-core plugin that I use on this site, and my old blog. It’s also on the menu bar above.

I like duf, but having a whole extra program just for showing me what df does seems kind of silly. So, using what I’ve learned about shell pipelines and the text-slicing tools, I’ve made a simpler one that is just to lines of shell code:

duf() {
  printf "%25s %5s %5s %5s %s\n" "Mount" "Total" "Free" "Used" "Percent"
  /usr/bin/df -h | grep --regexp "sd" --regexp "mapper" --ignore-case | awk '{printf "%25s %5s %5s %5s %s\n", $6, $2, $4, $3, $5}'
}

I say two, because I made it a function. The code is not very smart, but hey, it works and it shows me what I’m interested in.

Campfire by ONCE

It’s interesting to see the reaction to SaaS becoming more and more prevalent and predatory. ONCE, a 37Signals company, has released their first product (a revamp of something that was included in Basecamp) called Campfire. It’s a private chat system that you pay ONCE for (badum-tisk!)

Honestly, if there weren’t already a plethora of awesome, open source and interoperable chat services that I could use for my own private family setup I would think about buying this.

Why Would You Trust Google With Anything?

Google has, apparently, been pushing out full-screen advertising on their Chromecast devices. There are even reports of full-screen ads in the YouTube app for Android.

I don’t know why people think that Google is a good company to hang their hat on. Their business model is like 97% advertising. They long abandoned search, keeping it (and other projects) going so long as it serves as a viable vehicle for getting more ads in front of more eyeballs.

You’re not getting anything free from Google. You’re giving Google money to use it.

TIL: –libcurl Option for cURL

cURL, the de facto network request Swiss Army Knife for the command line, has an option to generate a simple C source-code file for the request you make with the command. This --libcurl option is useful in that you can generate a program that mimics the command you just ran. This, in turn, allows you to continue running the generated program without having to invoke cURL every time.

What an amazing option. It not only teaches you how to implement cURL requests in C, but it also means you can have a much less error-prone binary that you can run to repeat a command.

Edit: I know that cURL is now included with Windows, but they’ve removed this (and many other) option from it. So, you’ll either need an official build from the developer, use it in WSL, or pester Microsoft to not kneecap builds of critical open source tooling. Of course, you could just switch to Linux and not have this problem in the first place…