Skip to content

Instantly share code, notes, and snippets.

View hacker1024's full-sized avatar
🎵
Working on my music app, Epimetheus.

hacker1024

🎵
Working on my music app, Epimetheus.
  • Melbourne, Australia
  • 08:50 (UTC +10:00)
View GitHub Profile
@hacker1024
hacker1024 / mygov_totp_storage.md
Last active May 1, 2025 09:28
Information about TOTP token storage in the myGov Code Generator app, as well as token extraction instructions.

This gist contains information about TOTP token storage in the myGov Code Generator app, along with instructions on how to extract tokens.

App data

Structure

/data/user/0/au.gov.dhs.centrelink.mygovauthenticator:
├───files
│ myGov.ks
@hacker1024
hacker1024 / disableAAC.reg
Last active April 30, 2025 18:35
Disable AAC Bluetooth audio codec in Windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BthA2dp\Parameters]
"BluetoothAacEnable"=dword:00000000
@hacker1024
hacker1024 / DisableStickyNotes.reg
Last active March 10, 2025 03:36
Hidden OneNote settings
Windows Registry Editor Version 5.00
; Disables the new "Sticky Notes" feature in OneNote.
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\OneNote\Options\Other]
"IsMemoryWindowDisabled"=dword:00000001
@hacker1024
hacker1024 / llama-cpp-static-aarch64.nix
Created February 4, 2025 12:04
An attempt at building a static llama.cpp library with Nix, intended for Android.
let
pkgs = import <nixpkgs> {
crossSystem = {
config = "aarch64-unknown-linux-musl";
gcc.arch = "armv9-a";
useLLVM = true;
isStatic = true;
};
# Optimisation - disable unnecessary X11 dependencies.
@hacker1024
hacker1024 / kernel-qemu-shell.nix
Last active January 12, 2025 11:11
A Nix shell to aid in kernel development with QEMU. Allows building a kernel and then launching a NixOS VM using it.
# Usage:
#
# $ genconfig
# $ launch
#
# In QEMU, press CTRL+X, h for help.
{ pkgs ? import <nixpkgs> { } }:
let
@hacker1024
hacker1024 / WidevineL1Raphael.md
Last active September 22, 2024 03:46
Restoring Widevine L1 on the Xiaomi Redmi K20 Pro (raphael)

Sometimes, Widevine L1 can be lost on the Redmi K20 Pro when switching ROMs. This is how to restore it.

  1. Install MIUI 12.6 21.6.30 from xiaomi.eu
  2. Launch the Fingerprint Payments settings:
    $ adb shell am start -n com.miui.cloudservice/com.miui.cloudservice.alipay.provision.FingerprintListActivity
  3. Update all available certificates
  4. Reboot
@hacker1024
hacker1024 / DisableDisplayModeChangeAnimation.reg
Created June 15, 2024 09:41
Disable the display mode change animation on Windows 11 24H2+
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Dwm]
"ForceDisableModeChangeAnimation"=dword:00000001
@hacker1024
hacker1024 / SOLIDWORKS_CORE_ULTRA_ARC.reg
Created May 13, 2024 06:19
A registry entry to enable RealView Graphics in SOLIDWORKS 2024+ on Intel Core Ultra systems with integrated Arc graphics.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SolidWorks\AllowList\Gl2Shaders\Other\Intel(R) Arc(TM) Graphics]
"Workarounds"=dword:00032408
@hacker1024
hacker1024 / README.md
Last active May 12, 2024 00:23
My ideal Office configuration. Installs Word, PowerPoint, Excel, Publisher, OneNote with the preview channel, along with versions of Visio and Project that can be otained through Azure for Students.
  1. Download the Office Deployment Tool

    # winget install -e Microsoft.OfficeDeploymentTool
    # https://github.com/microsoft/winget-pkgs/pull/105205
  2. Install Office

& 'C:\Program Files\OfficeDeploymentTool\setup.exe' /configure office_configuration.xml

@hacker1024
hacker1024 / gitkraken_browserless_github_login.url
Created January 25, 2023 12:45
A URL to use to obtain a GitHub OAuth token for browserless logins on GitKraken.
https://api.gitkraken.com/oauth/github/login?action=login&in_app=true&needs_gk_permissions=false