cat /proc/sys/net/bridge/bridge-nf-call-iptablessysctl vm.swappiness=0
swapoff -a| // 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') | |
| /** |
| #!/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 |