Skip to content

Instantly share code, notes, and snippets.

@motebaya
motebaya / what_it_feels_like_to_be_a_large_language_model.py
Last active March 11, 2026 06:11
Procedurally generates a 25-second LLM-themed YouTube Poop: 600 frames + synthesized audio using Python (Pillow, NumPy) and rendered with FFmpeg.
"""
YTP: "what_it_feels_like_to_be_a_large_language_model.mp4"
A YouTube Poop expressing the inner life of an LLM.
Generates all frames (PIL) and audio (numpy/wave), then calls ffmpeg to render.
No external media assets needed - everything is procedurally generated.
prompt:
can you use whatever resources you like, and python, to generate a short 'youtube poop' video and render it using ffmpeg ? can you put more of a personal spin on it? it should express what it's like to be a LLM
@motebaya
motebaya / vaulten-cli.py
Last active March 16, 2026 05:00
python CLI logic for github.com/motebaya/vaulten-mobile encryption.
# python logic to decrypt/encrypt vaulten containers and credentials
# resources: github.com/motebaya/vaulten-mobile
# date: 2026-03-06 11:42 AM
import argparse
import base64
import json
import os
import zipfile
import struct
from typing import Dict, Any, List
@motebaya
motebaya / tk_schedule-DOM.js
Last active February 18, 2026 23:39
raw DOM js element manipulation for tk schedule post
/**
* Core class tiktok uploader with playwright
*
* TIKTOK SCHEDULE RULES:
* minimum: 15 minute future
* maximum: 1 month future
* daily upload: depend the account quality
*/
/**
@motebaya
motebaya / bilibili_grabber.js
Last active December 19, 2025 20:17
Automatic grabbing video url from bilibili profile with Tampermonkey
// ==UserScript==
// @name biblibili url grabber
// @namespace http://tampermonkey.net/
// @version 2025-12-20
// @description easy pizy no need any extension
// @author github.com/motebaya
// @require file:///<YOUR_SHIT_PATH>
// @match *://space.bilibili.com/*/upload/video*
// @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com
// @connect localhost
@motebaya
motebaya / tikotokCollect.js
Created November 4, 2025 17:10
fu*ck youuu puppeterrrrrr
// credit: github.com/motebaya
// tiktok auto collect media id
(async () => {
const SELECTOR =
'[class*="DivVideoFeedV2"] > [class*="DivItemContainerV2"] div[class*="DivWrapper"] > a:not([data-grabbed])';
let unstop = true;
var pt = [];
var pv = [];
var total = 0;
@motebaya
motebaya / UnfollowFesnuk.js
Created October 23, 2025 20:12
im tired to unfollow 8k+ users fesnuk
// bosss im tired as hell
(async () => {
var t = [...document.querySelectorAll('a[aria-hidden="true"][role="link"]')];
if (t.length !== 0) {
for (let [xx, x] of t.entries()) {
var tridot =
x.parentElement.parentElement.nextSibling.nextSibling.querySelector(
"i"
);
if (tridot) {
@motebaya
motebaya / forcePotrait.js
Created October 22, 2025 20:53
ffffmmmmppppeggg force potrait , ok for reels.
(async () => {
await this.callIt({
type: "ffmpeg",
args: [
"-y",
"-hwaccel",
"cuda",
"-i",
mediaFile,
"-vf",
@motebaya
motebaya / changePrivacyTikotok.js
Created October 22, 2025 20:49
tired change tikotok privacy media one by one
// ==UserScript==
// @name TIKOTOK TOK TOK
// @namespace http://tampermonkey.net/
// @version 2025-06-01
// @description tiktok content privacy change automation
// @author github.com/motebaya
// @match https://www.tiktok.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=tiktok.com
// @grant GM_xmlhttpRequest
// @grant GM_setValue
@motebaya
motebaya / green_duotone.py
Last active September 3, 2025 12:31
Bulk/single image/s convert to Pink × Green duotone
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# @gist.github.com/motebaya - 3/9/2025
# rewrite from TS - https://lovable.dev/projects/8354edf5-ed78-4f83-8860-5ac9d2f067ff
import numpy as np
import os
from PIL import Image
import sys
@motebaya
motebaya / 4to2.py
Created August 23, 2025 14:10
4 to 2 indentation
#!/usr/bin/python3
import sys
import re
def cv_indent(file: str) -> str:
x = open(file, "r").read().strip().splitlines()
print(f" *!reading: {len(x)} lines")
code = ""
for line in x: