Skip to content

Instantly share code, notes, and snippets.

@Rafaeltheraven
Rafaeltheraven / makesite.sh
Created June 7, 2025 09:39
A script to quickly create an nginx config file
#!/bin/bash -e
#check for root
if [ "$EUID" -ne 0 ]
then
echo "Please run as root"
exit 1
fi
#formatting and echoing
@Rafaeltheraven
Rafaeltheraven / ponies.py
Created May 25, 2025 15:06
Maunium Stickerpicker -> MSC2545 Packs
import os
import json
import requests
def convert_to_msc2545_pack(data):
display_name = data["title"]
id = data["id"]
stickers = {}
shortcode = ""
@Rafaeltheraven
Rafaeltheraven / scan2pdf.sh
Created August 13, 2024 10:30
A bash script to make scanning (multiple) pages into a single PDF easy
#!/bin/bash
filename="$1"
if [[ "$filename" == "" ]]
then
filename="scan"
fi
fin=False
@Rafaeltheraven
Rafaeltheraven / vlc.js
Created December 14, 2022 11:23
Open in VLC button for all platforms
const parseRegex = /.*%0A.*%0A(https%3A%2F%2F(.*))/;
function iOS() { // We have to do this in JS because Apple sucks cock
return [
'iPad Simulator',
'iPhone Simulator',
'iPod Simulator',
'iPad',
'iPhone',
'iPod'