Skip to content

Instantly share code, notes, and snippets.

@LapisOnTheMoon
LapisOnTheMoon / constellation-importexport.user.js
Last active November 23, 2024 17:59
rcgi constellation import/export
// ==UserScript==
// @name RCGI Constellation Import/Export
// @version 0.1
// @description Import/Export for Constellation
// @author LapisOnTheMoon
// @match https://mrredshark77.github.io/RGCI-Classic/
// @icon https://www.google.com/s2/favicons?sz=64&domain=https://mrredshark77.github.io/RGCI-Classic/
// @updateURL https://gist.github.com/LapisOnTheMoon/a45a8ae903224fa39fa3c9a40c99cdbb/raw/fb3c8ac2453a057d25402738e4eb094aaaaccd1a/constellation-importexport.user.js
// @grant none
// ==/UserScript==
@LapisOnTheMoon
LapisOnTheMoon / FPuzzles-export-to-Sudokupad.user.js
Last active May 25, 2024 16:50
FPuzzles export to Sudokupad
// ==UserScript==
// @name F-Puzzles to CtC/Sudokupad
// @namespace http://tampermonkey.net/
// @version 0.5
// @description Replaces screenshot button on f-puzzles export popup to export to Sven's Sudokupad/CtC web app.
// @author LapisOnTheMoon
// @match https://*.f-puzzles.com/*
// @match https://f-puzzles.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
@LapisOnTheMoon
LapisOnTheMoon / FuckFandom.txt
Created August 14, 2022 19:23 — forked from Craftplacer/FuckFandom.txt
Filter for uBlock Origin that removes most of Fandom's elements from a Gamepedia wiki.
![Adblock Plus 2.0]
! Title: FuckFandom
! Expires: 30 days (update frequency)
! Homepage: https://gist.github.com/Craftplacer/04089c2c666c89e10818124c92d9c65b
fandom.com##.mcf-wrapper
fandom.com##.wds-global-footer
fandom.com##.global-navigation
fandom.com##.top-ads-container
@LapisOnTheMoon
LapisOnTheMoon / regex.js
Last active April 14, 2025 20:19 — forked from anishshobithps/regex.js
Various regex for Discord
module.exports = {
mentions: {
userOrMember: /^(?:<@!?)?(\d{17,19})>?$/,
channel: /^(?:<#)?(\d{17,19})>?$/,
role: /^(?:<@&)?(\d{17,19})>?$/,
snowflake: /^(\d{17,19})$/,
},
misc: {
emoji: /^(?:<a?:\w{2,32}:)?(\d{17,19})>?$/,
username: /.{2,32}/,
@LapisOnTheMoon
LapisOnTheMoon / notegen.py
Last active January 6, 2023 18:25
Generates a README.md with TryHackMe tasks and questions automatically.
#!/usr/bin/python3
import requests
import sys
from datetime import datetime
import re
tag_re = re.compile(r'(<!--.*?-->|<[^>]*>)')
name = "" # change this
code = ""
def get_room_code(s):