These should be cleaned up and made into Nixpkgs PRs, but I don't have the time - so here they stay.
View gitkraken_browserless_github_login.url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://api.gitkraken.com/oauth/github/login?action=login&in_app=true&needs_gk_permissions=false |
View lockly_cloud_api_details.md
Lockly cloud API details
This documentation has moved to a dedicated site.
View disableAAC.reg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BthA2dp\Parameters] | |
"BluetoothAacEnable"=dword:00000000 |
View allocate_plus_post_exam_fixer.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
View proquest_ebook_central_ripper.md
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()
View README.md
-
Download the Office Deployment Tool
winget install -e Microsoft.OfficeDeploymentTool
-
Install Office
& 'C:\Program Files\OfficeDeploymentTool\setup.exe' /configure office_configuration.xml
View README.md
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
View sdkmanager-java-patch.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; } |
NewerOlder