Skip to content

Instantly share code, notes, and snippets.

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


Working on my music app, Epimetheus.
  • Melbourne, Australia
  • 03:18 (UTC +10:00)
View GitHub Profile
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 / 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]
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.
hacker1024 /
Last active October 5, 2022 03:11
Lockly cloud API details

Lockly cloud API details

This documentation has moved to a dedicated site.

hacker1024 / disableAAC.reg
Last active April 7, 2024 02:22
Disable AAC Bluetooth audio codec in Windows
Windows Registry Editor Version 5.00
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*
// @icon
// @grant none
hacker1024 /
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)
hacker1024 /
Last active May 20, 2023 14:41
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
  2. Install Office

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

hacker1024 /
Created August 19, 2021 10:58
Primitive (inaccurate) trigonometric calculations in pure 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