Skip to content

Instantly share code, notes, and snippets.

View faretek1's full-sized avatar
🧐
This place has an ancient name...

rtk faretek1

🧐
This place has an ancient name...
View GitHub Profile
@faretek1
faretek1 / yes.py
Last active March 2, 2026 20:16
yes
any(map(print, __import__("itertools").count()))
@faretek1
faretek1 / LICENSE
Last active March 2, 2026 20:09
SHITPOO LICENSE
SHITPOO LICENSE V1.0
Copyright (c) 2026 faretek ([email protected])
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to purely, restrictively, exclusively, singularly,
explicitly, implicitly, namespaicingly and intentionally to only defecate upon the "Software", and to permit
persons to whom the Software is furnishèd to do so, subject to the following conditions:
The above and nether notice and this permission notice exclusively must be within the superposition of all copies or
@faretek1
faretek1 / palindrome.py
Created February 17, 2026 12:19
check if smth is a palindrome. 1-liner-ified. i do not recommend using this code.
s = input(">")
print(all(a == b for a, b in zip(s, s[::-1])))
@faretek1
faretek1 / gist.css
Created October 12, 2025 12:12
make github gists red because evil
[data-color-mode="dark"][data-dark-theme="dark"],
[data-color-mode="dark"][data-dark-theme="dark"] ::backdrop,
[data-color-mode="auto"][data-light-theme="dark"],
[data-color-mode="auto"][data-light-theme="dark"] ::backdrop {
--button-danger-fgColor-rest: #fa5e55;
--button-primary-bgColor-active: #2e9a40;
--button-primary-bgColor-disabled: #105823;
--button-primary-bgColor-hover: #29903b;
--button-primary-borderColor-disabled: #105823;
--color-ansi-cyan: #39c5cf;
@faretek1
faretek1 / fernet-string.py
Last active September 20, 2025 14:55
utility script i made that lets you turn strings into fernet keys, generate string-fernet keys, and encrypt/decrypt data with the default key (`AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA`), all from a CLI
import warnings
import argparse
from cryptography.fernet import Fernet
from secrets import token_urlsafe
from base64 import urlsafe_b64encode
from pathlib import Path
__file_path__ = Path(__file__).resolve()
__pwd__ = __file_path__.parent
@faretek1
faretek1 / github-dark-red-theme.css
Last active August 30, 2025 10:11
CSS file you can use to make github red using the stylus chrome extension.
[data-color-mode="dark"][data-dark-theme="dark"],
[data-color-mode="dark"][data-dark-theme="dark"] ::backdrop,
[data-color-mode="auto"][data-light-theme="dark"],
[data-color-mode="auto"][data-light-theme="dark"] ::backdrop {
--button-danger-fgColor-rest: #fa5e55;
--button-primary-bgColor-active: #2e9a40;
--button-primary-bgColor-disabled: #105823;
--button-primary-bgColor-hover: #29903b;
--button-primary-borderColor-disabled: #105823;
--color-ansi-cyan: #39c5cf;
@faretek1
faretek1 / sessionid decode.py
Last active May 30, 2025 07:42
decode a scratch session id (the main part) into json data
# https://gist.github.com/FAReTek1/4834beace3876cd60912094c3c637f3a
import base64
import json
import string
import zlib
from datetime import datetime
def b62_decode(s: str):
@faretek1
faretek1 / goboscript @ syntax new commands.md
Last active October 11, 2025 22:22
Hopefully comprehensive list of all commands that should work with the hypothetical '@' syntax in goboscript

This is a concept for an @ syntax for referencing sprites in goboscript.

  • @gobo references the sprite gobo
  • @ references the current sprite
  • @(expr) allows getting a sprite dynamically - with the name which is generated by expr
@.direction += 15;
@.direction -= 15;
# *=, /=, //=, %= would need to use point in direction block 
@faretek1
faretek1 / autogen.py
Last active August 2, 2025 11:55
goboscript package utility script (autogen.py)
"""
This is a utility script for use when making goboscript packages that copy+pastes the package into the test/backpack folder
It can also update goboscript.toml with the dependecies from test/goboscript.toml.
v1.1
Last updated: 2025-03-23
Gist location: https://gist.github.com/FAReTek1/7c273db51266a11942171e24394ce324
"""
import os
@faretek1
faretek1 / bezier.gs
Created January 25, 2025 20:43
bezier.gs test
# Module dealing with all your bezier stuffies
# https://pomax.github.io/bezierinfo/
%include std\\geo2d.gs
%include std\\string.gs
# --- Structs ---
# --- Quad Bezier ---
func bezier2(Pt2D p0, Pt2D p1, Pt2D p2, t) Pt2D {