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
  • 15:23 (UTC +10:00)
View GitHub Profile
@hacker1024
hacker1024 / disableAAC.reg
Last active April 1, 2025 19:46
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()
@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 / README.md
Created August 19, 2021 10:58
Primitive (inaccurate) trigonometric calculations in pure Dart

trigonometry.dart

This is an experiment to test myself: Using only my knowlege of trigonometry and the unit circle, can I implement trigonometric functions?

The algorithm

The degree value is analyzed to determine what quadrant it's in. The angle's "progress" through the quadrant (0 - 90 degrees) is expressed as a value between 0 and 1 (or -1 and 0, depending on the quadrant), which is then used to approximate X and Y coordinates.
These coordinates are then scaled to an arbitrary radius length (the higher, the more accurate) and then normalised

@hacker1024
hacker1024 / sdkmanager-java-patch.sh
Created May 25, 2021 11:01
A script to patch the legacy Android SDK Tools to work on modern Java versions.
#!/bin/sh
# Patches the legacy Android SDK Tools to work on modern Java versions.
# Inspired by https://stackoverflow.com/a/55982976.
if (( "$(uname)" == "Darwin" )); then
[[ "$(command -v gsed)" ]] || { echo "gsed is required!" 1>&2 ; exit 1; }
SED_CMD=gsed
else
[[ "$(command -v sed)" ]] || { echo "sed is required!" 1>&2 ; exit 1; }
@hacker1024
hacker1024 / keyboard_effects.md
Created May 10, 2021 03:53
Some of my favourite RGB keyboard settings

Thunderstorm

Effect: Ripple
Background color: #16191C
Foreground color: #FEFF67

@hacker1024
hacker1024 / mygov_totp_storage.md
Last active September 22, 2024 09:20
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 / value_animation.dart
Created April 11, 2021 07:43
A Flutter Animation implementation that wraps a mutable value.
import 'package:flutter/widgets.dart';
abstract class ValueAnimation<T> extends Animation<T>
with
AnimationEagerListenerMixin,
AnimationLocalListenersMixin,
AnimationLocalStatusListenersMixin {
T _value;
@override