blog of stigok
Posts
2022
09 Jun
Dynamic native browser autocompletion with JavaScript and Vue 3
05 Apr
Using conditional dynamic blocks in Terraform
09 Mar
Access the Azure Storage REST API using an OAuth2 bearer token
08 Feb
Parsing boolean string statements in bash
2021
31 Dec
Helpful bash aliases for git
16 Nov
Go incoming http.Request - the Host header is gone!
30 Oct
Rendering Go struct tags other than json with oto code generation
27 Sep
International chars (UTF-8) not displaying properly over SSH
14 Jul
Numbering the filenames when downloading multiple files with cURL
09 Jun
Choose what Python linters are used for Syntastic plugin in Vim
04 May
How to make wpa_cli work in NixOS
27 Apr
Protecting a Kubernetes ingress for ingress-nginx with HTTP basic auth using Terraform
31 Mar
Querying metrics from the Kubernetes API using the official golang Kubernetes client
28 Feb
SSL EOF errors with Python 3 SQLAlchemy and managed cloud Postgres database
31 Jan
Configure Kubernetes deployment secrets in GitHub Actions with Terraform
2020
04 Dec
Buffered read split by two consecutive newlines using bufio.Scanner in Go
28 Nov
Change partition or logical volume (LV) order in LVM
27 Oct
Custom keyboard layout in Wayland like Xmodmap in X11
20 Sep
A Python object type that supports both dict and dot value getter
06 Sep
Storing a Python dict as JSON in SQLite using SQLAlchemy
31 Aug
Building my Jekyll blog in Docker using Ubuntu
29 Aug
Capture output of running a shell command in Ruby
27 Aug
Python 3: pitfalls, tips and tricks
20 Jun
Setup a browser kiosk in NixOS with Xorg and Openbox
29 Apr
Honda CB500 T 1996 motorcycle upgrade notes
16 Apr
Overriding an existing Perl package in NixOS
07 Mar
My (expanding) list of usage notes for Nix, NixOS and NixOps
19 Feb
Rate limiting requests to an app that is (reverse) proxied behind nginx
06 Feb
Different query results with single and double quotes in InfluxDB queries
26 Jan
Using watchdog and sd-notify functionality for systemd in Python 3
2019
14 Dec
Print a PDF on a printer without CUPS or other driver
09 Dec
Publish a service with Avahi on NixOS
05 Nov
Packaging an executable Python script nicely in Nix for NixOS
10 Oct
Create a Windows 8 bootable USB stick from an ISO on Linux
09 Oct
Update firmware of Samsung EVO 840 and 850 SSD drives on Linux
14 Sep
Alter Postgres 9.4 configuration options using official postgres docker image
03 Sep
Prepare a headless Raspberry Pi 3 with Arch Linux ARM to connect to WiFi
21 Aug
Retrieve or backup Android (LineageOS) contacts with adb
06 Aug
Using libnfc bindings in Golang with an ACR122U-A9 tag reader
05 Jul
My jump into golang (notes)
22 Jun
Generating random color codes in Python 3
07 Jun
Using Scaleway's Object Storage S3 API with boto3 in Python 3
30 Apr
Running WoW 1.12 on Arch Linux with wine and nvidia with a NVIDIA GeForce 9800 GTX
30 Apr
Verify a string consists strictly of a substring of itself in javascript
14 Apr
Adjust auto close hours for Discourse post topics
26 Mar
Use Raspberry Pi as WiFi AP and route traffic through Wireguard (port 53)
23 Feb
The working, but not great, Jekyll comment plugin development story
21 Feb
Booting with systemd-boot hangs on black screen with white caret
21 Feb
Updating and applying default GRUB settings in CentOS 7
11 Feb
Write a custom bash completion script for tmux attach
19 Jan
Travel tips for bad internet connections
2018
30 Nov
Read image version from environment or file inside Docker image in a running container
31 Oct
Test an SMTP server from commandline using telnet
24 Oct
Extracting substring in bash by matching
08 Oct
Setting up a WireGuard VPN server on CentOS
17 Sep
Stream audio over network with PulseAudio running on Raspberry Pi
03 Sep
Define imagePullSecrets on the default service account in kubernetes namespace
25 Aug
Basic authentication for everyone except localhost in nginx
12 Jul
DNS lookups times out and unbound trust anchors DNSKEY rrset is not secure
25 Jun
Terraform provider kubernetes - system:anonymous cannot create services in the namespace
21 Jun
Using docker-compose build and push in Bitbucket Pipelines
19 Jun
Verify TLS certificates for DNS over TLS connections in unbound
13 Jun
Troubleshooting AWS EKS kubectl with heptio-authenticator
13 Jun
Flash ESP8266 firware over the air (OTA) with espota.py
12 Jun
Update Kubernetes Dashboard in Azure Container Service
04 Jun
Update EFI boot entries with UEFI shell
01 Jun
Build Arduino sketches from command-line and flash to ESP8266 from Pi
31 May
Creating a Kubernetes cluster in Azure CLI
31 May
Surprised when sed replacing a token with a URI
13 May
Update BIOS on a Thinkpad with Linux
03 May
LVM in LUKS with encrypted boot and suspend-to-disk
27 Apr
This is now a Jekyll blog
24 Apr
Trigger Caps Lock in Linux from the terminal
22 Apr
Use a custom built provider with Terraform
22 Apr
Self healing reverse SSH setup with systemd
13 Apr
Terraform staging environment
09 Apr
Terraform secret creation invalid character looking for beginning of value
08 Apr
Make rsyslog container aware remove pidfile on start
15 Mar
Kubernetes non dynamic persistent volumes and claims
27 Feb
kubectl proxy error connection refused and too many open files
23 Feb
Re-encrypt LUKS boot partition
10 Feb
Python 3 assert statements
09 Feb
Polybar jsoncpp cannot open shared object file
05 Feb
Example mongodb ObjectID string
01 Feb
kafka-python verify that a topic exists
31 Jan
Docker login invalid username or password
31 Jan
Robomongo (Robo-3T) high DPI settings for Linux and Mac
31 Jan
Experiences with the Wanhao i3 Duplicator
03 Jan
Start zookeeper listening on localhost only
03 Jan
Generate password hash for ASP.NET Identity authentication
2017
30 Dec
Decrypt and mount LUKS disk from GRUB rescue mode
28 Dec
OpenVPN revoke client certificate
27 Dec
Clone corrupted SD-card and ignore read errors
25 Dec
Vim indentation for specific file type extensions
25 Dec
kafka-python no broker available with kafka on localhost
14 Dec
passwordstore passdemenu and type automatically in i3wm
13 Dec
Notes on cryptsetup LUKS2 format
04 Dec
Create bootable USB drive with ThinkPad Drive Erase Utility on Linux
04 Dec
My Arch Linux installation notes
02 Dec
Combining bash scripts and Node.js process streams
30 Nov
Watch dump dhcp requests on local network
30 Nov
Adding an ethernet port to a Raspberry Pi Zero
28 Nov
Split text on whitespace in terminal output
28 Nov
Get numeric (octal) permissions of a file or directory
12 Nov
Test if string is an IP address in Node.js
07 Nov
arch linux gcc 32-bit libraries c assembly
06 Nov
tail follow file logrotate
01 Nov
yank more than 50 lines in vim
30 Oct
ssh directly into tmux
24 Oct
Increase 5v rail amp output on Raspberry Pi 3/Zero
23 Oct
An old warrior
20 Oct
Dump all incoming queries of mysql database
19 Oct
Remember last used directory across sessions in bash
19 Oct
Re-save iptables rules with iptables-persistent
16 Oct
Xerox WorkCentre 7425 7428 7435 default admin password
14 Oct
Raspberry Pi 3 ffmpeg with audio input audioinjector stereo hat
12 Oct
Setting up a PN532 NFC module on a Raspberry Pi using I2C
12 Oct
Enable SSH server sshd on raspbian
03 Oct
life tips
03 Oct
gulp generate pug templates from JSON array
02 Oct
gulp pug with template filename as local data at compile time
19 Sep
system wide pager settings for less on ubuntu
18 Sep
curl only write to file if successful status 200
13 Sep
Allow both HTTP and HTTPS and multi domain in CORS header on nginx
07 Sep
Export PostgreSQL table data as JSON with psql
30 Aug
Set default application for MIME type with xdg-mime
30 Aug
List of useful PostgreSQL commands
30 Aug
Restore PostgreSQL database in Docker container
29 Aug
Manage remote Postgres SQL database with Docker
28 Aug
Docker compose fails with oci runtime error container_linux.go:262
14 Aug
Multi-monitor setup with i3 and xrandr on arch linux
14 Aug
Disable urxvt ISO14755 mode yellow box on ctrl+shift
01 Aug
Redirect debug output of bash script to file
30 Jul
Pipe video stream from raspberry pi to local computer with ffplay
28 Jul
Capture groups with grep perl regular expression
27 Jul
Convert JPG to PDF with ImageMagick
27 Jul
Substring extraction in bash
21 Jul
Testing all substrings of a password for basic auth with curl
16 Jul
Set up your own what is my ip service with just nginx
16 Jul
Piping mongoose document to Node.js response stream
12 Jul
Debug helpers in bash
12 Jul
Mounting filesystem in ram with tmpfs
10 Jul
Norwegian keys on US keyboard layout with .Xmodmap
07 Jul
Useful commands to Cisco 3560/3650E
30 Jun
Serve multiple subdomains with different root single config nginx
27 Jun
Recovering from btrfs errors
26 Jun
Express.js can't set headers after they are sent
25 Jun
No need for gvfs-trash to delete files in Atom (Electron)
24 Jun
What binaries does a program supply? (pacman)
22 Jun
How to test passphrase of openssl rsa certificate keyfile
13 Jun
Unable to log into ssh after useradd new user
12 Jun
CLI create new issue for git repo on private Gogs server from command line
05 Jun
Setting up wireless network on a Raspberry Pi 3 with Arch Linux Arm armv7h
04 Jun
ssh-copy-id using a different key than what I want
03 Jun
Update group membership Linux
01 Jun
Flashing SD card with Arch Linux ARM for Raspberry Pi 2 and 3
24 May
Override Atom editor ctrl+tab and ctrl+shift+tab shortcuts
24 May
Disable pug debug output with express.js web app
23 May
Zhone 6618-W1-xx wireless dsl gateway router default password
22 May
dnsmasq dhcp not handing out addresses
15 May
Blink the ethernet port of your network card linux
14 May
pic2re
13 May
urxvt backspace and other control keys not working on remote host in ssh
12 May
Remove package with dependencies arch pacman yaourt
09 May
Canyon CN-WCAM21 webcam with ffmpeg
03 May
Obfuscate email addresses using the HTML bidirectional override element
22 Apr
bro
20 Apr
Logging out of HTTP basic auth
19 Apr
nginx set location of /favicon.ico
19 Apr
777
11 Apr
ansi abstract art
06 Apr
SCSS lighten function
06 Apr
Gulp terminal bell
05 Apr
Troubleshooting bluescreen of death ntoskrnl.exe Windows 7
02 Apr
Problems with Chromecast in Chromium on Linux (working!)
31 Mar
freenode IRC bot SASL login
28 Mar
Gogs: Key access denied with SSH
27 Mar
Roll your own NetworkManager connectivity check endpoint with nginx
26 Mar
WiFi loses connectivity periodically wpa_supplicant reason 4
23 Mar
Automatically redirect to HTTPS in nginx
23 Mar
Default MIME type to use when serving files nginx
23 Mar
Current system time in hex
23 Mar
Format disk for Windows, Mac and Linux on Linux
21 Mar
drake said it
15 Mar
Plans
15 Mar
Setting up fail2ban on Ubuntu Server 16.04 Xenial
15 Mar
Persistently disable wlan powersaving in NetworkManager
14 Mar
this album
14 Mar
I know regex
13 Mar
Node executable on Windows mingw 'output is not a tty'
13 Mar
Import LastPass passwords csv to linux pass
11 Mar
Setting up a dhcp server with dnsmasq
10 Mar
Configure docker to use an HTTP proxy server
08 Mar
What is the git.io link pointing to?
07 Mar
Installing kubernetes and weave on a blade server cluster (unfinished)
07 Mar
time is fast
07 Mar
Display open shared files Windows
07 Mar
ufw allow rules on multiple interfaces
07 Mar
gpg refresh keys failed
06 Mar
Lost password to gogs git server docker instance
06 Mar
Failed to send 300 byte long packet over fallback interface (dhclient)
06 Mar
Unlock bootloader Asus Zenpad Z170CG (P01Y)
26 Feb
Run a command every n seconds in bash shell
26 Feb
Getting started with tmux
26 Feb
Install a package from local directory in Atom
26 Feb
Generating a pseudorandom password or string in Linux bash
This work is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
.