Skip to content

Instantly share code, notes, and snippets.

@LexManos
LexManos / 1-THOUGHTS
Last active September 30, 2018 13:45
1.12 Recipe enhancements
Basic loading.
To be done on ServerInit. This means things will load multiple times on the client.
Benifits:
Allows us to just nuke the custom recipes every server init
Allows us to have save leve overrides.
Primes us for syncing recipe types/contents S->C {Not gunna happen in 1.12, but I expect Mojang to work twards this in 1.13+}
Cons:
Increases single player server load time. No known stats at the moment but shouldn't be TO bad
Loading Process:
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active March 31, 2026 18:26
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

@bluetechy
bluetechy / gist:dcaa5af71f4a2dc51f940469aa705621
Created November 22, 2017 07:00
Tracking Number Link Generator (UPS, FedEx, DHL)
import re
def tracking_link_html(tracking_number):
regex_handlers = [
(r'\b(1Z ?[0-9A-Z]{3} ?[0-9A-Z]{3} ?[0-9A-Z]{2} ?[0-9A-Z]{4} ?[0-9A-Z]{3} ?[0-9A-Z]|[\dT]\d\d\d ?\d\d\d\d ?\d\d\d)\b', ups_link),
(r'(\b96\d{20}\b)|(\b\d{15}\b)|(\b\d{12}\b)', fedex_link),
(r'\b((98\d\d\d\d\d?\d\d\d\d|98\d\d) ?\d\d\d\d ?\d\d\d\d( ?\d\d\d)?)\b', fedex_link),
(r'^[0-9]{12}$', fedex_link),
(r'^[0-9]{10}$', dhl_link)
@mmathys
mmathys / vimeo-vod.md
Last active January 12, 2026 23:15
Download Vimeo VOD (video on demand)

How to download vimeo VOD for offline usage

Variant 1: yt-dlp

Using yt-dlp (thank you @ayyucedemirbas!)

You must have a Vimeo account, do not sign in via Google or anything else, yt-dlp asks for your email address and password to log in.

You must install the yt-dlp via the command below (for MacOS):

// ==UserScript==
// @name el ebin bitchute downloader (cemerson update)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description no homo
// @author jeff@i2p.rocks (cemerson 20190516 update)
// @match https://www.bitchute.com/video/*
// @grant none
// ==/UserScript==
@lmvdz
lmvdz / BlockBenchModel.java
Last active October 3, 2022 22:06
How to convert blockbench modded model java into fabric model
package net.lmvdz.delirium.model;
import net.minecraft.client.model.Model;
import net.minecraft.client.model.ModelPart;
import net.minecraft.client.render.RenderLayer;
import net.minecraft.client.render.VertexConsumer;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.Identifier;
import java.util.function.Function;
@comp500
comp500 / fabricserversidemods.md
Last active February 8, 2026 11:27
Useful Fabric server side mods
@cemerson
cemerson / helpful-ffmpeg-commands.md
Last active July 30, 2020 21:10
Helpful FFMPEG commands

Helpful FFMPEG commands

Combine Image and MP3 into a new MP4

V1:

ffmpeg -loop 1 -i image.jpg -i audio.mp3 -c:v libx264 -c:a aac -strict experimental -b:a 192k -shortest output.mp4

V2 (alt?):

@danieltorrecillas
danieltorrecillas / resign-ios-app
Created November 23, 2020 16:39
Bash script to resign an iOS app
#!/usr/bin/env bash
set -e
# Resigns an iOS app with a given provisioning profile, distribution certificate, and, optionally, a new bundle identifier.
# This script expects to be invoked with at least three arguments.
# $1 is expected to be the path of the .ipa to be resigned
# $2 is expected to be the path of the .mobileprovision to resign $1 with
# $3 is expected to be the name of the distribution certificate in the Keychain to resign $1 with
# $4 is optional. If included, this will be the new bundle identifier of the resigned app. If not included, the original bundle identifier will be used.
@code-rgb
code-rgb / streamtape.py
Last active July 4, 2022 15:59
Get direct downoad link from "https://streamtape.com"
__all__ = ["get_st_async", "get_st"]
"""
# Async:
download_link = await get_st_async('https://streamtape.com/v/b89re9b8er94b8/Demo_Video_1.mp4')
# Sync:
download_link = get_st('https://streamtape.com/v/b89re9b8er94b8/Demo_Video_1.mp4')
"""
import asyncio