Skip to content

Instantly share code, notes, and snippets.

@kobataiwan
kobataiwan / system-sleep-xhci.sh
Last active August 26, 2024 07:08 — forked from timrs2998/system-sleep-xhci.sh
Disable broken xhci device before suspend and avoid freeze.
#!/bin/sh
#
# This script should prevent the following suspend errors
# which freezes the Dell Inspiron laptop.
#
# Put it in /usr/lib/systemd/system-sleep/xhci.sh
#
# The PCI 00:14.0 device is the usb xhci controller.
#
# kernel: [67445.560610] pci_pm_suspend(): hcd_pci_suspend+0x0/0x30 returns -16
@tatsumoto-ren
tatsumoto-ren / subs.md
Last active May 22, 2025 12:17
Japanese Subtitles
@triangletodd
triangletodd / README.md
Last active May 6, 2025 11:38
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
@jpdenford
jpdenford / port-reachable.js
Last active September 3, 2024 14:02
NodeJS script to check if a machine & port is reachable (e.g. telnet debugging replacement on minimal alpine image)
// USAGE
// node port-reachable.js google.com 80
// NOTE: if you want to get the file onto a machine without a text editor then try
// `echo "<copy & paste code here>" > port-reachable.js`
const dns = require('dns')
const net = require('net')
/**