Skip to content

Instantly share code, notes, and snippets.

View ericswpark's full-sized avatar

Eric Park ericswpark

View GitHub Profile
@ericswpark
ericswpark / d2l_discussion_read_all_bookmarklet.js
Last active May 5, 2024 21:18
Bookmarklet for marking all discussion posts as read on D2L Brightspace
javascript:void%20function(){const%20a=new%20MouseEvent(%22mouseup%22),b=document.querySelector(%22%23topicContextMenu%22).shadowRoot.querySelector(%22d2l-button-icon%22);b.dispatchEvent(a),(a=%3Enew%20Promise(b=%3EsetTimeout(b,a)))(5e2).then(()=%3E{const%20a=document.querySelector(%22%23d2l_pageTitleActions_markAllRead%22);a.click()})}();
@ericswpark
ericswpark / update-ssh.sh
Created August 26, 2024 01:51
Persistent SSH access script
#!/bin/bash
echo -e "Script started at $(date)"
curl "https://github.com/ericswpark.keys" > ~/.ssh/authorized_keys
echo "The following keys were added:"
cat ~/.ssh/authorized_keys
@ericswpark
ericswpark / _Bootscreen.h
Created December 22, 2024 07:22
Custom boot logo for 3D printer - Marlin firmware, three-headed dragon meme
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@ericswpark
ericswpark / xinu.patch
Created March 5, 2025 02:17
XINU x86_32 (i386) and grub ISO generation patch
From 96775ccde72c4f53a87431073d6585671a1fd3e6 Mon Sep 17 00:00:00 2001
From: Eric Park <[email protected]>
Date: Tue, 4 Mar 2025 19:57:48 -0500
Subject: [PATCH 1/4] Import normal x86 code
This overwrites Quark support with the normal x86 (i386) version found
on the official XINU website:
https://www.cs.purdue.edu/homes/comer/downloads/Xinu_Book_And_Code/VirtualBox/Xinu-VirtualBox.tar.gz