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; |
| diff -r f7c3a7daf522 -r 2823dcb7e532 browser/base/content/browser-context.inc | |
| --- a/browser/base/content/browser-context.inc Thu Mar 11 19:54:41 2021 +0000 | |
| +++ b/browser/base/content/browser-context.inc Thu Mar 11 19:36:20 2021 +0000 | |
| @@ -164,11 +164,11 @@ | |
| data-l10n-id="main-context-menu-image-reload" | |
| oncommand="gContextMenu.reloadImage();"/> | |
| <menuitem id="context-viewimage" | |
| - data-l10n-id="main-context-menu-image-view-new-tab" | |
| + data-l10n-id="main-context-menu-image-view" | |
| oncommand="gContextMenu.viewMedia(event);" |
This script patches VNC Viewer 3.7.1.44443.
List of Wine builtin fake executables in Wine installation as of Wine 7.16:
mainline-install-7.16-x86_64/lib/wine/x86_64-windows/openal32.dll
mainline-install-7.16-x86_64/lib/wine/x86_64-windows/opengl32.dll
mainline-install-7.16-x86_64/lib/wine/i386-windows/openal32.dll
| #!/bin/sh | |
| # https://martin.elwin.com/blog/2008/05/backups-with-squashfs-and-luks/ | |
| set -e | |
| SQUASHFS_IMG="$1" | |
| LUKS_IMG="$2" | |
| CRYPTNAME=mkcrypt-$RANDOM | |
| CRYPTDEV="/dev/mapper/$CRYPTNAME" |
| #!/bin/bash | |
| # | |
| # parse input-event-codes.h and build "number -> name" mapping | |
| # | |
| parse_prefix() { | |
| prev=-1 | |
| grep -F "#define ${1}_" /usr/include/linux/input-event-codes.h | | |
| while read define name value comment |
Dockerized: V2ray + WebSocket + TLS + Web
also see: https://toutyrater.github.io/advanced/wss_and_web.html
Server side sontents:
Client side contents:
| // By PixelToast | |
| var src = | |
| "mov r0, #69\n" | |
| "bx lr\n" | |
| "ldmedeq ip!, {a3-sp}\n" | |
| "strbhi r13, [v2, lr, asr #3]!\n" | |
| "ldrls a3, [sb], sp, asr #0x14\n"; | |
| main() { |
This is a proof of concept of a portable operating system a-la-docker.
It is a single binary that contains an image of an OS in SquashFS and the binary to run it.
a make will build the binary with an embedded alpine image. make havre-xenial will build a binary with an embedded ubuntu image.
What does the binary do?