Skip to content

Instantly share code, notes, and snippets.

View foone's full-sized avatar

Foone Turing foone

View GitHub Profile
<?php
# Parameters:
# name: The name field the user supplied, minus any tripcode (before #)
# email: User supplied email field
# sub: user supplied subject field
# com: user supplied comment field (before or after wordfilters? dunno)
# md5: md5 of the supplied image. null if no image.
# ip: the IP of the user, in unsigned integer (packed) form
# mod: true if the user is a mod
#
@foone
foone / demisexual.flag
Last active February 8, 2024 02:38
pre-release VGAPride DSL files
$names=["demisexual"]
$description="The Demisexual pride flag"
// Unknown creator. Maybe research further?
$textcolor=$black
// The trick here is that we define the top&bottom colors twice, so this ends up looking like we have variable heights
$center_stripe = RGB(110, 0,112)
$bottom = RGB(210,210,210)
vertical{
@foone
foone / censorlist.json
Last active December 3, 2023 12:54
Censor list for the TV Guardian 1.05 version
{
"wordlist": {
"A": {
"trailers": [0],
"flags": ["NEGATIVE MATCH"],
"replacement_offset": 1,
"replacement_word": "TAIL"
},
"A CONDOM": {
"trailers": [0],
@foone
foone / chirp font urls.txt
Last active November 7, 2023 03:54
Filter for the new twitter font
https://abs.twimg.com/fonts/chirp-regular-web.woff
https://abs.twimg.com/fonts/chirp-bold-web.woff
https://abs.twimg.com/fonts/chirp-heavy-web.woff
https://abs.twimg.com/fonts/chirp-medium-web.woff
import struct, os, sys,array, glob, itertools, argparse
from PIL import Image
A8SIGNATURE =0xA0A1A2A3
COMPRESS_NONE = 0
COMPRESS_RLE = 1
COMPRESSION_FORMATS=(COMPRESS_NONE, COMPRESS_RLE)
ESCAPE_CODE = 0
@foone
foone / dam.proto
Created March 1, 2021 17:14
The DAM 3D format of Matterport
// type i
message DAMFile {
repeated Chunk chunk = 1;
repeated QuantizedChunk quantized_chunk = 2;
}
// type "o"
message Chunk {
required Vertices vertices = 1;
required Faces faces = 2;
import struct,sys,os
name=sys.argv[1]
class AllBitsTester(object):
def __init__(self):
self.allbits =0
def test(self, x):
self.allbits|=x
def completed(self):
return self.allbits == 1023
def message(self):
@foone
foone / sports.txt
Created May 13, 2021 20:48
A list of all sports
1ST PLACE
2020
2021
2ND PLACE
3RD PLACE
4H
5K
ACADEMIC
ACHIEVEMENT
AGRICULTURE
import os,glob,sys
images=glob.glob(sys.argv[1])
images.sort()
if (len(images)&1) == 1:
print("Odd number of items! Can't split")
sys.exit(1)
midpoint = len(images)//2
first_half = images[:midpoint]
last_half = images[midpoint:][::-1]
@foone
foone / licenses.txt
Last active July 28, 2022 07:51
Silverado Source Code Packages
######## 7zip-3.11 ########
######## HostAp_wpa_supplicant-hostapd-2.3-devel ########
######## Toms_Math_Library-0.10 ########
######## acl-2.2.52 ########
######## alsa-conf-base-1.0.27.2 ########
######## alsa-lib-1.0.27.2 ########
######## alsa-plugins-1.0.27 ########
######## alsa-states-0.2.0 ########
######## alsa-utils-1.0.27.2 ########
######## apple_lossless_audio_codec-oct_28_2011 ########