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 |
#cloud-config | |
package_upgrade: true | |
ssh_authorized_keys: | |
- <your key> | |
packages: | |
- apt-transport-https | |
- ca-certificates | |
- curl |
I woke up, started my laptop, and I got laptop poweroff just after booting. My Carbon X1 (7th generation) is only 2 months | |
old. Not really best way to start a day. | |
Solution: | |
1. Power off your lap top | |
2. Find this little reset button on the bottom of your laptop | |
3. Hold for five seconds let go; plug laptop back | |
4. Hit power button |