Just some tips I gathered over time. All in one easily reachable place so I can share it wherever I want.
Please note that unless you see a shebang (#!/...) these code blocks are usually meant to be copy & pasted directly into the shell. Some of the steps will not work if you run part of them in a script and copy paste other ones as they rely on variables set before.
The { and } surrounding some scripts are meant to avoid poisoning your bash history with individual commands, etc. You can ignore them if you manually copy paste the individual commands.
I chose to write things "in the open" that way so there's still some control and things don't become a black box.
A simple PowerShell script to reliably control monitor/display state.
This uses the same method as when a computer display times out through normal power settings. Unlike tools like ControlMyMonitor that change monitor hardware settings and actually power off the monitor, this script uses Windows messaging to place displays into standby (not a full power-off) and runs entirely in PowerShell with no external dependencies. You can wake the screens manually by moving the mouse or pressing a key and allowing a few seconds for them to resume, or wake them remotely through the script.
Use -TurnOff to put displays into standby, or -TurnOn to wake them.
- Instructions on installing a non-desktop version of docker is inconvenient to find in the official documentation.
- I've collected the official steps for major platforms here for reference.
- only supports iptables-nft and iptables-legacy
| function ConvertTo-PackedGuid { | |
| <# | |
| .SYNOPSIS | |
| https://gist.github.com/MyITGuy/d3e039c5ec7865edefc157fcd625a20a | |
| Converts a GUID string into a packed globally unique identifier (GUID) string. | |
| .DESCRIPTION | |
| Takes a GUID string and breaks it into 6 parts. It then loops through the first five parts and reversing the order. It loops through the sixth part and reversing the order of every 2 characters. It then joins the parts back together and returns a packed GUID string. | |
| .EXAMPLE | |
| ConvertTo-PackedGuid -Guid '{7C6F0282-3DCD-4A80-95AC-BB298E821C44}' | |
| #!/usr/bin/env bash | |
| # Download VMware Fusion for macOS without a Broadcom account. | |
| # | |
| # This script allows you to download various versions of VMware Fusion | |
| # from Broadcom's Cloudflare CDN (versions 8.0.0 to 13.6.3) | |
| # or from the archive.org VMware Workstation archive (versions 8.x.x+). | |
| # | |
| # Options: | |
| # -k: Keep the downloaded file compressed (Cloudflare only; ignored for archive.org). |
- Web Wormhole https://webwormhole.io/ https://github.com/saljam/webwormhole
- Localsend https://web.localsend.org/
- FilePizza https://file.pizza/
ShareDrop sharedrop.io https://github.com/szimek/sharedrop(SOLD, not recommended, use one of the forks)A clone SnapDrop snapdrop.net https://github.com/RobinLinus/snapdrop(SOLD, not recommended, use one of the forks)- A fork PairDrop https://pairdrop.net/ https://github.com/schlagmichdoch/pairdrop
- ToffeeShare https://toffeeshare.com/
- Instant.io https://instant.io/
| FROM ubuntu | |
| RUN apt update | |
| RUN apt install -y tini dumb-init python3-pip | |
| RUN pip install apache-airflow | |
| # place the entrypoint script | |
| COPY entrypoint.sh /entrypoint | |
| RUN chmod +x /entrypoint | |
| # a script that calls airflow (and does test-relevant things too) |
| This customization method references "https://lunar.computer/posts/persistent-customizations-proxmox-60/" and has been fixed and tl;dr by @edisonlee55. | |
| Note: If you are logged in as "root", leave out "sudo" in the commands below. | |
| 1. Create folder "/usr/share/custom/" and "/usr/share/custom/backup" | |
| $ sudo mkdir /usr/share/custom | |
| $ sudo mkdir /usr/share/custom/backup | |
| 2. Backup "proxmoxlib.js" | |
| $ sudo cp /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js /usr/share/custom/backup/ |
| # This script will manually rip out all VMware Tools registry entries and files for Windows 2008-2019 | |
| # Tested for 2019, 2016, and probably works on 2012 R2 after the 2016 fixes. | |
| # This function pulls out the common ID used for most of the VMware registry entries along with the ID | |
| # associated with the MSI for VMware Tools. | |
| function Get-VMwareToolsInstallerID { | |
| foreach ($item in $(Get-ChildItem Registry::HKEY_CLASSES_ROOT\Installer\Products)) { | |
| If ($item.GetValue('ProductName') -eq 'VMware Tools') { | |
| return @{ | |
| reg_id = $item.PSChildName; |