Skip to content

Instantly share code, notes, and snippets.

Avatar

Reiner Rottmann rrottmann

View GitHub Profile
View atecc608a-i2c-notes.md

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 — forked from rduplain/README.md
Connect to MSSQL using FreeTDS / ODBC in Python.
View freetds-odbc-in-python.md

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 Mar 23, 2020
apt2sb.sh Skript
View apt2sb.sh
#!/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
Generate DSA key with openssl and inspect parameters
View gist:adc77e6b7abdaa3f1dd2d7e06e7b057d
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