Skip to content

Instantly share code, notes, and snippets.

@DIG-
DIG- / slugid.php
Last active March 5, 2024 17:00
PHP Slugid
<?php
class Slugid
{
private $bytes;
public function __construct($slug)
{
if (gettype($slug) == "array") {
if (count($slug) != 16) {
throw new InvalidArgumentException("Slugid array must have 16 bytes");
@DIG-
DIG- / convert.py
Created January 14, 2024 15:59
Convert anime
#!/usr/bin/python
import re
from subprocess import run
from argparse import ArgumentParser
from pathlib import Path
from os import environ as ENV
from typing import Iterable, TypeVar, Optional, List, Tuple
from binascii import crc32
T = TypeVar("T")