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.
#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...
openssl req -new -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr Replace domain with your domain. domain.csr is what is used by your certificate authority to generate your certificate....
There are two versions of the Aruba AP-325. One version is the Campus AP that has 256MB of RAM. The other version is the Instant-AP with 512MB of RAM. Campus APs that are converted to Instant APs are...
Support for Mellanox Connect-X NICs aren't enabled on OPNsense by default. The following line has to be added to /boot/loader.conf.local . mlx4en_load="YES" However this did not work for me and I had...