Skip to content

Instantly share code, notes, and snippets.

View skorotkiewicz's full-sized avatar
💻
\coding/

Sebastian Korotkiewicz skorotkiewicz

💻
\coding/
View GitHub Profile
@skorotkiewicz
skorotkiewicz / Justfile
Last active April 1, 2026 01:45
Justfile for Rust projects with pre-commit
# Justfile
# https://github.com/casey/just
default:
@just --list
build:
cargo build --release
run *args:
@skorotkiewicz
skorotkiewicz / video-music-vertical.sh
Last active February 28, 2026 00:08
video music with ffmpeg
#!/bin/bash
# Format text with word wrap (35 characters per line for vertical)
fold -w 35 -s original_credits.txt > credits.txt
# Get audio duration
DURATION=$(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 audio.wav)
# Create vertical video with scrolling credits
ffmpeg -f lavfi -i color=c=black:s=1080x1920:d=$DURATION \
@skorotkiewicz
skorotkiewicz / new_lyrics.js
Created February 27, 2026 23:36
new lyrics style
function convertToNewStyleLyrics(standardLyrics) {
// Remove section markers like [Verse 1], [Chorus], etc.
let converted = standardLyrics.replace(/\[.*?\]\n?/g, '');
// Convert to lowercase
converted = converted.toLowerCase();
// Remove extra blank lines (replace multiple newlines with single newline)
converted = converted.replace(/\n{3,}/g, '\n');
@skorotkiewicz
skorotkiewicz / update-video-titles.sh
Last active January 26, 2026 10:50
Removes all metadata from video files and sets Title to match filename.
#!/bin/bash
#
# update-video-titles.sh
#
# Description:
# Removes all metadata from video files and sets Title to match filename.
#
# Requirements:
# sudo pacman -S perl-image-exiftool mkvtoolnix-cli
#
@skorotkiewicz
skorotkiewicz / antigravity-fix.sh
Created January 22, 2026 02:53
antigravity fix
#!/bin/bash
UNIT_NAME="antigravity-$(date +%s)"
APP_BIN="/usr/bin/antigravity"
TRIGGER="Extension host with pid"
echo "[*] Start as: $UNIT_NAME"
# Build the command with all arguments properly quoted
if [ $# -eq 0 ]; then
# No arguments provided
@skorotkiewicz
skorotkiewicz / cargo-remote.md
Created January 7, 2026 06:26
cargo remote build
$ pacman -S rsync
$ cargo install cargo-remote
$ nano ~/.config/cargo-remote/cargo-remote.toml 
[[remote]]
name = "remote-server"
host = "mod@ml"
@skorotkiewicz
skorotkiewicz / 1_generate.py
Created December 15, 2025 11:24
generate dataset for password generator RNN/LLM
import json
import random
import string
from faker import Faker
fake = Faker()
# Configuration
OUTPUT_FILE = "json_password_train.jsonl"
NUM_SAMPLES = 10000 # Higher count helps the model learn the JSON structure perfectly
@skorotkiewicz
skorotkiewicz / jsonc.py
Created December 6, 2025 06:44
The tool stores comments in a .jsonc file and maintains clean JSON in the original file.
#!/usr/bin/env python3
"""
JSON with Comments editor - Edit JSON files with comments
Usage:
./jsonc <file> - Edit JSON with comments in your editor
cat <file> - View clean JSON without comments
The tool stores comments in a .jsonc file and maintains clean JSON in the original file.
"""
@skorotkiewicz
skorotkiewicz / play_random_movie_by_year.sh
Created December 4, 2025 14:03
Play random movies by year with mpv
#!/bin/bash
## Play one random movie from before 2008
#./play_random_movie_by_year.sh 2008
## Play ALL movies from before 2008 in random order
#./play_random_movie_by_year.sh 2008 --playlist=true
# Default configuration
MOVIE_DIR="HD"
@skorotkiewicz
skorotkiewicz / IOFMS.md
Created October 24, 2025 07:40
International Ocean Forensic Monitoring System (IOFMS)

International Ocean Forensic Monitoring System (IOFMS)

A Global Initiative for Justice, Science, and Ocean Security

White Paper - Draft v1.0
Date: October 2025
Status: Concept Proposal


Executive Summary