Skip to content

Instantly share code, notes, and snippets.

View wont-stream's full-sized avatar
🔗
https://ipv4.army

Unstream wont-stream

🔗
https://ipv4.army
View GitHub Profile
@henk23
henk23 / Caddyfile
Last active July 20, 2024 00:16
Caddy with json logs and fail2ban
# /etc/caddy/Caddyfile
{
log {
output file /var/log/caddy/caddy.log
format json
}
}
(logging) {
@DubyaDude
DubyaDude / DubyasCleanupOfDiscord.css
Last active July 6, 2024 21:15
My list of annoying stuff I hide/disable in Discord using Quick CSS
/* Dubyas list of annoying stuff he hides in discord using Quick CSS */
/* Disable emoji inspection upsell (ty Regalia) */
[class^="nitroTextAndBadge_"], button:has([class^="premiumIcon_"]),
[class^="emojiSection_"] [class^="flex_"] div[class*="text-sm-normal"]
{
display:none;
}
/* Disable Gift Button(s) (in chat) */
@Vendicated
Vendicated / canvas-web.js
Last active June 20, 2024 02:27
Discord PFP color extraction like they do for the default banner colors
// If you're using NodeJS: Ignore this file
// If you're using Web: Delete the require("canvas") line in index.js and copy paste these functions into index.js
function createCanvas() {
return document.createElement("canvas");
}
function loadImage(url) {
return new Promise((resolve, reject) => {
const img = new Image;