Skip to content

Instantly share code, notes, and snippets.

@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
Created March 6, 2026 05:06
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