Skip to content

Instantly share code, notes, and snippets.

@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
@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;