- Find USB drive
sudo fdisk -l
USB is /dev/sda
- Unmount partition
umount /dev/sda1
- Copy image
WINEPREFIX=/home/<username>/.local/share/Steam/steamapps/compatdata/<game id>/pfx winetricks <command> |
sudo fdisk -l
USB is /dev/sda
umount /dev/sda1
#!/bin/bash | |
# chmod 755, chown root:root | |
sleep 1s | |
if [ "${1}" == "post" ]; then | |
echo "Executing custom touchpad fix at /usr/lib/systemd/system-sleep/touchpad-fix.sh" | |
echo -n "none" | sudo tee /sys/bus/serio/devices/serio1/drvctl | |
echo -n "reconnect" | sudo tee /sys/bus/serio/devices/serio1/drvctl | |
fi |
Open a JSON URL.
Disable read only in eww buffer:
M-x read-only-mode
Select the JSON body.
Pretty print:
M-x json-pretty-print
$ grep --color=always -rn 'stuff/stuff' | grep -v "#"
ab -k -c 200 -n 1200 <url>
-k = keep open
-c = concurrent requests
-n = number of requests to complete
By default, the max. number of concurrent requests seems to be 256 on Mac:
ulimit -a
This can likely be changed.