Miscellaneous¶
AWS¶
If you assign an SSL certificate in AWS Certificate Manager (ACM) to a custom domain in API Gateway, under "Resources using this certificate", the ARN for API Gateway begins with arn:aws:elasticloadbalancing, which is not very intuitive.
GLUT¶
The original GLUT (OpenGL Utility Toolkit) library was last updated in 1998. The modern alternative, FreeGLUT is completely compatible, and began in 1999.
IPv6¶
RFC 4861 mandates the presence of the fe80:: address.
It is thus impossible to make Linux not to generate one for every IPv6-enabled interface (although you can ip address delete it).
MSI Laptop¶
Enable hidden settings in the BIOS: Right Ctrl+Right Shift+Left Alt+F2.
Ninja Kiwi¶
The data.jet file from multiple NK games is actually a ZIP archive with password Q%_{6#Px]].
PDF¶
To remove a known password from a PDF file:
qpdf --password=<pdf_password> --decrypt input.pdf output.pdf
QEMU / KVM¶
The last version of VirtIO Windows driver that works on Windows 7 is 0.1.173-4. (Ref, ISO download)
Supermicro IPMI License Generator¶
Source: https://techblog.jeppson.org/2018/12/generate-supermicro-ipmi-license/
import hmac
import hashlib
def supermicro_gen(mac):
mac = bytes.fromhex(mac.replace(":", "").replace("-", ""))
key = bytes.fromhex("8544E3B47ECA58F9583043F8")
return hmac.new(key, mac, hashlib.sha1).hexdigest()[:24]
TabNine Vim Golang language server settings¶
def Settings(**kwargs):
if kwargs['language'] == 'go':
return {'ls': {'analyses': {'composites': False}}}
References:
- YouCompleteMe § LSP Configuration
- Gopls settings
- Disable go vet checks for "composite literal uses unkeyed fields"
Wake on LAN¶
Mostly referencing Ubuntu Wiki. WoL needs to be enabled in both BIOS and OS (interface).
To check the current status of WoL on an interface:
ethtool <interface>
And see the status of Wake-on: line:
dmeans disabledpmeans PHY activity (i.e. any packet)umeans unicast packetmmeans multicast packetbmeans broadcast packetgmeans magic packet
The value of Wake-on: may be a combination of pumbg, in which case multiple packets can wake the machine.
To perform WoL (send a magic packet) on another machine in the same local network:
etherwake -i <interface> <target MAC address>
Windows 10¶
Set WireGuard connection as "Private network"¶
Set-NetConnectionProfile -InterfaceAlias 'wg0' -NetworkCategory 'Private'
Replace wg0 with the name of your interface.
Source: Reddit
Windows Media Player¶
Stop WMP from littering AlbumArtSmall.jpg files in every folder: Go to %LocalAppData%\Microsoft\Media Player, nuke the Art Cache folder, and create a file with the same name (i.e. prevent WMP from creating the folder again).