get-winevent -ListLog * | ForEach-Object { wevtutil.exe clear-log "$($_.LogName)" }install rustdesk server (OSS) on EL9 (RHEL9, Alma9, Rocky9, OL9) via podman quadlet (podman systemd integration) and auto updates (via podman-auto-update.timer)
loginctl enable-linger $USER
systemctl --user enable --now podman-auto-update.timer
systemctl --user cat podman-auto-update.timer
# also make sure these ports are open on your cloud provider's security group/firewall
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| nohup "$@" > /dev/null 2>&1 & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-CimInstance -ClassName Win32_VideoController | Select-Object Name, CurrentHorizontalResolution, CurrentVerticalResolution, CurrentBitsPerPixel |
remove some major annoyances:
- TERM setting that is more compatible with most real world apps
!=should be displayed as two characters, not one- don't ask when closing a tab (= don't block shutdowns/reboots)
# ~/.config/ghostty/config
# https://github.com/ghostty-org/ghostty/discussions/3161
command = TERM=xterm-256color /usr/bin/bash
add to ~/.bashrc:
urldump() {
sudo tcpdump -i any -A -s 0 -l 'tcp' | awk '/GET|POST|PUT|DELETE|HEAD|OPTIONS|PATCH.*HTTP/ {match($0, /(GET|POST|PUT|DELETE|HEAD|OPTIONS|PATCH) ([^ ]+)/, arr); method=arr[1]; url=arr[2]} /^Host:/ {if(method) {print method, $2 url; method=""}}'}GET localhost:8080/
GET localhost:5172/foo/bar
in Windows setup: SHIFT + F10 opens a cmd shell. Then regedit.
[HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig]
"BypassTPMCheck"=dword:00000001
"BypassSecureBootCheck"=dword:00000001
"BypassRAMCheck"=dword:00000001
"BypassStorageCheck"=dword:00000001
"BypassCPUCheck"=dword:00000001
"BypassDiskCheck"=dword:00000001
A grep command (grepp) in Powershell that lets you grep for a string in the text that would usually be printed in the terminal (not some other representation of the data). Output is a string, not a pipeline anymore - thus destructive.
To quickly grep through shell output without having to do where-object gymnastics.
NewerOlder