This are some notes around the use of secrets.py in CircuitPython.
Today CP examples suggest a secrets.py
files for storing passwords, SSIDs, keys, etc as a dictionary.
File: secrets.py
using namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module PSReadLine | |
} | |
#Import-Module PSColors | |
#Import-Module posh-git | |
Import-Module -Name Terminal-Icons |
Make sure there is at least one file in it (even just the README.md)
ssh-keygen -t rsa -C "[email protected]"
Accessing a subnet that is behind a WireGuard client using a site-to-site setup
We want to access a local subnet remotely, but it is behind a NAT firewall and we can't setup port forwarding. Outgoing connections work, but all incoming connections get DROPPED by the ISP's routing policy.
#!/bin/bash | |
echo "Password for Samba User 'snippets':" | |
read -s smb_password_snippets | |
echo "Password for S3 User 'admin':" | |
read -s s3_password_admin | |
echo "Password for S3 User 'dev' (min-length: 8):" | |
read -s s3_password_dev | |
echo "Password for S3 User 'api' (min-length: 8):" | |
read -s s3_password_api | |
wget -O /usr/local/bin/minio https://dl.min.io/server/minio/release/linux-amd64/minio |
adminer_container: | |
image: adminer:latest | |
environment: | |
ADMINER_DEFAULT_SERVER: thomasd_ignitionDev_db # Docker Compose db name | |
ADMINER_DESIGN: galkaev | |
ports: | |
- 21080:8080 # change port |
#cloud-config | |
package_upgrade: true | |
ssh_authorized_keys: | |
- <your key> | |
packages: | |
- apt-transport-https | |
- ca-certificates | |
- curl |