Create a new disk image with space pre-allocation (4000 MBytes):
fallocate -l 4000M virtual_usb.img
Create Ext4 file system:
mkfs -t ext4 virtual_usb.img
| # enable AMD IOMMU with DMA passthrough | |
| # note: iommu=pt is much faster than the default translated DMA since memory access doesn't need to go through the hypervisor | |
| sudo sed -i '1 s/$/ amd_iommu=on iommu=pt/' /etc/kernel/cmdline | |
| # list IOMMU groups | |
| # record the PCI IDs of all devices in the target group | |
| for d in /sys/kernel/iommu_groups/*/devices/*; do | |
| n=${d#*/iommu_groups/*}; | |
| n=${n%%/*}; | |
| test $n -eq $pn || printf '\nIOMMU Group %s\n' $n; |
| { | |
| "description": "UEFI firmware for x86_64, with Secure Boot and SMM", | |
| "interface-types": [ | |
| "uefi" | |
| ], | |
| "mapping": { | |
| "device": "flash", | |
| "executable": { | |
| "filename": "/usr/share/edk2-ovmf/x64/OVMF_CODE.secboot.fd", | |
| "format": "raw" |
Add, login to the App Store and select the application you want to install~/Library/Group\ Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets and wait until the TemporaryItems directory appears.ipa on your Apple Silicon (M1) device and install itsudo xattr -rd com.apple.quarantine /Applications/<your_app>.app (if you skip this step, you're unable to start the application)Note that it's easier if you already have the application installed, as Apple Configurator will prompt you about overwriting the existing installation, at which point the temporary file (the .ipa) will still exist, until you choose an action in the prompt.
The method described in this gist has been deprecated/superceeded by kiler129/early-vfio-pci-isolate tool.
It is more robust, configurable, and doesn't hack around scripts that are sometimes overwritten by system updates. The tool uses similar methods to the ones described below, but extends the capabilities by e.g. easy NVMe passthrough by S/N.
The description below has been preserved for historical context. At the time of writing, the tool above has been tested for ~6 months across multiple systems.
| #!/bin/bash | |
| #Script to save records by date to better organize your recordings | |
| #Use on : | |
| #mounted NFS SHARE VIA FSTAB or local folder. | |
| #The folder to save records is configured on Jibri json file (config.json. | |
| #Dependencies : mailutils | |
| RECORDINGS_DIR=$1 | |
| # Find latest modified directory |
This document was created back in 2020 and might not be actual nowadays. It is not supported anymore, so use thise information at your own risk.
wsl --set-default-version 2 in windows command line, so that all future WSL machine will use WSL2.In order for the LXC container to have full access the proxmox host directory, a subgid is set as owner of a host directory, and an ACL is used to ensure permissions.
Add the following line to /etc/pve/lxc/<CT_ID>.conf
mp0:/mount/point/on/host,mp=/mount/point/on/lxc
In the default Proxmox configuration, unpriviliged container subgids will have the prefix "10" followed by the expected 4-digit gid.
| // ==UserScript== | |
| // @name YouTube - Anti-Anti-AFK | |
| // @namespace larryc5 | |
| // @version 1.0 | |
| // @description Stops YouTube from automatically pausing the video. | |
| // @author Larry Costigan | |
| // @include /^https?:\/\/(?:[^\/?#]*\.)?youtube.com\/.*$/ | |
| // @downloadURL https://gist.githubusercontent.com/larryc5/95c3ae2abbd37b35e2a35ac2c49d9996/raw/youtube-anti-anti-afk.user.js | |
| // @updateURL https://gist.githubusercontent.com/larryc5/95c3ae2abbd37b35e2a35ac2c49d9996/raw/youtube-anti-anti-afk.meta.js | |
| // ==/UserScript== |