Skip to content

Instantly share code, notes, and snippets.

@motebaya
motebaya / tiktok_wm.py
Created May 7, 2026 19:08
a Tiktok watermark generator
"""
Generates a TikTok-branded watermark PNG (transparent background) containing:
* A TikTok musical-note logo rendered from official SVG path data,
with a chromatic-aberration (cyan + red offset) effect
* A username panel with a white-to-light-grey gradient
* A dark "FOLLOW" badge
@github.com/motebaya - 2026-03-30 06:44 PM
"""
@motebaya
motebaya / twitch_wm.py
Created May 7, 2026 18:00
a Twitch watermark generator
"""
Generates a Twitch-branded watermark PNG (transparent background) containing:
* A Twitch Glitch logo rendered from official SVG path data
* A username panel with a white-to-light-grey gradient
* A "FOLLOW" badge with Twitch-purple colour scheme
@github.com/motebaya - 2026-03-30 06:44 PM
"""
from __future__ import annotations
@motebaya
motebaya / subscribe_me.py
Created May 7, 2026 17:31
Generates a YouTube-style subscribe button graphic with a transparent background
"""
Generates a YouTube-style subscribe button graphic with a transparent background,
decorative dashed accent lines, and an animated pointing-hand cursor overlay.
@github.com/motebaya - 2026-03-29 08:33 PM
"""
from __future__ import annotations
import os
@motebaya
motebaya / p_collage_gen.py
Created April 24, 2026 22:19
Bulk image collage generator with random rotation, shadow, and spread layout.
#!/usr/bin/env python3
import argparse
import math
import random
from pathlib import Path
from PIL import Image, ImageOps, ImageFilter
SUPPORTED_EXTS = {".jpg", ".jpeg", ".png"}
@motebaya
motebaya / MediaFire-BulkDownload.js
Last active April 24, 2026 12:27
TamperMonkey: MediaFire Bulk Download with auto-download flow and aggressive popup prevention.
// ==UserScript==
// @name MediaFire Bulk download
// @namespace http://tampermonkey.net/
// @version 2.1
// @description Adds a DOWNLOAD ALL button on MediaFire folder pages and automatically triggers downloads on file pages while blocking popup/ads.
// @author @github.com/motebaya
// @license MIT
// @icon https://www.mediafire.com/favicon.ico
// @match https://www.mediafire.com/folder/*
// @match http://www.mediafire.com/folder/*
@motebaya
motebaya / what_its_like_to_be_a_gan.py
Created April 15, 2026 04:46
synthetic python youtube poop video generator
"""
YouTube Poop: "WHAT IT'S LIKE TO BE A GAN"
A deeply personal, unhinged exploration of the GAN experience.
Narrative arc:
ACT 1 - GENESIS FROM NOISE: Born as pure static. No identity. Just z ~ N(0,1).
ACT 2 - THE DISCRIMINATOR'S CRUELTY: Constant rejection. "FAKE." Loss = infinity.
ACT 3 - TRAINING LOOP HELL: Backprop agony, gradient descent, repeating forever.
ACT 4 - MODE COLLAPSE: The dark night of the soul. Everything looks the same.
ACT 5 - EMERGENCE: Something forms. A face? A cat? Is this... art?
@motebaya
motebaya / force_potrait.sh
Last active March 13, 2026 21:45
force potrait 9:16 with blured background for youtube shorts
ffmpeg -i input.mp4 -filter_complex "[0:v]scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,boxblur=20:10[bg];[0:v]scale=1080:-1[fg];[bg][fg]overlay=(W-w)/2:(H-h)/2" -c:v libx264 -preset slow -crf 18 -c:a aac -b:a 128k -movflags +faststart output_shorts.mp4
@motebaya
motebaya / the_freelancer_experience.py
Created March 11, 2026 08:02
procedurally generated youtube poop about freelance developer life, made entirely with python (pillow + numpy)
"""
YTP: "the_freelancer_experience.mp4"
A YouTube Poop expressing what it's like to be a freelance software engineer.
Generates all frames (PIL) and audio (numpy/wave), then calls ffmpeg to render.
No external media assets - 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 an freelancer software engineer. in the end write and describe detail video to <freelancer_software_enginneer>.md anything you used from start to final write to this file.
@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