A crude, but effective solution for hosting local development projects inside WSL 2.
before you start
- node js is required
⚠️ this script changes your host file - save a copy of your host file before use
import Foundation | |
// Define the file path to save the CSV | |
let filePath = FileManager.default.homeDirectoryForCurrentUser.appendingPathComponent("bookmarks.csv") | |
// Create the CSV file if it doesn't exist | |
if !FileManager.default.fileExists(atPath: filePath.path) { | |
FileManager.default.createFile(atPath: filePath.path, contents: nil, attributes: nil) | |
} |
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string] $PythonVersion | |
) | |
$ErrorActionPreference = "Stop" | |
$ProgressPreference = "SilentlyContinue" | |
Set-StrictMode -Version Latest |
#!/bin/zsh | |
# Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3 | |
# Disabling unwanted services on macOS Big Sur (11), macOS Monterey (12) and macOS Ventura (13) | |
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery) | |
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist | |
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/* | |
# user |
#!/usr/bin/env bash | |
# | |
# Enable docker and docker-compose on TrueNAS SCALE (no Kubernetes) | |
# | |
# This script is a hack! Use it at your own risk!! | |
# Using this script to enable Docker is NOT SUPPORTED by ix-systems! | |
# You CANNOT use SCALE Apps while using this script! | |
# | |
# 1 Create a dedicated Docker dataset in one of your zpools |
# Example docker-compose.yml for plex. | |
version: "2" | |
services: | |
plex: | |
image: plexinc/pms-docker:plexpass | |
runtime: nvidia | |
container_name: "plex" | |
restart: always | |
hostname: "MY-PLEX" | |
volumes: |
Modern versions of Windows support GPU paravirtualization in Hyper-V with normal consumer graphics cards. This is used e.g. for graphics acceleration in Windows Sandbox, as well as WSLg. In some cases, it may be useful to create a normal VM with GPU acceleration using this feature, but this is not officially supported. People already figured out how to do it with Windows guests though, so why not do the same with Linux? It should be easy given that WSLg is open source and reasonably well documented, right?
Well... not quite. I managed to get it to run... but not well.
The TrueNAS installer doesn't have a way to use anything less than the full device. This is usually a waste of resources when installing to a modern NVMe which is usually several hundred of GB. TrueNAS SCALE will use only a few GB for its system files so installing to a 16GB partition would be helpful.
The easiest way to solve this is to modify the installer script before starting the installation process.
In this document, I will explain how to setup apcupsd
on Ubuntu 18.04 and 20.04.
I'll only document USB
connected UPS and not the other supported connection modes.
If you have followed my previous gist related to nut
, I'd serisouly recommend you to cleanup everything before continuing this gist.