Install the OpenSSL on Debian based systems
sudo apt-get install openssl
# https://github.com/cabo/stlink | |
# https://blog.danman.eu/2-usb-crypto-token-for-use-with-gpg-and-ssh/ | |
sudo ./upgrade_by_passwd.py -f ../regnual/regnual.bin ../src/build/gnuk-vidpid.bin | |
sudo st-flash erase && st-flash --reset write ~/src/gnuk/src/build/gnuk-vidpid.bin 0x08000000 | |
-- or -- | |
~/src/stlink/build/Debug/st-flash reset && \ | |
~/src/stlink/build/Debug/st-flash erase && \ |
version: "3.7" | |
volumes: | |
kong_data: {} | |
networks: | |
kong-net: | |
services: |
#!/bin/bash | |
CANAME=$1 | |
#CANAME=Daedalus | |
if [[ -z "$CANAME" ]]; then | |
echo "Usage: $0 <CA name>" | |
exit 1 | |
fi | |
# optional, create a directory |
""" | |
client.py - AsyncIO Server using StreamReader and StreamWriter | |
This will create 200 client connections to a server running server.py | |
It will handshake and run similar to this: | |
Server: HELLO | |
Client: WORLD |
COMPOSE_PROJECT_NAME=myproject | |
# Redis | |
REDIS_HOSTNAME=redisdb.local | |
REDIS_PORT=6379 | |
REDIS_PASSWORD= | |
# Rabbitmq | |
RABBITMQ_HOSTNAME=rabbitmq.local | |
RABBITMQ_USERNAME=root |
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
import logging | |
import logging.config | |
import os | |
import config | |
LOGGING_CONFIG = { | |
"version": 1, |
/* | |
* File: sockets.h | |
* Author: Will Eccles | |
* Date: 2020-03-12 | |
* | |
* 1. Description | |
* | |
* This header attempts to make it easy to use sockets across platforms, | |
* for both Windows and POSIX systems. While Winsock is often somewhat | |
* compatible with Berkeley sockets, it is not strictly compatible, |