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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
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:
WARNING: AS THE DEVICE CAN BE CONFIGURED ONLY ONCE, PLEASE BE WARNED THAT YOU MIGHT EASILY BRICK THE CHIP! USE AT YOUR OWN RISK!
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dist-Upgrade Debian 10 Buster to Debian 12 Bookworm | |
# Debian 10 | |
apt-get -y update | |
apt-get -y upgrade | |
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/debian-security stable-security/updates main |