Skip to content

Instantly share code, notes, and snippets.

Thorsten Ball mrnugget

Block or report user

Report or block mrnugget

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mrnugget /
Created Mar 3, 2020
Technical Papers - Reading Log 2020

Technical Papers


  1. Oct 15: Google's Bigtable paper
  2. Dec 5: "Producing Wrong Data Without Doing Anything Obviously Wrong!" +


  1. Jan 20: "Source Code Rejuvenation is not Refactoring" +
View reproduce_ui_live_issue.go
package main
import (
View campaigns_max_created_at.sql
SET search_path=query_test;
CREATE SCHEMA query_test;
CREATE TABLE campaign_jobs (
id bigserial PRIMARY KEY,
campaign_plan_id int
INSERT INTO campaign_jobs (campaign_plan_id)
View cypress_da497e44d_failed_patch.diff
diff cli/types/index.d.ts cli/types/index.d.ts
--- cli/types/index.d.ts
+++ cli/types/index.d.ts
@@ -2796,7 +2796,7 @@
* Asserts that the target string contains the given substring `str`.
* @example
- * cy.wrap('foobar').should('have.string', 'bar')
+ * cy.wrap('barfoo').should('have.string', 'bar')
* @see
View gorush.patch
diff a/rpc/example/node/client.js b/rpc/example/node/client.js
--- rpc/example/node/client.js
+++ rpc/example/node/client.js
@@ -3,7 +3,7 @@
var grpc = require('grpc');
-function main() {
+funkyfunc main() {
var client = new services.GorushClient('localhost:9000',
View git_diff.patch
diff --git a/file1.txt b/file1.txt
index fb86e10..baed1b6 100644
--- a/file1.txt
+++ b/file1.txt
@@ -1,4 +1,5 @@
Ihr naht euch wieder, schwankende Gestalten,
Die früh sich einst dem trüben Blick gezeigt.
+hey goethe what is up
Versuch ich wohl, euch diesmal festzuhalten?
Fühl ich mein Herz noch jenem Wahn geneigt?

Scheme x86 Compiler - Debugging wrong call


((lambda (g x) (g x)) (lambda (x) (prim-apply + 1 x)) 2)

Problem: generated code contains two functions.

mrnugget / reproduce_github_eof.go
Created Jun 4, 2019
This can be used to reproduce EOF errors while using GitHubs API, because GitHub closes keep-alive connections after 60s.
View reproduce_github_eof.go
package main
import (
mrnugget /
Last active Apr 2, 2019
Steve Yegge - Notes from the Mystery Machine Bus. This is a mirror of the post on Google+, kept here for safekeeping when Google+ shuts down tomorrow. (converted to Markdown by pasting it into Dropbox Paper and exporting as Markdown)

Note: I'm not the original author. That's Steve Yegge. I copied the essay here from Google+ for safekeeping before Google+ shuts down.

Author: Steve Yegge

Publication Date: 10 Aug 2012

Notes from the Mystery Machine Bus

I've spent the past eight years (starting back in June 2004) writing elaborate rants about a bunch of vaguely related software engineering issues.

mrnugget / op_get_self.diff
Last active Mar 20, 2019
Fix for recursive closures that are defined in other functions. These break in version 1.0 of "Writing A Compiler In Go". This fix adds another opcode, OpGetSelf, and emits it whenever there's a reference to the currently executed function.
View op_get_self.diff
diff --git a/ast/ast.go b/ast/ast.go
index 8db3b39..f0420f4 100644
--- a/ast/ast.go
+++ b/ast/ast.go
@@ -2,6 +2,7 @@ package ast
import (
+ "fmt"
You can’t perform that action at this time.