If doing a fresh install, start with an EFI system partition and an ext4 /boot/
partition.
-
Remove unnecessary packages.
rm -rf /etc/dnf/protected.d/{grub,shim}* dnf remove grubby grub2\* shim\*
# enable AMD IOMMU with DMA passthrough | |
# note: iommu=pt is much faster than the default translated DMA since memory access doesn't need to go through the hypervisor | |
sudo sed -i '1 s/$/ amd_iommu=on iommu=pt/' /etc/kernel/cmdline | |
# list IOMMU groups | |
# record the PCI IDs of all devices in the target group | |
for d in /sys/kernel/iommu_groups/*/devices/*; do | |
n=${d#*/iommu_groups/*}; | |
n=${n%%/*}; | |
test $n -eq $pn || printf '\nIOMMU Group %s\n' $n; |
// as qchlimit.s -o qchlimit.o | |
// ld qchlimit.o -o qchlimit | |
// llvm-strip --strip-all --strip-sections qchlimit | |
// adb root && adb shell 'killall qchlimit ; /path/to/qchlimit 35 75 &' | |
.global _start | |
.text | |
.equ SYS_openat, 56 | |
.equ SYS_pread64, 67 | |
.equ SYS_pwrite64, 68 |
package net.pgaskin.kl125gesture; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import java.io.Closeable; | |
import java.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.net.DatagramPacket; |
One finger drag
Two finger drag (when not in the middle of a tap gesture, but can cancel it if still before the first stage finger up)
// Package grdist parses Queen's University SOLUS (Oracle PeopleSoft Student | |
// Records 9) Grade Distribution Reports. | |
// | |
// Works as of August 2022. | |
package grdist | |
import ( | |
"bytes" | |
"errors" | |
"fmt" |
package main | |
import ( | |
"bytes" | |
"context" | |
"crypto/sha256" | |
"encoding/hex" | |
"encoding/json" | |
"fmt" | |
"io" |
// Command otpprint prints TOTP codes. | |
package main | |
import ( | |
"crypto/hmac" | |
"crypto/sha1" | |
"encoding/base32" | |
"encoding/binary" | |
"fmt" | |
"hash" |
package config | |
import "bytes" | |
// bsutil implements efficient zero-allocation operations on a byte slice. | |
type bsutil []byte | |
var asciiSpace = [256]uint8{'\t': 1, '\n': 1, '\v': 1, '\f': 1, '\r': 1, ' ': 1} | |
// Clone returns a clone of b (but not the underlying data). |