Skip to content

Instantly share code, notes, and snippets.

@svenk
svenk / Wie groß ist SIETE (Hemmes Mathematisches Rätsel).ipynb
Created May 12, 2022 12:16
Wie groß ist SIETE (Hemmes Mathematisches Rätsel)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@svenk
svenk / shell.sh
Created May 15, 2023 06:48
Fancy Demo Video Background for anabrid
# First, open https://anabrid.com/background/
# second, run this in terminal
# change sleep 10 to sleep 1 for more movement or the other way around.
while sleep 10; do xdotool mousemove $(shuf -i 1-3000 -n1) $(shuf -i 1-3000 -n1); done
@svenk
svenk / resolve-refs.py
Created July 12, 2023 20:44
Recursive Ref Resolver for OpenAPI
#!/usr/bin/env python3
# somewhat related to https://github.com/openapi-generators/openapi-python-client/issues/466
from openapi3 import OpenAPI
import yaml
import posixpath, re
import requests
from pathlib import Path
@svenk
svenk / ilo-reset.sh
Created August 28, 2023 08:14
HP ILo reset factory default from live linux
#!/bin/bash
# This script can run on GRML and allows the installation of the HP Integrated Lights Out (ILo)
# managament utility to reset the tools password.
wget http://downloads.linux.hpe.com/SDR/repo/mcp/pool/non-free/hponcfg-5.6.0-0_amd64.deb
apt-get update
apt-get install xsltproc
apt-get install ./hponcfg-5.6.0-0_amd64.deb