Mastodon Mastodon - Snippets
 logo
  • Home 
  • Tags 
  • Blog posts 
  1. Home
  2. Categories
  3. Snippets

Snippets

April 25, 2020 •1 min read • Solved

nextcloud and Docker and reverse proxies

nextcloud needs some “convincing” to work behind a reverse proxy. All running in Docker, naturally.

April 19, 2020 •3 min read • Home

FritzBox, Unify Security Gateway, and router replacements

I re-did my home network. It was a lot more work than I expected – here are some notes.

March 29, 2020 •1 min read • Collection

SARS-CoV-2 (“Corona”) Data Sources and APIs

The title says it all. (Last update: 2020-04-01)

March 22, 2020 •1 min read • Python

Configure Python on Windows

The title says it all.

March 13, 2020 •1 min read • Tools: Autohotkey

Use autohotkey for text expansion on Windows

On macOS I use the fantastic Typinator – that doesn’t exist on Windows. Enter autohotkey.

January 25, 2020 •2 min read • Tools: Check_mk

Check MK container/k8s deployment

How to run the CheckML container behind a reverse proxy, a.k.a. “how I found a CheckML bug”.

January 11, 2020 •2 min read • Helm

cert-manager too old …

A.k.a. “my personal cert-manager-upgrade-adventure”, and you may read “adventure” as “Pain In The Ass”.

August 31, 2019 •3 min read • Cloud: Azure

The 6 ways of returning data from an Azure Function

Yup, really, there are six (!!) ways you can return data. Some are even pretty useful.

August 25, 2019 •2 min read • Linux

Win10 & Veracrypt & systemd-boot

I want encrypted hard drives, yet MS did remove BitLocker. So I used VeraCrypt. Then I wanted to dual-boot. Here’s how to do this.

April 19, 2019 •2 min read • Rant

Windows after 13 years – and nothing changed

A rant.

December 5, 2018 •1 min read • O365

Powershell, O365 & Teams PSTN calling

(I really don’t remember what this is about – yet I still hate Teams …)

October 17, 2018 •2 min read • Dev

Misc Django I – forms

Adding validation to Django forms is pretty easy, but dynamically filling a form dropdown/… with content from a database? I had to search a while.

October 16, 2018 •1 min read • Django

Django, psql & “permission denied” on migrate

Django migrations vs. table owners in Postgres.

September 26, 2018 •1 min read • Firefox

Firefox close tab buttons on mouse hover

How to get the “close tab” buttons back in Firefox – but only on mouse hover.

August 26, 2018 •3 min read • Cicd

Databases with dokku

My dokku adventure continues: Here’s how to add a database to the deployment.

May 25, 2018 •1 min read • Helm

Helm in a kops cluster with RBAC

Solve a permissions problem with Tiller/Helm and a KOPS cluster in AWS.

April 18, 2018 •1 min read • Mac

Mac three finger gestures in browsers

I keep forgetting how to configure this in the macOS system settings.

April 18, 2018 •2 min read • Linux

Arch followup actions

Useful things to do after installing Arch Linux.

April 12, 2018 •1 min read • Python

Python & Visual Studio code

Solve an issue with VS code not finding pipenv Python interpreters.

March 28, 2018 •1 min read • Linux: Arch

Arch linux + yubikeys

What to install, how to configure.

February 23, 2018 •1 min read • Fonts

Ugly ligatures in Linux

The only person ever configuring TRULY great font configs in Linux has gone missing. I still try to replicate his configs. Here’s one more nugget.

February 1, 2018 •1 min read • Cli

crontab and nano

Set the default editor for “crontab -e” to be vim.

January 24, 2018 •1 min read • Linux: Arch

Shutter can’t edit images on Arch

Here’s how to solve it.

October 17, 2017 •1 min read • Tools: Jira

JIRA and Python

How to use the Python JIRA library to create a ticket.

July 27, 2017 •1 min read • Linux: Arch

CUPS is … weird

A small rant on CUPS while getting it to run.

June 12, 2017 •1 min read • Cli

No password prompts for GitHub "hub" client

I’m lazy – if you are too, here’s how to get rid of that annoying prompt :)

April 26, 2017 •1 min read • Cloud: Aws

jq makes AWS “describe-instances” actually useful

Use jq to parse AWS CLI JSON output.

April 20, 2017 •1 min read • Linux: Arch

Linux font rendering sucks, a.k.a “Where is Boohomil”?

How to make Arch Linux fonts more beautiful.

January 21, 2017 •1 min read • Blog

Syntax highlighting with wordpress

The title says it all.

January 17, 2017 •1 min read • Linux: Arch

PyCharm, Arch linux & Python 3.6

PyCharm debugging stopped working – here’s how to bring it back.

January 12, 2017 •7 min read • Docker

Logs with docker and logstash

The title says it all.

January 9, 2017 •2 min read • Logstash

Logstash, clone filter & add_field mysteries

Some hard-won insights into logstash.

July 6, 2016 •1 min read • Puppet

Quick puppet debugging snippet for Atom

The title says it all.

June 28, 2016 •1 min read • Docker

Testing logstash configs with Docker

The title says it all.

