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
  • 18:45 (UTC +11:00)
View GitHub Profile
@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 December 25, 2024 05:20
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 / allocate_plus_post_exam_fixer.js
Last active June 23, 2022 03:38
A script to fix the Monash University Allocate+ Planner if it's broken after exams.
// This script can be pasted into the browser console, or used as a userscript with an extension like Tampermonkey.
// ==UserScript==
// @name Allocate+ post-exam fixer
// @version 0.1
// @description Fixes the planner in Allocate+ if it's broken after exams.
// @author hacker1024
// @match https://my-timetable.monash.edu/even/student*
// @icon https://www.google.com/s2/favicons?sz=64&domain=monash.edu
// @grant none
@hacker1024
hacker1024 / proquest_ebook_central_ripper.md
Last active March 28, 2022 00:49
A method to download restricted eBooks from ProQuest Ebook Central.

Step 1: Load in all the page elements.

let eBookPageCount = /* Set this. */
function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}
async function load() {
  for (i = 1; i < eBookPageCount; ++i) {
    let pageContainer = document.getElementById('mainPageContainer_' + i)
    pageContainer.scrollIntoView()