Skip to content

Instantly share code, notes, and snippets.

# SPDX-License-Identifier: MIT
# Author: remittor <remittor@gmail.com>
# Created: 2024
import os
import sys
import glob
import subprocess
import optparse
import random
@thanksshu
thanksshu / check_cf_warp_endpoint.py
Last active December 1, 2025 09:44
Test cloudflare WARP endpoints
"""
Test cloudflare WARP endpoints
Select all the best WARP endpoints
Thanks to https://gitlab.com/Misaka-blog/warp-script#warp-endpoint-ip-优选脚本
"""
import asyncio
import csv
import ipaddress
import logging
@nolanlawson
nolanlawson / scaling_mastodon_down.md
Last active June 27, 2025 11:05
Scaling Mastodon down

Scaling Mastodon down

There is already a guide on scaling your Mastodon server up. This is a short guide on scaling your Mastodon server down.

I.e., maybe you want to run a small instance of <100 active users, and you want to keep your cloud costs reasonable. So you might be running everything on a single machine, with limited memory and CPU. (In my case, I was using a t3.medium instance with 2 vCPUs and 4GB of RAM.) How do you do this?

Note that I'm not a Ruby or Sidekiq expert, and most of this stuff I figured out through trial and error.

@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active September 9, 2025 12:59
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@OdinsPlasmaRifle
OdinsPlasmaRifle / arch_linux_installation.md
Last active October 20, 2025 00:22
LVM on LUKS Arch installation with systemd-boot
@ruario
ruario / latest-firefox.sh
Last active September 8, 2025 21:27
This script will find the latest Firefox binary package, download it and repackage it into Slackware format.
#!/bin/bash
# latest-firefox Version 1.6.3
# Contributer: drgibbon (thanks!)
# This script will find the latest Firefox binary package, download it
# and repackage it into Slackware format.
# I don't use Firefox for regular browsing but it is handy for
# comparative tests against Vivaldi. :P