Skip to content

Instantly share code, notes, and snippets.

View gist:4aff00f0675929f3a55e5199c9c4eccc
"identifier": "2:7:SynPS\/2_Synaptics_TouchPad",
"name": "SynPS\/2 Synaptics TouchPad",
"vendor": 2,
"product": 7,
"type": "touchpad",
"scroll_factor": 1.0,
"libinput": {
"send_events": "enabled",
ammgws /
Last active March 22, 2022 04:41
Biostar B660GTN IOMMU groups

With iGPU disabled in BIOS and a dedicated GPU in the one and only PCI slot:

>lsiommu                                                                                                                      0|16:55:43
IOMMU Group 0:
	00:00.0 Host bridge [0600]: Intel Corporation Device [8086:4650] (rev 02)
IOMMU Group 1:
	00:01.0 PCI bridge [0604]: Intel Corporation 12th Gen Core Processor PCI Express x16 Controller #1 [8086:460d] (rev 02)
IOMMU Group 2:
	00:06.0 PCI bridge [0604]: Intel Corporation 12th Gen Core Processor PCI Express x4 Controller #0 [8086:464d] (rev 02)
ammgws /
Created February 26, 2022 09:48 — forked from sxiii/
How to fix Worms W.M.D. launch on ArchLinux, Manjaro, Garuda, Artix Linux & Linux Mint

Game information Worms W.M.D.

Distribution name and version where applicable Manjaro 20.1.1 (Mikah)

Problem description Worms doesn't launch out of the box without two small tweaks. When launching Worms W.M.D. in Manjaro and Archlinux, you need to do two things:

  1. Install this apps: sudo pacman -S libcurl-gnutls libidn11 qt5-base qt5-xcb-private-headers(If you are on any other distro then Arch, you can skip this step. At least this is reported to be OK to skip for Linux Mint)
ammgws /
Last active October 5, 2021 14:16
Get Home Assistant running on local network via HTTPS using a trusted local certificiate


Fitbit integration requires the OAUTH2 callback URI to be HTTPS, which is an issue since Home Assistant by default only runs in HTTP. Additionally, I do not wish to expose HA to the internet and only access it externally via VPN into my home network. So the solution is to generate our own cert to install in Home Assistant, and store that root CA in the trusted CA list on the computer from which the HA front end is going to be accessed. This will be done using the mkcert tool:

On my deskop (not the computer running HA)

1. Generate a cert which is valid for both the hostname address and the IP address of my HA instance.

mkcert -install
mkcert homeassistant.home.lan
ammgws /
Created September 2, 2021 11:50 — forked from plembo/
UPnP with EdgeRouter: Don't do it!

Want to configure UPnP on EdgeRouter-4?

Don't do it!


As a former sysadmin that once helped ride herd over around 1,000 servers, of which around 10% were Internet-facing, I've never been a fan of autoconfiguation when it comes to punching holes through the firewall. I've seen the tripwire logs, and it's sobering.

The Problem

So enabling UPnP on my EdgeRouter-4 wasn't something I had on the roadmap, but when I ran into difficulty getting DLNA to work on the default VLAN, I thought it was worth looking into (never mind that, as I later learned, having UPnP turned on wasn't going make a bit of difference on my local network: another reason that mastering theory should always come before practice).

ammgws /
Created March 15, 2021 13:40
Create chroot jail so friend can SSH into server and/or use it for sshuttle (Arch Linux)

Replace "jaileduser" with whatever you want the username to be.

Step 1 (as root) - Setup chroot environment and user. Replace fish in the last command with whatever shell you want.

sudo su - 
mkdir --parents /home/jaileduser/home
useradd --create-home --gid users --home /home/jaileduser/home/jaileduser jaileduser
usermod --home /home/jaileduser jaileduser
mkdir --parents /{etc/jail/jaileduser,var/jail/jaileduser/{cache/{key,pkg},lib}}
chown jaileduser:users /var/jail/jaileduser/cache/key
View compl.txt
81 chars: When creating a group, this option forces the new groupid to be the given number
98 chars: Use shell as the user\'s login shell, rather than the default specified by the configuration file
117 chars: Add the new user to GROUP instead of a usergroup or the default group defined by USERS_GID in the configuration file
122 chars: Override the first uid in the range that the uid is chosen from (overrides FIRST_UID specified in the configuration file)
101 chars: On, activate, off, deactivate, set, opaque, copy transparent, extract, background, or shape [option]