Snacks

Advent of code 2020

This year I decided to spend some time on the Advent of code. I will use my as-of-today favorite programming language, Ruby. I am not a Code golfer and my goal was strictly do get the solution while writing code that still can be explained somewhat and respect the (non-mathematical)...

symbols for pads

While using “Pads” (like etherpad lite, cryptpad etc.) or other poor text editors you sometimes might need symbols to indicate lists, important items, separate sections and other stuff. This is the beginning of a collection of mine. Copy and paste them as you like For technical reference: these are UTF-8...

list all crontabs

Often enough, we search a cron entry and are not sure which user is issuing it, or we doubt if there is a crontab entry present (or missing). In this case, outputting all manually registered crontabs can be handy: for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user...

deploy to github.io with jekyll-github-deploy

At github you can have jekyll generated sites for your repositories and they will be published at <whatever>.github.io. In your repositories settings you can select the branch from which the site is built or served. However for <username>.github.io pages, stuff has to be served from your master branch. jekyll-github-deploy (jgd)...

Nice to locals: ActiveStorage might soon come with a ProxyController

ActiveStorage is the Ruby on Rails storage framework for “uploaded” stuff like images etc. The whole thing is a bit complicated (with signed keys for representations, polymorphic associations, cache-header support and so on), but here I will focus on a single simple implementation detail. Well engineered it was crafted as...

Operations: runbook

From the KISS (keep it simple, stupid) universe come stubbed Semi-automation, README-based development and plain text data storage. Braintree released a framework called runbook. You can start e.g. from a ToDo-list and gradually improve until you end up with script that does whatever it should, but fully automatically. I had...

Rails 6 and vendor sass assets

Aim make bulma available to and customizable via the Rails assets pipeline Requirements Rails6 setup tolerance: probably we will place files where they do not belong Why In Bulma 0.9 there is a new “spacing feature” that I happen to need right now. Or a least, it would feel stupid...

Using Microsoft Edge IE VMs with kvm/libvirt

Or how to use virt-convert on a practical example. Ever wanted to check how Microsoft Internet Explorer renders stuff but no license at hand? Welcome http://dev.modern.ie, where you can download time-bombed VMs. Pretty cool service from Microsoft. Update 2020-11: a more recent URL is developer.microsoft.com/en-us/microsoft-edge/tools/vms/. Now, these machines come as...

Categories

assets
bash
devops
docker
dokku
intranet
jekyll
linux
pfsense
php
rails
ruby
snack
solidus
virtualization