Skip to content

Instantly share code, notes, and snippets.

View domgetter's full-sized avatar

Dominic Muller domgetter

View GitHub Profile
@domgetter
domgetter / crash-2026-10-21_18.29.42-client.txt
Created October 21, 2026 22:36
Manual Crash report for Applied Energistics bug report
---- Minecraft Crash Report ----
// Shall we play a game?
Time: 2026-10-21 18:29:43
Description: Manually triggered debug crash
java.lang.Throwable: Manually triggered debug crash
at TRANSFORMER/minecraft@26.3/net.minecraft.client.KeyboardHandler.tick(KeyboardHandler.java:664) ~[minecraft-patched-26.3.0.43-beta.jar:?] {}
at TRANSFORMER/minecraft@26.3/net.minecraft.client.Minecraft.tick(Minecraft.java:1944) [minecraft-patched-26.3.0.43-beta.jar:?] {neoforge:access_transformer,neoforge:access_transformer,neoforge:mixin[APP:ae2.mixins.json:client.PickColorMixin from mod ae2]}
at TRANSFORMER/minecraft@26.3/net.minecraft.client.Minecraft.runTick(Minecraft.java:1215) [minecraft-patched-26.3.0.43-beta.jar:?] {neoforge:access_transformer,neoforge:access_transformer,neoforge:mixin[APP:ae2.mixins.json:client.PickColorMixin from mod ae2]}
@domgetter
domgetter / gist:fbc4b99b80f13da4f45e5321b99ad3fd
Created June 10, 2020 08:53
Chrome highlight search scroll setting fragments
Enable Text Fragment Anchor
This is the setting in chrome://flags to disable the asinine highlighting and auto-scrolling of search results AFTER you click them. What were they thinking??
@domgetter
domgetter / instruction.md
Created August 2, 2019 02:12
Readable Twitch chat

Chrome

  • Download the Stylus extension (custom CSS)
  • Download the Tampermonkey extension (custom JS)
  • In Stylus, create a style for twitch.tv, and copy the stylus_chrome.css lines into it, and click save
  • In Tampermonkey, "Create a new script..." and copy the tampermonkey_chrome.js lines into it, and click File->Save (in Tampermonkey on the top left)
  • Refresh the twitch page, and chat should now look a lot better.

Firefox

@domgetter
domgetter / useful.txt
Created January 2, 2019 21:39
maybe worth looking at first sentence of man page
[
2to3
apt
ar
arch
as
at
atq
atrm
awk
# running this in irb in tmux on WSL on Windows 10 (then you have to ctrl-c) causes segfault
# ruby version ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
# /etc/lsb-release
#DISTRIB_ID=Ubuntu
#DISTRIB_RELEASE=16.04
#DISTRIB_CODENAME=xenial
#DISTRIB_DESCRIPTION="Ubuntu 16.04.5 LTS"
def gen(r); o = ->(n) { n == 1 ? 1 : r**(n-1) + r*(-> o {o[r**(n-1)]}[o])}; end
two = gen(2)
two[2]
[Event "MANY SPRINGS 104 (201709160932)"]
[Site "North Richland Hills Library"]
[Date "2017.09.16"]
[Round "2"]
[White "Muller"]
[Black "Crane"]
[Result "0-1"]
[WhiteElo "Unrated"]
[BlackElo "1523"]
[ECO ""]
@domgetter
domgetter / RPNCalculator.java
Created October 12, 2017 23:42 — forked from StephenBerkner/RPN Calculator
Reverse Polish Notation Calculator Written in Java
import java.util.*;
public class RPNCalc {
private static Stack<Integer> stack = new Stack<Integer>();
private static Scanner input = new Scanner(System.in);
public static void calculator() throws Exception {
System.out.println("Welcome to the RPN Calculator program!");
(ns mandelclj.core
(:gen-class)
(:import
(sun.java2d SunGraphics2D)
(javax.swing JFrame JLabel)
(java.awt.image BufferedImage)
(java.awt Dimension Color Rectangle)
(java.awt.event ActionEvent
ActionListener
MouseAdapter
class Thread
class TimeoutError < StandardError; end
def self.timeout(n)
temp_queue = Queue.new
work_thread = Thread.new { temp_queue << {return: yield} } # wrapping in a hash guarantees uniqueness of output
timeout_thread = Thread.new { sleep n; temp_queue << :timeout }
if (ret_val = temp_queue.pop) == :timeout # this pop is blocking, so it either waits on the yield or the timeout
work_thread.kill
raise TimeoutError