This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.
Step 1 - Enable NBD on the Host
modprobe nbd max_part=8
; Reference - https://www.mpselectmini.com/starting_ending_g-code_scripts | |
M400 ; wait for pending commands to finish | |
M104 S0 ; turn off hotend/extruder heater | |
M140 S0 ; turn off bed heater | |
G91 ; set to relative positioning | |
G1 E-2 F300 ; retract the filament a bit before lifting the nozzle to release some of the pressure | |
G1 Z1 ; raise Z 1mm from current position | |
G1 E-2 F300 ; retract filament even more | |
G90 ; set to absolute positioning | |
G1 X20 ; move X axis close to tower but hopefully far enough to keep the fan from rattling |
If you've built ffmpeg as instructed here on Linux and the ffmpeg binary is in your path, you can do fast HEVC encodes as shown below, using NVIDIA's NPP's libraries to vastly speed up the process.
Now, to do a simple NVENC encode in 1080p, (that will even work for Maxwell Gen 2 (GM200x) series), start with:
ffmpeg -i <inputfile> -pass 1 \
-filter:v hwupload_cuda,scale_npp=w=1920:h=1080:format=nv12:interp_algo=lanczos,hwdownload,format=nv12 \
-c:v hevc_nvenc -profile main -preset slow -rc vbr_2pass \
Streaming your Linux desktop to Youtube and Twitch via Nvidia's NVENC and VAAPI:
Considerations to take when live streaming:
The following best practice observations apply when using a hardware-based encoder for live streaming to any platform:
Set the buffer size (-bufsize:v
) equal to the target bitrate (-b:v
). You want to ensure that you're encoding in CBR mode.
Set up the encoders as shown:
1. Setup ODBC on your Mac (including Apple Silicon)
Install brew
unixodbc
package from brew
works for Apple Silicon
cat /var/log/install.log
...
2022-04-26 22:50:21+03 tsarenkotxt installd[1641]: PackageKit: Extracting file:///var/folders/8x/_h18ksqn64dgswlstgcd_fw40000gn/C/com.apple.appstoreagent/com.apple.appstore/0C4C5EA3-A445-4CF0-9E44-37938052A4D9/kwb3255311556092828694.pkg#Xcode.pkg (destination=/Library/InstallerSandboxes/.PKInstallSandboxManager/7A629BA6-7537-469C-8C19-C74DD52245A1.activeSandbox/Root, uid=0)
2022-04-26 23:03:05+03 tsarenkotxt installd[1641]: PackageKit: Removing client PKInstallDaemonClient pid=3827, uid=501 (/System/Library/PrivateFrameworks/AppStoreDaemon.framework/Support/appstoreagent)
The instructions for setting up the Unifi Controller on ARM do not cover ARM64. The documentation states that ARM64 is not supported but hints it can be setup manually. The documentation also states that Java 8 is currently required. The following is therefore clearly in unsupported territory but so far seems to work fine. The internet has numerous references and resources but they weren't all easy to find and the ones I read required some modification for my configuration.
Note for the future: double check versions and source documentation if these instructions are dated. Also these instructions are specifically tailored for Ubuntu. See original references for other platforms.
Last update March 25, 2021
--- | |
blueprint: | |
name: Renew Let's Encrypt Certificate | |
description: Renew Certificate when due date is below given value | |
domain: automation | |
input: | |
cert_expiry_sensor: | |
name: Certificate Expiry Sensor | |
description: Sensor from the Certificate Expiry Integration (https://www.home-assistant.io/integrations/cert_expiry) | |
selector: |
I am assuming you are here because like me, you installed a bazillion different python interpreters on mac and the whole thing is a spagetti. Today, I finally fixed my python installation. Whatever I install for python2 or python3 using pip JUST.WORKS.. My god! finally.
Here is what I had messed up, which you also probably did: