a mostly private knowledge repository
Note: These posts are notes for me. These are not guides and you should not use these instructions as step-by-step instructions without knowing what they do.
This is the method that can be used to allow SSH connections from certain IP networks. An example use for this is allowing SSH from certain public IP networks, as well as from my Tailscale network....
Use the following iptables command to rate limit connections per IP. This is useful for preventing a DDoS attack on DNS servers. However, for DDoS protection for your DNS servers, you should be...
When using yarn through the apt repo, the key might expire, giving you the following error when updating apt. W: An error occurred during the signature verification. The repository is not updated and...
#Import the models from .models import Model Name #all() Retrieves all objects from table queryset = Model Name. objects.all() #get(attribute='value') Retrieve a single object based on matched...
List of files, just filenames, no directories. filenames_no_dirs = next(os.walk(directory))[2] List files, no directories, full path. filenames = [os.path.join(directory, fn) for fn in...
After installing Git for Windows , a username and email address has to be set or VSCode will give you the following error: To add your username and email address, open up a terminal. I used...
Source: https://www.ssl.com/how-to/create-a-pfx-p12-certificate-file-using-openssl/ The PKCS#12 or PFX format is a binary format for storing the server certificate, any intermediate certificates, and...
When trying to update the operating system, you might receive an error similar to the following ... error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment...
View the status of logging auditpol /get /subcategory:"Network Policy Server" Enable logging auditpol /set /subcategory:"Network Policy Server" /success:enable /failure:enable Disable logging...
Sometimes Linux will mistakenly detect a floppy device and create a reference to it because your system does not actually have a floppy drive and you will see errors on the login screen that look...
Software updates on the Ubuntu system will fail because Cockpit on Ubuntu doesn't detect a network connection. To fix this, you must use NetworkManager instead of the default networkd. You need to be...