Skip to content

Instantly share code, notes, and snippets.

@Merlin04
Merlin04 / seedthatphonescarelessly.py
Created May 22, 2017 15:58
Seed That Phones Carelessly - Brought to you by ideagenerator.
import time
# 'Make a seed that phones carelessly'
print("I am a seed!")
time.sleep(1)
print("""
MMMMMMMMMMMMMMMMMMWWNXX00OOOKXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMMMWNXKOxdolc:::coONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMMMWNKOdolclllc:;:::cd0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMMMWNKOdlclllllllc:;;;,;ckKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
MMMMMMMMMWNXOxddddolcccol:;,,,,,;:oONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
@Merlin04
Merlin04 / keybase.md
Created November 11, 2017 19:09
Keybase proof

Keybase proof

I hereby claim:

  • I am merlin04 on github.
  • I am merlin04 (https://keybase.io/merlin04) on keybase.
  • I have a public key ASD9F4CECJYi8maJirTrLP-eynHCSr1ZLZHmjHjSbwXCMwo

To claim this, I am signing this object:

@Merlin04
Merlin04 / Comcast.html
Created December 18, 2019 01:09
Comcast/Xfinity JavaScript popup that they injected into my HTTP traffic
<script language="JavaScript" type="text/javascript">
// Copyright (C) 2019 Comcast Cable Communications, LLC
// Contact Us: http://customer.xfinity.com/contact-us/
// Intended use of this message is to display critical and time sensitive notifications to customers.
/*
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 2
of the License, or (at your option) any later version.
@Merlin04
Merlin04 / gergoplex.def
Last active July 13, 2022 01:56
Gergoplex QMK keymap
// Gergoplex specfic combos
COMB(qwGrv, KC_GRV, KC_Q, KC_W)
COMB(zxTab, KC_TAB, KC_Z, KC_X)
COMB(uyEqu, KC_EQL, KC_U, KC_Y)
COMB(ySclnMins, KC_MINS, KC_Y, KC_SCLN)
COMB(hnQuot, KC_QUOT, KC_H, KC_N)
COMB(pgEsc, KC_ESC, KC_P, KC_G)
COMB(kmHome, KC_HOME, KC_K, KC_M)
@Merlin04
Merlin04 / shell.c.patch
Created September 10, 2020 15:33
Patch to phosh shell.c for mobian pinetab
--- shell.c.old 2020-09-10 08:24:15.719590683 -0700
+++ shell.c 2020-09-10 07:38:30.969310931 -0700
@@ -647,9 +647,13 @@
current = phosh_monitor_get_rotation (priv->primary_monitor);
if (current == degree)
return;
+gint new_degree = degree;
+if(new_degree == 90) {
+ new_degree = 270;
+}
@Merlin04
Merlin04 / mobian_pinetab_fix_phosh.sh
Last active September 10, 2020 17:13
Shell script to patch and recompile Phosh for Mobian on PineTab so that the display isn't upside down
#!/bin/bash
echo "This script will install dependencies and compile/install a slightly modified phosh"
echo "Run this script with sudo"
echo "This will install to /usr/local/bin/phosh, the original will be located at /usr/bin/phosh"
if [ "$EUID" -ne 0 ]
then echo "Please rerun as root"
exit
fi
@Merlin04
Merlin04 / blockly-svg-in-toolbox.ts
Created April 30, 2021 23:54
Modification for Blockly to allow placing SVG elements in the toolbox
// Modification for Blockly to allow placing SVG elements in the toolbox
// Example in toolbox XML (SVG taken from https://commons.wikimedia.org/wiki/SVG_examples):
// <category name="Category" colour="0">
// <svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">
// <rect x="80" y="60" width="250" height="250" rx="20" style="fill:#ff0000; stroke:#000000;stroke-width:2px;" />
// <rect x="140" y="120" width="250" height="250" rx="40" style="fill:#0000ff; stroke:#000000; stroke-width:2px;fill-opacity:0.7;" />
// </svg>
// <block type="text" />
// ...
@Merlin04
Merlin04 / ranking.js
Created August 24, 2021 23:56
Short script to assist with ranking a list of items
const fs = require("fs");
const items = [
// List of items
];
function prompt(input) {
const b = Buffer.alloc(1024);
console.log(input);
fs.readSync(fs.openSync("/dev/tty"), b);
@Merlin04
Merlin04 / devtools-script.js
Created August 6, 2022 02:35
Assemble hack
// Run this in your browser console
function makeColorGradient(frequency1, frequency2, frequency3,
phase1, phase2, phase3,
center, width, len)
{
if (center == undefined) center = 128;
if (width == undefined) width = 127;
if (len == undefined) len = 50;
let a = [];
@Merlin04
Merlin04 / README.md
Last active January 10, 2024 03:08
does this mastodon instance block people i follow? the script

how do i use it

add the bookmarklet as a bookmark in your browser - just copy the entire text of the thing labeled "bookmarklet" and paste that into the url field.

then, go to your instance's settings page and export the CSV of the accounts you follow

then go to the other instance's about page, expand the "moderated servers" list, then run the bookmarklet. choose the CSV you downloaded before, then allow the popup if your popup blocker blocked it.