Skip to content

Instantly share code, notes, and snippets.

@jonasfroeller
jonasfroeller / transparent-img.batch
Created December 22, 2025 14:00
Magick for clean transparent images.
magick "static\logo.png" -fuzz 65% -fill none -floodfill +0+0 white -floodfill +1023+0 white -floodfill +0+1023 white -floodfill +1023+1023 white -channel alpha -morphology Erode Octagon:1 +channel "static\favicon.png"
@jonasfroeller
jonasfroeller / min-zip.bash
Created December 22, 2025 13:57
Minimal zip.
git ls-files -o --exclude-standard --cached | zip xxx.zip -@
[
{
"country": "Afghanistan",
"currency_name": "Afghanistan Afghani",
"languages": [
"Balochi",
"Dari",
"Pashto",
"Turkmenian",
"Uzbek"
@jonasfroeller
jonasfroeller / vercel.json
Created August 4, 2025 12:30
vercel.json
{
"rewrites": [
{ "source": "/(.*)", "destination": "/index.html" }
],
"headers": [
{
"source": "/(.*).js",
"headers": [
{
"key": "Content-Type",
@jonasfroeller
jonasfroeller / git.push.all.bat
Created July 11, 2025 12:24
Push to all git remotes at once: `for /f %r in ('git remote') do git push %r --all`.
@echo off
for /f %%r in ('git remote') do git push %%r --all
@jonasfroeller
jonasfroeller / find.playwright.executablePath.cjs
Created June 15, 2025 17:10
`error: launch: Executable doesn't exist at C:\Users\jfroe\AppData\Local\ms-playwright\chromium-1178\chrome-win\chrome.exe` is really annoying.
const { chromium } = require('playwright');
console.log(chromium.executablePath());
@jonasfroeller
jonasfroeller / scrape_status.py
Last active May 21, 2025 16:46
Scrape https://cron-job.org service statuses as SVG badge.
import asyncio
from playwright.async_api import async_playwright
from bs4 import BeautifulSoup
import sys
import os
import re
import argparse
def sanitize_service_name_for_filename(service_name_str):
if not isinstance(service_name_str, str):
@jonasfroeller
jonasfroeller / fm4.css
Created April 23, 2025 12:55
stylus collection
@-moz-document url("https://fm4.orf.at/player/live") {
.wrapper {
margin-left: auto !important;
margin-right: auto !important;
display: block !important;
}
}
# β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
# CONFIGURATION
# β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
$jsonSource = "https://gist.githubusercontent.com/jonasfroeller/e466eefd7e359b0b9afaae0325fa633f/raw/0d544d28d680ff20df8a492b477c152ead0be149/webfonts.json"
# β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
# FETCH & PARSE JSON
# β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”
if (Test-Path $jsonSource) {
# Local file
@jonasfroeller
jonasfroeller / env-store.tsx
Created March 15, 2025 12:01
A modern, feature-rich environment variable management interface built with React and shadcn/ui.
import { useState } from 'react';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
import { Switch } from '@/components/ui/switch';
import {
Table,
TableBody,
TableCell,
TableHead,
Morty Proxy This is a proxified and sanitized view of the page, visit original site.