Skip to content

Instantly share code, notes, and snippets.

@dark-swordsman
dark-swordsman / download.py
Created April 12, 2026 06:41
CurseForge Server Mods Downloader
# -*- coding: utf-8 -*-
# CurseForge Modpack Downloader
# Reads manifest.json and downloads all mods + NeoForge installer
# Created by darkswordsman (darkswordsman.com)
#
# Before running:
# 1. Export your modpack from CurseForge and extract the zip
# 2. Copy manifest.json into your server folder alongside this script
# 3. Copy the contents of the overrides/ folder into your server folder
@dark-swordsman
dark-swordsman / gist:9619d0b50e3e67c2499b0a9778c97a07
Last active March 26, 2026 03:29
AI Resources - How to Contact your Representatives and Sources for Evidence of AI Harm

AI Resources

A list of resources pertaining to issues regarding AI and ways to make an impact in society.

I am currently working on a private repository where I wrote this document. However, I wanted to share it in a gist now so it can be shared while I take the time to work on that repository.

The purpose of this document is to provide resources for people to contact their representatives if they wish to advocate against AI and it's harmful aspects, in order to regulate or stop AI development in various ways.

Please do share with people you know if this is a topic you care about. Thank you.

test
@dark-swordsman
dark-swordsman / example.json
Created January 26, 2023 15:06
example JSON
{
"doe": "a deer, a female deer",
"ray": "a drop of golden sun",
"pi": 3.14159,
"xmas": true,
"french-hens": 3,
"calling-birds": [
"huey",
"dewey",
"louie",
@dark-swordsman
dark-swordsman / image-data-linter.py
Created October 5, 2022 08:22
Blender Image Auto Save on Ctrl + S
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// ==UserScript==
// @name AnimePiracyPlace Bot
// @namespace https://gist.github.com/dark-swordsman/79f84637b6c763936424d22506323715
// @version 23
// @description Bot for r/Ianimepiracy!
// @author NoahvdAa
// @match https://www.reddit.com/r/place/*
// @match https://new.reddit.com/r/place/*
// @connect reddit.com
// @connect animepiracy.darkswordsman.com
@dark-swordsman
dark-swordsman / place-ap.user.js
Last active April 4, 2022 05:45
animepiracy auto place
// ==UserScript==
// @name AP Bot (from PlaceNL)
// @namespace https://github.com/PlaceNL/Bot
// @version 22
// @description De bot voor PlaceNL!
// @author NoahvdAa, dark-swordsman
// @match https://www.reddit.com/r/place/*
// @match https://new.reddit.com/r/place/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @require https://cdn.jsdelivr.net/npm/toastify-js
@dark-swordsman
dark-swordsman / ap_tamper_script.user.js
Last active April 3, 2022 21:01
r/animepiracy tampermonkey script
// ==UserScript==
// @name ap
// @namespace http://tampermonkey.net/
// @version 1.0
// @description try to take over the canvas!
// @author dark
// @match https://hot-potato.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// ==/UserScript==
# REGISTER DIRECTORY
# $t0 array length persist
# $t1 stack pointer address persist
# $t2 current index
# $t3 current address
# $t4 base number temp
# $t5 next number temp
# $t6 temporary number temp
# $t7 bubble sort -1 index limit
# $t8 swap true or false
@dark-swordsman
dark-swordsman / clock.js
Created April 29, 2017 19:25
Clock Function
var t = document.getElementById("currentTime");
function updateTime(){
var currentTime = new Date();
var hours = currentTime.getHours();
var minutes = currentTime.getMinutes();
var seconds = currentTime.getSeconds();
// if hours is in the PM, make it non-military
if(hours > 12){
var d_hours = hours - 12;