Skip to content

Instantly share code, notes, and snippets.

View rrottmann's full-sized avatar

Reiner Rottmann rrottmann

View GitHub Profile
@rrottmann
rrottmann / dist-upgrade-buster-to-bookworm.sh
Last active December 19, 2024 09:13
Dist-Upgrade Debian 10 Buster to Debian 12 Bookworm
# Debian 10
apt-get -y update
apt-get -y upgrade --without-new-pkgs
apt-get -y full-upgrade
cat > /etc/apt/sources.list <<"EOF"
deb http://deb.debian.org/debian/ bullseye main
deb-src http://deb.debian.org/debian/ bullseye main
deb http://security.debian.org/bullseye-security bullseye-security/updates main
deb-src http://security.debian.org/bullseye-security bullseye-security/updates main
@rrottmann
rrottmann / atecc608a-i2c-notes.md
Last active January 10, 2024 06:16
ATECC608A I2C Notes

ATECC608A I2C Notes

Here be dragons

WARNING: AS THE DEVICE CAN BE CONFIGURED ONLY ONCE, PLEASE BE WARNED THAT YOU MIGHT EASILY BRICK THE CHIP! USE AT YOUR OWN RISK!

Circuit

Please make sure to use proper circuit for ATECC608A with pullups and decoupling capacitors when hooked to a MCU. A Raspberry Pi might also work without external components just using internal pullups.

@rrottmann
rrottmann / freetds-odbc-in-python.md
Last active May 25, 2020 05:12 — forked from rduplain/README.md
Connect to MSSQL using FreeTDS / ODBC in Python.

Goal: Connect to MSSQL using FreeTDS / ODBC in Python.

Host: Ubuntu 11.10 x86_64

Install:

sudo apt-get install freetds-dev freetds-bin unixodbc-dev tdsodbc
pip install pyodbc sqlalchemy

In /etc/odbcinst.ini:

@rrottmann
rrottmann / apt2sb.sh
Created March 23, 2020 14:46
apt2sb.sh Skript
#!/bin/bash
# From: https://groups.google.com/forum/#!searchin/slax-users/chroot%7Csort:date/slax-users/3nsx5a8bu8s/UCZpn6X2BgAJ
TMP=/tmp/tmpfs$$
CHANGES=$TMP/changes
UNION=$TMP/union
BUNDLES=/run/initramfs/memory/bundles/
INSTALL="$1"
[ -n "$INSTALL" ] || exit
@rrottmann
rrottmann / gist:adc77e6b7abdaa3f1dd2d7e06e7b057d
Last active May 30, 2018 15:04
Generate DSA key with openssl and inspect parameters
d=`mktemp -d`
cd $d
openssl dsaparam -genkey 2048 -out private.pem
Generating DSA parameters, 2048 bit long prime
This could take some time
.+....+.......+............+.......+....................+..........+.+...........+....................................+.+....+..........+......+.....+..................+.+...+..+........................+++++++++++++++++++++++++++++++++++++++++++++++++++*
...+.......................+........+........+...................+.+.......................+............+..........+..+....+....+..+....................+...............+..............+........+......+..+.........+..+.+.................................+..+..+..............+.+...........+........+........+.......+...+..+..+................+..............+++++++++++++++++++++++++++++++++++++++++++++++++++*
ls -l private.pem
-rw-r--r-- 1 pi pi 2044 May 30 16:40 private.pem