Skip to content

Instantly share code, notes, and snippets.

View bananasmoothii's full-sized avatar
💭
Eating maths

Bananasmoothii bananasmoothii

💭
Eating maths
View GitHub Profile
@bananasmoothii
bananasmoothii / Fix-broom-quest.md
Last active July 18, 2023 17:54
Hogwarts Legacy fix for broom quest

Fix for Spintwitches shop bug (before update 4)

So, there is this bug that prevents people from talking again to Albie Weekes when quitting the game during the first talk. Fortunately, this bug seems to be resolved since update 4. But for people who couldn't get their hands on it (like me), or who still have that bug, here is the result of my two days of "research" in Hogwarts Legacy's save files.

This resets the broom class with professor Kogawa.

This works on the base game (with no updates), and may work on update 1, 2 and 3, but it doesn't work on update 4 and after because the save format changed.

Prerequisites

@bananasmoothii
bananasmoothii / download_bing.sh
Last active April 26, 2021 11:32
Download the daily bing background and set it as Kubuntu's sddm background image
#!/bin/bash
# configuration:
xmlProvider="http://bing.com"
xmlLink="/HPImageArchive.aspx?format=xml&idx=0&n=1"
xmlImageTag="url"
xmlDescTag="headline"
xmlDesc2Tag="copyright"
downloadTo="/usr/share/sddm/themes/breeze/bing.jpg"
descSize=50
@bananasmoothii
bananasmoothii / flatten-array.js
Last active February 22, 2021 23:08 — forked from Integralist/flatten-array.js
Array flatten function written in ES6 syntax
function flat(array, depth = 1) {
let result = [];
if (depth !== 1) {
result = array;
for (let i = 0; i < depth; i++) {
result = flat(result);
}
return result;
}
for (let element of array) {