vernon.wenberg.net

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.

Latest Posts

Django Query Sets

2023-02-12

#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...

Python Code Snippets

2023-01-28

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...

Set git username and email address in Windows / VSCode

2023-01-25

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...

Create a .pfx/.p12 Certificate File Using OpenSSL

2022-11-09

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...

DB_VERSION_MISMATCH error when updating AlmaLinux 8 / RHEL 8 / Rocky Linux

2022-09-15

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...

Network Policy Server Notes

2022-07-18

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...

Disable the floppy drive module in Linux(Ubuntu)

2022-02-21

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...

Fix software updates in Cockpit in Ubuntu 20.04

2022-02-21

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...

Generate Certificate Signing Request (CSR) in Linux

2022-02-21

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....

Convert Aruba AP-325 from Campus mode to Instant mode

2022-02-02

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...

Enable Melanox Connect X support in OPNsense

2021-12-19

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...