Skip to content

Instantly share code, notes, and snippets.

@Blizzke
Blizzke / meteor-lake-be200-linux.md
Created May 5, 2026 17:46
Stable Linux on Intel Meteor Lake + Intel Wi-Fi 7 BE200

A working setup recipe for laptops with Intel Meteor Lake CPUs and Intel Wi-Fi 7 BE200, after losing significant time to two well-known but interlinked kernel bugs. Written 2026-05-05 from a Manjaro install but the workarounds are distro-agnostic — only the package/file paths differ.

TL;DR

If you have:

@Blizzke
Blizzke / restic.sh
Last active December 31, 2024 18:15
restic.sh - restic wrapper script with 1password support (and fallback on files if not available). Support for password/exclude and env.
#!/usr/bin/env bash
# The 1password entries are expected like this: (imagine a plex server from which we want to backup /etc - repository "etc" - and /var/lib/plexmediaserver - repository "library"):
# [plex] <- 1password section, indicating the host/device
# password <- host global password entry (used for all repo's on this host unless overwritten)
# backup <- arguments when the backup subcommand is used, for all repositories under this host (for example "--host plex")
# env <- env for the host (defined before the repo specific one). KEY=VALUE
# forget <- arguments when the forget subcommand is used, for all repositories under this host (eg. "--prune --keep-daily=30")
# etc/password <- dedicated password for "etc" repository
# etc/exclude <- text field that contains the contents for the exclude-file when backing up
@Blizzke
Blizzke / adb_touch.py
Last active June 6, 2020 10:11
Correct create and modify times of the images/videos based on the filename on my new android device
import subprocess
from subprocess import PIPE
if __name__ == '__main__':
source = '/storage/self/primary/DCIM/Camera'
files = subprocess.run(["/usr/local/bin/adb", "shell", f"ls -1 {source}"], check=False,
stdout=PIPE).stdout.splitlines()
print(f'{len(files)} files found.')
import re

Keybase proof

I hereby claim:

  • I am blizzke on github.
  • I am blizzke (https://keybase.io/blizzke) on keybase.
  • I have a public key ASABLAxysPWgs1OW_d-KGnfjYnkmsmUiEJMwb__bIU5M9go

To claim this, I am signing this object:

@Blizzke
Blizzke / flash.sh
Last active January 31, 2021 14:38
OctoPrint CLI flasher for Prusa MK2, MK3 and MMU2
#!/usr/bin/env bash
#
# This script was created to flash firmwares for the MK2, MK3 and the MMU2,
# all from the command line of your OctoPrint installation.
#
# The script assumes that you have avrdude and jq installed on your raspbian and that you
# have filled the API key below.
#
# Usage: flash.sh mk2|mk3|mmu2 firmware.hex
@Blizzke
Blizzke / Dockerfile.m4
Created August 31, 2018 05:22
Dockerfile "includes"
FROM debian
include(base.m4)
RUN APT_GO \
&& APT_INSTALL screen \
&& APT_CLEANUP
@Blizzke
Blizzke / docker-alias.php
Last active October 10, 2016 11:58
The new Docker OSX opens up all ports on localhost. This means you'll have to add port numbers to urls etc. This hackisch gist creates an aliased IP on the `lo` interface and links the source ports from all containers to it. This means that you can use port 80 or so for a website and 3306 for mysql even if those are in use on the host.
<?php
/**
* The new docker for OSX opens all ports on the OSX lo0 interface.
* This means you are forced to use urls like http://localhost:32580/ for your site.
* This script adds an alias IP to the lo0 interface (one you configure via the environment / .env file or by
* modifying the configuration below).
* Based on docker-compose "rules" it tries to guess the network created for the current folder so that
* it can use the docker inspect functionality to obtain all related containers and the ports they provide.
* Finally it uses the `socat`-tool to proxy ports on that virtual IP to the original port on localhost.
*/
$ docker-compose logs
Attaching to v119maandcom_info_1, v119maandcom_web_1, v119maandcom_phphaproxy_1, v119maandcom_worker_1, v119maandcom_mariadb_1, v119maandcom_phpha_1, v119maandcom_phpfiles_1, v119maandcom_mysql_1, v119maandcom_percona_1, v119maandcom_mailcatcher_1, v119maandcom_mongodb_1, v119maandcom_redisphpsessionhandler_1
mongodb_1 | 2016-01-30T10:49:24.323+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=dd279018b1ba
mongodb_1 | 2016-01-30T10:49:24.324+0000 I CONTROL [initandlisten] db version v3.2.0
mongodb_1 | 2016-01-30T10:49:24.324+0000 I CONTROL [initandlisten] git version: 45d947729a0315accb6d4f15a6b06be6d9c19fe7
mongodb_1 | 2016-01-30T10:49:24.324+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1e 11 Feb 2013
mongodb_1 | 2016-01-30T10:49:24.324+0000 I CONTROL [initandlisten] allocator: tcmalloc
mongodb_1 | 2016-01-30T10:49:24.324+0000 I CONTR
# -*- mode: ruby -*-
# vi: set ft=ruby :
HOSTNAME = "irrelevant.dev" # VM/nginx hostname
IP = "172.16.190.10" # One of the IPs of your host only virtualbox network
SSHPORT = 12222 # Set to a custom port, not taken on your machine
Vagrant.configure(2) do |config|
config.vm.box = "internal-dvp"
config.vm.box_url = "http://internal.url/base.box"
ERROR::FINDSUBTITLES::Exception generated in thread FINDSUBTITLES: Index must be int or string
DEBUG::FINDSUBTITLES::'
Traceback (most recent call last):
File "/volume1/@appstore/sickbeard-custom/var/SickBeard/sickbeard/scheduler.py", line 109, in run
self.action.run(self.force)
File "/volume1/@appstore/sickbeard-custom/var/SickBeard/sickbeard/subtitles.py", line 446, in run
\'searchcount\'] < 7 and now - datetime.datetime.strptime(epToSub[b\'lastsearch\'],
IndexError: Index must be int or string'