Skip to content

Instantly share code, notes, and snippets.

@foxt
foxt / pvesh.js
Created June 10, 2023 01:34
SSH-like command to connect to a Proxmox node
const ws = require("ws")
var user,host,node;
var connString = process.argv[2]
try {
user = connString.split("@")[0]
host = connString.split("@")[1].split("!")[0]
node = connString.split("@")[1].split("!")[1]
if (!user || !host || !node) throw new Error("Invalid connection string")
@packerdl
packerdl / lxc_plex_intel_quicksync.md
Last active April 28, 2024 13:43
Intel QuickSync passthrough to an unprivileged LXC container running plex.

Running Plex in an Unprivileged LXC with Intel QuickSync Passthrough

First setup an unprivileged Ubuntu container with Plex Media Server installed. Inside the container take note of the id of the plex group.

# Your Plex group's ID may be different
$ getent group plex | cut -d : -f3
998
@jazzsequence
jazzsequence / end.gcode
Last active December 27, 2022 10:45
Start and End G-code for Ender 5 on Cura
; Ender 5 Custom End G-code
G4 ; Wait
M220 S100 ; Reset Speed factor override percentage to default (100%)
M221 S100 ; Reset Extrude factor override percentage to default (100%)
G91 ; Set coordinates to relative
G1 F1800 E-3 ; Retract filament 3 mm to prevent oozing
G1 F3000 Z20 ; Move Z Axis up 20 mm to allow filament ooze freely
G90 ; Set coordinates to absolute
G1 X0 Y220 F1000 ; Move Heat Bed to the front for easy print removal
M106 S0 ; Turn off cooling fan
@tavinus
tavinus / rem_proxmox_popup.sh
Last active February 27, 2024 22:47
Remove PROXMOX 5.x / 6.x / 7.3-4 subscription message popup
#!/bin/sh
#######################################################
#
# Edits the proxmox Subscription file to make it
# think that it has a Subscription.
#
# Will disable the annoying login message about
# missing subscription.
#
@cinsk
cinsk / check-nfs.sh
Last active January 20, 2023 22:27
Check if NFS mounted directory is stale
#!/bin/bash
PATH=/bin:/usr/bin:/usr/local/bin
check-nfs () {
local TMPFILE=/tmp/checknfs.$$ RET=0 ORPHAN SUBSHELLPID
if [ "$#" -eq 0 ]; then
cat<<EOF
usage: check-nfs NFS-DIRECTORY...