Skip to content

Instantly share code, notes, and snippets.

View TheOnlyWayUp's full-sized avatar
🎧
audiobooks for fanfiction

Dhanush R TheOnlyWayUp

🎧
audiobooks for fanfiction
View GitHub Profile
function memfrob(str) {
var out = "";
for (var i = 0; i < str.length; i++) {
out += String.fromCharCode(str.charCodeAt(i) ^ 42);
}
return out;
}
function apply(id, frobbed) {
document.getElementById(id).href = memfrob(atob(frobbed));
@thesamesam
thesamesam / xz-backdoor.md
Last active January 9, 2026 08:45
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@Geczy
Geczy / readme.md
Last active January 10, 2026 08:23
Migrate Coolify to a new server
@KroniK907
KroniK907 / GitButler-WSL.md
Last active February 11, 2026 18:01
Installing GitButler on Windows via WSL

Installing GitButler on WSL Ubuntu - A Complete Guide

Last updated: 2025-09-11 Installing Gitbutler Version: 0.16.0

This guide will provide a complete walkthrough for getting GitButler setup and functioning on a windows environment using Windows Subsystem for Linux (WSL).

Please note that GitButler on windows via wsl is not well tested and not officially supported. Also, please note that installing and running GitButler on windows and pointing it to a WSL project folder or visa versa is not currently supported.

Prerequisites:

@fardjad
fardjad / considerations-for-running-postgres-on-nfs.md
Last active January 25, 2026 19:16
[Considerations for Running Postgres on NFS] Considerations for running a Postgres database on an NFS share #blog #postgres #nfs #fsync #fsexport #mount

Considerations for Running Postgres on NFS

Background

Over the weekend, I decided to try running a Postgres database in my Homelab. In my current setup, the most convenient option for storage is NFS. However, NFS is especially tricky for databases. A misconfigured setup can lead to performance or data corruption issues.

After watching

// ==UserScript==
// @name Photopea Premium
// @namespace http://tampermonkey.net/
// @version 2024-02-03
// @description Unlock Photopea Premium by patching their JS
// @author mat
// @match https://www.photopea.com/
// @match https://www.photopea.com/?utm_source=homescreen
// @icon https://www.google.com/s2/favicons?sz=64&domain=photopea.com
// @grant GM_webRequest
@TheOnlyWayUp
TheOnlyWayUp / Dockerfile
Last active February 10, 2024 22:24
Dockerfile for projects with Python Backends and Javascript Frontends. Star if useful, thanks!
FROM node:20
WORKDIR /build
COPY src/frontend/package*.json .
RUN rm -rf node_modules
RUN rm -rf build
RUN npm install
COPY src/frontend/. .
RUN npm run build
# Thanks https://stackoverflow.com/q/76988450
@padeoe
padeoe / README_hfd.md
Last active February 4, 2026 14:47
CLI-Tool for download Huggingface models and datasets with aria2/wget: hfd

🤗Huggingface Model Downloader

Note

(2025-01-08) Add feature for 🏷️Tag(Revision) Selection, contributed by @Bamboo-D.
(2024-12-17) Add feature for ⚡Quick Startup and ⏭️Fast Resume, enabling skipping of downloaded files, while removing the git clone dependency to accelerate file list retrieval.

Considering the lack of multi-threaded download support in the official huggingface-cli, and the inadequate error handling in hf_transfer, This command-line tool leverages curl and aria2c for fast and robust downloading of models and datasets.

Features

  • ⏯️ Resume from breakpoint: You can re-run it or Ctrl+C anytime.
DELAY 1000
GUI r
DELAY 500
STRING cmd
SHIFT CTRL ENTER
DELAY 1000
LEFT
ENTER
DELAY 1000
@TheOnlyWayUp
TheOnlyWayUp / imageFunctions.py
Last active March 6, 2022 14:01
Example of BytesIO and PIL for modifying images without saving them
domain = 'watermark' # just an example of how to use bytesio with PIL, works better if you know more about the images you're using instead of using random ones which can have random dimensions.
import aiohttp
from urllib.parse import unquote
from io import BytesIO
from PIL import Image, ImageDraw, ImageFont
async def returnRandomCat():
async with aiohttp.ClientSession() as session:
async with session.get("https://aws.random.cat/meow") as resp: