Skip to content

Instantly share code, notes, and snippets.

View micartey's full-sized avatar
:octocat:
Wisdom is knowing when not to apply design patterns

micartey

:octocat:
Wisdom is knowing when not to apply design patterns
View GitHub Profile
// ==UserScript==
// @name GitHub SVG Inline & Selectable
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Replaces img tags with inline SVGs on GitHub to allow text selection, removing wrapping links.
// @author You
// @match https://github.com/*
// @grant none
// ==/UserScript==
document.querySelectorAll('img[src$=".svg"]').forEach(async img => {
try {
const response = await fetch(img.src);
const text = await response.text();
const parser = new DOMParser();
const doc = parser.parseFromString(text, 'image/svg+xml');
const svg = doc.documentElement;
// styling
svg.style.userSelect = 'text';
@micartey
micartey / checksums
Last active April 22, 2025 07:58
jvm signatures
63912fa03e9d780cbed4918ab866b05c36b045307bd32cfd3ce3d3ea620737a6 # OpenJDK 8 alpine Docker
279014ac4d2ac22de188650773f36649e93141b2bed90fb18060f2e2af671db8 # OpenJDK 64-Bit Server VM JBR-21.0.4+8-598.4-jcef (build 21.0.4+1-nixos, mixed mode, sharing)
be7d077677c7f58bb6fbe2febb1e2395a0e8cbc7eff1f80f7e569d975813dce9 # OpenJDK 64-Bit Server VM (build 25.432-b06, mixed mode)
#include <Servo.h>
Servo ESC;
void setup() {
Serial.begin(9600);
Serial.println("Starting");
ESC.attach(A0);
ESC.write(2000);