Skip to content

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.

Cheat Engine

Download the official (ad-bundled) installer from https://d2oq4dwfbh6gxl.cloudfront.net/f/CheatEngine/1032/CheatEngine75.exe and run it with these command-line arguments:

CheatEngine75.exe /VERYSILENT /ZBDIST

To verify, check the installation directory for these files:

autorun\dlls\dnd.dat
autorun\eatme.lua
autorun\soundextension.lua

If you successfully installed Cheat Engine in the ad-free way, these files will be absent.

Source: Reddit

GLUT

The original GLUT (OpenGL Utility Toolkit) library was last updated in 1998. The modern alternative, FreeGLUT is completely compatible, and began in 1999.

KeePass

KeeTrayTOTP download: https://github.com/KeeTrayTOTP/KeeTrayTOTP/releases/download/latest/KeeTrayTOTP.plgx

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

~/.ycm_extra_conf.py
def Settings(**kwargs):
    if kwargs['language'] == 'go':
        return {'ls': {'analyses': {'composites': False}}}

References:

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:

  • d means disabled
  • p means PHY activity (i.e. any packet)
  • u means unicast packet
  • m means multicast packet
  • b means broadcast packet
  • g means 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

Activation

Just use massgrave.dev.

Prevent Google Chrome or Microsoft Edge from downloading AI models

Google Chrome
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]
"GenAILocalFoundationalModelSettings"=dword:00000001
Microsoft Edge
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge]
"GenAILocalFoundationalModelSettings"=dword:00000001

Change network profile names

Registry path:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles\

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).