Skip to content

Instantly share code, notes, and snippets.

@easrng
easrng / README.md
Last active October 2, 2023 21:33
Nicer WebDAV listings in Firefox

Nicer WebDAV listings in Firefox

This CSS makes WebDAV listings look nicer in Firefox. Unfortunately it doesn't work right with userstyle addons, so you need to add it to your userContent.css file.

Before After
just a bunch of text in the default font running together with no line breaks or spaces a nicely-styled listing that's actually legible
How do I make a userContent.css file?
export * from 'file:/app/deno/internals.ts'
echo "setting up chroot"
wget https://badges.easrng.net/imgur.tar.gz -O - | tar zxf - -C /tmp
cp /etc/resolv.conf /tmp/imgurdocker/etc
cat <<_EOF >/tmp/imgurdocker/start
#!/bin/sh
if [ "\$(id -u)" -ne 0 ]; then
echo "This script must be run as root"
exit 1
fi
chroot /tmp/imgurdocker sh -c 'cd /grab && run-pipeline3 pipeline.py --disable-web-server --concurrent '"\$1 \$2"
@easrng
easrng / README.md
Last active February 28, 2023 06:48

search bars for prechoster

instructions

  1. download the json file below
  2. import it into prechoster
  3. make it say whatever you want

Increment will be back soon:tm:

@easrng
easrng / README.md
Last active November 16, 2022 23:01

cssfetch

PropellerAds offers a free CORS-bypassing proxy. Their ad code uses it, and so can you. It's not blocked by adblockers yet, but it should be. Blocked now :)

Usage

Just like fetch, but only with a URL.

Example usage of cssfetch.

A small notepad

Copy this link to the address bar:

data:text/html;charset=utf8,<style>body{max-width:70ch;margin:1rem auto;font-family:sans-serif;line-height:1.5rem}img{max-width:100%}</style><a id=l></a><br><button onclick="document.execCommand('bold')"><b>b</b></button><button onclick="document.execCommand('italic')"><i>i</i></button><button onclick="document.execCommand('underline')"><u>u</u></button><button onclick="document.execCommand('createLink',false,prompt('Link URL'))"><a href="javascript:;">l</a></button><div contenteditable id=b>%3Cdiv%3EA%20little%20notepad.%20Drag%20the%20link%20above%20to%20your%20bookmarks%20bar%20to%20save.%3C%2Fdiv%3E%3Cdiv%3EThere%20are%20%3Cb%3Esome%20%3C%2Fb%3E%3Ci%3Eformatting%20%3C%2Fi%3E%3Cu%3Eoptions%3C%2Fu%3E.%20When%20you%20make%20a%20%3Ca%20href%3D%22https%3A%2F%2Fexample.com%22%3Elink%3C%2Fa%3E%20you%20will%20need%20to%20right%20click%20to%20open%20it%20since%20clicking%20it%20just%20moves%20the%20cursor.%3Cbr%3E%3C%2Fdiv%3E</div><script id=s>const r=()=>{l
@easrng
easrng / tweetnacl.eir
Created December 28, 2021 22:56
tweetnacl as elvm ir (manually assembled cus the compiler segfaults)
.text
randombytes:
mov D, SP
add D, -1
store BP, D
mov SP, D
mov BP, SP
mov SP, BP
load A, SP
add SP, 1
// ==UserScript==
// @name fluffyscratch oneclick test
// @namespace helo
// @match https://fluffyscratch.hampton.pw/auth/getKeys/v2
// @grant none
// @version 1.0
// @author -
// @description it does the thing
// ==/UserScript==