June 28, 2016 •1 min read • Puppet

Loathing RSpec and Puppet

A rant.

June 22, 2016 •1 min read • Jumpcloud

TeamCity LDAP authentication with JumpCloud

The title says it all.

May 30, 2016 •2 min read • Rancher

Migrate Rancher database from container to external

… using Puppet.

March 17, 2016 •1 min read • Ansible

Ansible inventory file from Consul

A one-liner.

March 8, 2016 •2 min read • Tools: Consul

Host monitoring with Prometheus

Use puppet & consul to monitor “bare metal” (VMs) infrastructure.

February 26, 2016 •4 min read

CI/CD, the status quo

A summary.

February 22, 2016 •1 min read

Arch with dm-cryptt on UEFI boot

A link collection.

January 29, 2016 •1 min read • Solved

Really annoying thread properties

A very non-intuitive (but consistent) behavior of Python threads.

December 25, 2015 •1 min read

Mac software essentials

Well, after the Firefox Essentials, here’s my list of Mac essentials: LaunchBar Homebrew Firefox Beta Exact Scan Pro (scanner utilities for Mac are still … all bad, this is absolutely good and relatively the best. VueScan might be better for about 0.05% of all scans I do, but the usability could actually not be any worse) The Unarchiver Sublime Text, or probably in the future Atom (text editors) Cubby and Bittorrent Sync (document sync, don’t really like Dropbox) VLC player Better Snap Tool (yah, don’t really get the split screen of OS X) PDF Expert or PDF Pen Pro (both good, the first is way cheaper, and the reason is that Preview can actually make PDF files bigger on edits like remove pages, or rearrange pages) Amphetamine (keep your Mac awake) Typinator (text epansion) Twitter client (I actually use the official one) Libre Office Telegram (useful Whatsapp alternative, cause it also has a web interface) Path Finder Shimo (VPN client, really expensive, but “use this password for all connections in this folder” is awesome) Hazel

December 23, 2015 •1 min read • Firefox

My essential Firefox addons

… can be seen on the Firefox Addons page as collection 🙂 . The addon ecosystem of Firefox is what keeps me with it. And the way it’s done. One example: Mouse Gestures are available on Chrome, which seems to be a lot faster and smoother today :’( … but in FF, when I go to the settings page, I can still use mouse gestures, cause it’s just another page. In Chrome I can’t. I like the Firefox behavior - it’s consistent, which is highly a highly underrated property these days. ...

December 11, 2015 •1 min read • Tools: Jq

jq stuff

Waah. In case I *ever* need this again. aws ec2 describe-security-groups | \ jq '.SecurityGroups | \ map(select(has("Tags"))) | \ map(select(.Tags[].Key|contains("Name"))) | \ .[] | \ [ .Tags , .GroupId ] | \ [ (.[0]|map(select(.Key=="Name")))[0].Value, .[1] ] | \ join("=") 'What does it do? It makes a list $NAME_TAG=$GROUP_ID… for each security group which has a name tag. Yeah, right.

December 8, 2015 •1 min read • Gnome

Shortcut with “ö” (o-umlaut)

I want my clipboard history on CTRL-Ö. Don’t ask why. Here’s what you can enter in GNOME to get this: odiaeresis

December 8, 2015 •1 min read • Cloud: Aws

Rancher IAM role

Rancher can create instances on EC2. If you want to define a dedicated IAM user for this, refer to the Amazon docs for the a profile template. Unfortunately the first thing you get when using those permissions in rancher is “You are not authorized”. Great. I’ll update this when I know the correct permissions. (Source: Rancher docs)

December 7, 2015 •1 min read • Cloud: Aws

VPC with NAT to internet on AWS

… and other TLAs. Anyways, as far as I remember OpenStack does not need this, so I thought I document it here. I at least was surprised. Situation: You want a private network sement in the cloud (in my case an Amazon VPC), and you don’t want all hosts to be accessible from the internet. So you don’t assign public IPs, and you need a router/gateway. Amazon creates a network internet gateway, but this thing does not do one thing: NATting. If your host does not have a private IP, it can’t connect to “the internet”. ...

December 7, 2015 •2 min read • Cicd

CI / CD solutions

Everyone wants free candy. Or a CI/CD solution, that … auto-deploys container-based servcies auto-updates (roll-forward, roll-back) those services on keypress and “triggers” has one-click-deployment of services. My definition of “service” here is “A set of containers working together in a certain way, automatically load balanced where needed”. Example: A n worker nodes, loadbalanced from a web endpoint, and a database container. All deployed at the same time. Including one-click-deployment of environments (“Oh, I’d like to test this revision again, let’s deploy it quickly”…). Note that this is mostly CD (continuous deployment), cause CI is being done for a while now with - mostly - Jenins and other tools. ...

November 29, 2015 •1 min read

iTerm & keyboard

make alt-left/right work as cmd-left/right in iTerm Make alt-dot work as cmd-dot in iTerm … cause I remember having searched for this before, with a lot less useful results.

  • 1
  • 2
  • 3
In case you want to follow me

Here are some links. The further to the right, the less active.

           
(c) Axel Bock | Powered by Hinode.
Code copied to clipboard