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
  • 03:16 (UTC +11:00)
View GitHub Profile
@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 / solidworks_url_scraper.js
Last active February 4, 2024 07:55
Extract the URLs from SOLIDWORKS manual download pages.
copy(Array.from(document.getElementsByClassName('downloadfiles')[0].getElementsByTagName('a'), (a) => a.href).join('\n'))
@hacker1024
hacker1024 / SOLIDWORKS_MX150.reg
Created March 7, 2023 22:45
A registry entry to enable RealView Graphics in SOLIDWORKS on an NVIDIA GeForce MX150. Make sure to update the version before installing.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SolidWorks\SOLIDWORKS 2022\Performance\Graphics\Hardware\Gl2Shaders\NV40\NVIDIA GeForce MX150/PCIe/SSE2]
"Workarounds"=dword:00031408
@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
@hacker1024
hacker1024 / lockly_cloud_api_details.md
Last active October 5, 2022 03:11
Lockly cloud API details

Lockly cloud API details

This documentation has moved to a dedicated site.

@hacker1024
hacker1024 / disableAAC.reg
Last active January 26, 2025 18:11
Disable AAC Bluetooth audio codec in Windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BthA2dp\Parameters]
"BluetoothAacEnable"=dword:00000000