Skip to content

Instantly share code, notes, and snippets.

View ghostdevv's full-sized avatar
🍋
Well, when, life, gives, you, lemons;

Willow (GHOST) ghostdevv

🍋
Well, when, life, gives, you, lemons;
View GitHub Profile
@ghostdevv
ghostdevv / create-user.sh
Last active July 9, 2025 23:11
create-user-script
#!/bin/bash
# Check if script is run with root privileges
if [ "$EUID" -ne 0 ]; then
echo "Please run this script as root or with sudo"
exit 1
fi
# Function to validate username
validate_username() {
@ghostdevv
ghostdevv / README.md
Last active December 8, 2025 21:23
BlueSky Location Mocking User Script

Warning

This may potentially violate BlueSky's ToS, or even local laws. As such it's probably best that you just don't use BlueSky for DMs until someone invents a time machine. If you decide to use this anyway, I'm certainly not responsible. I just did this for the funsies!

This ViolentMonkey user script intercepts the fetch request to https://bsky.app/ipcc which, if you're in the UK, has a response like this:

{"countryCode":"GB","isAgeRestrictedGeo":true}
@ghostdevv
ghostdevv / guild-to-event.js
Last active November 20, 2025 00:52
guild to event violent monkey
// ==UserScript==
// @name guild to event
// @namespace Violentmonkey Scripts
// @match https://guild.host/events/*
// @grant none
// @version 1.0
// @author Willow (GHOST)
// @description 14/10/2025, 13:39:18
// @homepageURL https://gist.github.com/ghostdevv/029db1614ad8f8e7b74b3e7f28971be3
// @downloadURL https://gist.githubusercontent.com/ghostdevv/029db1614ad8f8e7b74b3e7f28971be3/raw/guild-to-event.js
@ghostdevv
ghostdevv / bcrypt-util.ts
Last active November 20, 2025 00:29
bcrypt util
// Runs with Deno
// deno run --allow-env https://gist.githubusercontent.com/ghostdevv/f42a5c2053bf5d03cefb6bd95925a8a4/raw/bcrypt-util.ts
import { intro, isCancel, log, outro, password, spinner } from 'npm:@clack/[email protected]';
import bcrypt from 'npm:bcryptjs@3';
import pc from 'npm:picocolors@1';
intro('bcrypt util');
const pass = await password({ message: 'Enter your password' });
@ghostdevv
ghostdevv / taskmaster-wiki-hide-scores.js
Last active November 20, 2025 00:49
Taskmaster Wiki Hide Scores userscript
// ==UserScript==
// @name Taskmaster Wiki Hide Scores
// @namespace Violentmonkey Scripts
// @match https://taskmaster.fandom.com/wiki/Contestants
// @grant none
// @version 1.0
// @author -
// @description 16/11/2025, 22:42:51
// @downloadURL https://gist.githubusercontent.com/ghostdevv/3d3f349bda2731f7a62d84f23c05ff2d/raw/taskmaster-wiki-hide-scores.js
// @updateURL https://gist.githubusercontent.com/ghostdevv/3d3f349bda2731f7a62d84f23c05ff2d/raw/taskmaster-wiki-hide-scores.js
@ghostdevv
ghostdevv / listen-time.ts
Last active December 18, 2025 18:22
listenbrainz listen time calculator
/// ListenBrainz Listen Time Calculator
/// Run this in a folder with the .jsonl files from a data export
/// deno run --allow-read --allow-env=TERM --allow-net=musicbrainz.org https://gist.githubusercontent.com/ghostdevv/3fe56e54e544f016fca04d3598197a51/raw/listen-time.ts
///
/// Supports `--cutoff <date>` if you want to only include
/// listens after a given date. E.g. `--cutoff 2025-11-20`
///
/// If musicbrainz has a rate limit issue then wait a few
/// seconds and re-try. Needs a built-in retry at some point.