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

Snippets

August 8, 2022 •1 min read • Cli

Unix path too long for domain socket

Solving a pitfall with re-using SSH connections and overly long unix paths.

July 28, 2022 •1 min read • Linux

Container Linux Distributions

A short list of container-specific Linux distributions I researched.

July 20, 2022 •3 min read • Aws

AWS - Forced MFA and the CLI

A helper script incredibly useful if you want to enforce MFA on AWS also for CLI applications.

June 12, 2022 •1 min read • Automation

Mac quick action - edit PDF documents

Edit PDF documents using macOS Automator & shell scripts

April 8, 2022 •1 min read • Kubernetes

"Old" K8S API reference docs

A link collection to “old” kubernetes API docs for reference.

March 24, 2022 •1 min read • Postgres

Postgres - restore database with different owner

How to restore a DB backup and changing the owner while doing it.

March 9, 2022 •1 min read • Firefox

"Fix" Raindrop addon in Firefox

Fix an annoying Raindrop plugin error in Firefox.

February 8, 2022 •1 min read • Automation

Mac quick action - shrink images

A Quick Action to shrink images using macOS Automator & shell scripts.

February 8, 2022 •1 min read • Automation

Location of Mac "Quick Actions"

Where to click in Automator to create a quick action in macOS.

December 10, 2021 •1 min read • Excel

Excel - convert columns to comments

A weird solution if you want to convert a column containing a lot of text descriptions into cell comments.

November 4, 2021 •1 min read • Solved

Migrating Postgres databases in containers

How to migrate Postgres databases running in Docker containers.

November 4, 2021 •1 min read • Solved

VS Code keymaps in Sublime Text

I ported some key mappings from VS Code to Sublime Text.

November 4, 2021 •1 min read • Postgres

Create user and database in postgres

I always forget how to create a DB, a user, and the appropriate permissions in Postgres – so I wrote it down.

October 29, 2021 •1 min read • Home Assistant

Home Assistant behind proxy

Home Assistant needs special configuration to be put behind a reverse proxy – I want to remember how.

October 29, 2021 •1 min read • Linux

Configure static IP address on Debian systems

The title says it all.

October 18, 2021 •3 min read • Cloud: Aws

AWS - auto-join Windows clients to a managed AD

After the last post, we want Windows hosts that auto-join our managed AD. Here’s how to do this.

October 18, 2021 •2 min read • Cloud: Aws

AWS - create VPC and a managed AD with terraform

The title says it all.

October 15, 2021 •2 min read • Home Assistant

Home Assistant - human readable Fritz!Box uptime

How to display the Fritz!Box uptime in Home Assistant – in a readable way.

October 14, 2021 •1 min read • Cloud: Aws

(AWS managed) AD - give local admin rights to domain users

Windows systems are utterly useless (for me) if I don’t have local admin rights. Here’s how to configure those for local users using the managed AWS AD.

October 14, 2021 •1 min read • Cloud: Aws

Standard AD - auto-map a network drive

… using our managed AWS AD.

October 14, 2021 •2 min read • Cloud: Aws

AWS managed AD - add user RDP permissions

Windows servers really dislike RDP logins. Yet, in the cloud, that’s really the single thing you want to have. Here’s how to make them accept it.

October 14, 2021 •1 min read • Cloud: Aws

AWS managed AD - first steps after creation

The most important steps to perform right after we created a managed AWS AD.

August 21, 2021 •1 min read • Git

Extract parts of a git repo as new one

Sometimes I want to extract a part of an existing repository (e.g. a sub directory), including history, and make a new repo out of it. Here’s how to do this.

August 21, 2021 •1 min read • Cli

jq snippets

The title says it all.

August 18, 2021 •1 min read • Saas

Lexoffice API notes

Some findings after trying to use the LexOffice API for a while.

August 18, 2021 •1 min read • Javascript

JavaScript ISO date with local timezone

It’s missing from standard JavaScript, here’s a workaround.

August 17, 2021 •1 min read • Backup

Backup tool evaluation

I need a backup tool, those are the ones I consider.

August 17, 2021 •1 min read • Blog

remark42 comments

This is a test post. There should be a comment box below, powered by the pretty cool and really well documented remark42 commenting engine. Let’s see … :)

August 16, 2021 •1 min read • Cli

GOPATH and GOROOT

Go confuses me – especially GOPATH and GOROOT. Here is how I (think I) understood it.

August 4, 2021 •1 min read • O365

Completely delete teams on a Mac

The title says it all.

July 30, 2021 •2 min read • Docker

Auto-rebuild Docker images if base image changes using GitHub actions

The title says it all.

July 25, 2021 •1 min read • Cli

Convert RAW files on a Mac using "sips"

The title says it all.

July 15, 2021 •1 min read • Linux

Unattended upgrades in Debian/Ubuntu

The title says it all.

July 13, 2021 •1 min read • Unifi

Set DNS search path on Unifi USG with DHCP

If you want to connect to “HOST” and nothing can be found, you can send a list of domains to clients to attach and try again. Here’s how to configure this in Unify.

June 23, 2021 •1 min read • Linux

Add swap space in Ubuntu

The title says it all.

May 30, 2021 •1 min read • Home Network

Pi-Hole in Docker

Pi-Hole is a DNS adblocker you can also run in Docker.

May 27, 2021 •1 min read • Home Network

Proxmox and home assistant

Proxmox is a virtualization solution, and I run Home Assistant in it.

May 1, 2021 •3 min read • K8s

Install Zalando Postgres operator

Experiments & findings with the Zalando Postgres K8S operator.

May 1, 2021 •2 min read • K8s

Install Crunchy Data Postgres operator

Experiments & findings with the Crunchy Data Postgres K8S operator.

April 3, 2021 •1 min read • Docker

Nextcloud cron job

Nextcloud needs a cron job to function. Running docker, “cronjob” does not work. Here’s how to get the same result.

April 3, 2021 •1 min read • Nextcloud

Nextcloud out-of-memory PHP error

… and how to fix it.

March 23, 2021 •1 min read • Powershell

Powershell Script Base

A (the standard?) PowerShell function template.

March 15, 2021 •1 min read • Data Engineering

How to try Superset

Three lines from the Apache Superset docs, copied into this blog.

December 13, 2020 •1 min read • Apple

Install “legacy” brew on M1 apple silicon

Not everything works with brew and the new M1 – yet. So you might need the “classical” one.

November 19, 2020 •1 min read • Cloud: Azure

Azure App Service & Python, Part I

The title says it all.

July 8, 2020 •1 min read • Configuration

Install flutter on MacOS

The title says it all.

May 17, 2020 •2 min read • Rancher

Rancher 2.4+ installation notes

The title says it all.

May 6, 2020 •1 min read • Stuck

Homebrew, OpenSSL and PowerShell

How to (badly, insecurely) fix a really annoying bug using homebrew’s OpenSSL on macOS.

April 26, 2020 •1 min read • Linux

Ubuntu update procedure

The title says it all.

April 26, 2020 •1 min read • Fonts

Coding fonts

A list of coding fonts I like. (Maybe I’ll even update it from time to time)

  • 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