Skip to content

Instantly share code, notes, and snippets.

View prewriter's full-sized avatar

prewriter prewriter

View GitHub Profile

Symptoms:

  • Surround sound doesn't work, Windows shows that headphones are 2.0.
  • Installed drivers for all three devices are Microsoft ones
  • Sometimes G Hub shows G933 as not connected
  • Unplugging, removing/reinstalling drivers doesn't work.

Solution:

  1. Install correct drivers (DriverUpdate DriverBrowse) for the Logitech G933 Gaming Headset device found in Sound, video and game controllers section of Device Manager. You'll find them in C:\ProgramData\LGHUB\depots\57944\driver_audio. Please note that the number in this path might change in the future.

regedit

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Add or update PowerdownAfterShutdown, change it to 1

This fixes a lot of problems with PC randomly waking up after hibernating.

@prewriter
prewriter / Cloudflare dynamic IP using Worker.md
Last active April 18, 2020 01:28
Cloudflare dynamic IP using free tier Worker

Usage

  • Create secrets:
# Generate token in your profile settings under API Tokens, with permission to `Zone.DNS` for the zone you want to be updated
cloudflareToken=

# Copy Zone ID from "Overview" of your account
# Retrieve DNS record ID by using GET https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records 
cloudflareUpdateUrl=https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records/$DNS_RECORD_ID
@prewriter
prewriter / DockerRunBash
Last active October 15, 2019 14:11 — forked from mitchwongho/Docker
Docker 'run' command to start an interactive BaSH session
docker run -it --rm ubuntu bash
@prewriter
prewriter / KeePassDatabasesTrigger.md
Last active July 15, 2019 11:31
How to open additional KeePass databases when opening main one

Scenario: in your main database there are passwords to other databases.

To open another database(s) when opening the main one:

  • get UUID for each entry, e.g. 53287A94618C475E911ED9315A56E0C0 (you'll find it in the Properties tab)
  • create trigger

Events: Opened database file, File/URL - Comparison - Contains, Filter - YourDatabaseName.kdbx

For each additional database, in actions: