Posts tagged with “opensource”

Short notes on Restic

I'm always fashionably late to the party. So forgive me for being the last to get all excited about Restic. Encryption by default, snapshots, deduplication, support for various storage types—Restic checks all the boxes. Not only that, it is also a supremely easy to use backup tool.

While learning how to use Restic, I took notes for future reference. I'm sharing my trivial findings here on the off-chance that someone might find them useful. The notes cover a simple scenario, where Restic backs up data to an external USB storage device.

Continue reading

Instant offline translation with Argos Translate and a dash of Bash

Google Translate is great, until it's not. The quality of translation is undeniably impressive, and the apps have some genuinely useful features. But even if you choose to ignore the fact that Google lives off our data, there is a matter of Google Translate not working offline—not on a Linux system, anyway. And even if it could do that, there is still a case to be made for using and supporting an open-source alternative free from the shackles of surveillance capitalism.

Enter Argos Translate, an open-source neural machine translation engine that works offline and is available as a Python library, a command-line tool, a web application, and a desktop utility. Install Argos Translate on your machine, add a simple Bash shell script, and you can instantly translate a text selection from any application. Here is how to do this on Ubuntu and Linux Mint.

Continue reading

Hako: Stupidly simple DIY web archiving tool

I can't code to save my life, but that doesn't stop me from trying. One of my latest creations is a case in point. Since stuff tends to disappear unceremoniously from the Web, I usually save local copies of interesting articles. Up until recently, I used the SingleFile Firefox add-on for that, but the process involved too many manual steps for my liking. After several failed attempts to make Archivebox work, I decided to roll out my own tool based on monolith. The latter a simple command-line utility that saves complete web pages as single HTML files. It took me a few hours to cobble together a crude but usable tool that I named Hako (it means box in Japanese, and it sounds a bit like hacky, which I find somewhat appropriate).

Continue reading

Tiny post about Tiny Page

I love Bing's daily photo feature, but I don't use Bing. So I whipped up Tiny Page, a simple landing page written in PHP. The operative word being simple. The PHP script pulls the URL of the current Bing photo and its title out of a JSON file and fetches the current weather conditions from the wttr.in service. A dash of CSS styling helps to make the page look not too terrible. That's all there is to it. Wait, actually, the page also shows whatever link you specify as favorite.

Continue reading

Run Pi-hole as a container with Podman

There is arguably no better way to protect devices on your local network from unwanted content than Pi-hole. Add a machine running Pi-hole to your network, and it will quietly scrub all incoming traffic from pesky stuff like ads and trackers in the background. As the name suggests, Pi-hole was initially designed to run on a Raspberry Pi. But if you already have a Linux server on your network, you can deploy a Pi-hole container on it instead. That's what I did when I replaced a QNAP NAS appliance with a ThinkPad T410 running Linux Mint. But instead of Docker, I chose to use Podman. Deploying Pi-hole on Linux Mint (and by extension, on any Ubuntu-based Linux distribution) requires a few steps, but it's not beyond the wit of man.

Continue reading