Skip to content

Instantly share code, notes, and snippets.

@serrasqueiro
serrasqueiro / checker.py
Last active March 17, 2025 21:47
dump Youtube video ID - sample!
""" This is simply checking the consistency of the methods.
"""
from fromdecimalfix import to_youtubeid
from youtubeid import youtube_id_to_integer
NAMES = {
1: {
"watch": ("3pYsfaQeMRs", "Justin Bieber - Somebody (Live from Paris)"),
"tags": [
@amadornes
amadornes / 119_auto_remap_guide.md
Last active March 17, 2025 12:58
1.19 client refactor auto-remap guide

Welcome to the 1.19 client refactor auto-remap guide!

Forge 41.0.64 for Minecraft 1.19 introduces several breaking changes to client code and 41.0.94 makes several additional renames.

In this guide we'll set up, configure and run SizableShrimp's automatic remapping tool to go through your code and take care of a large number of changes for you. This will only work if your mod is written in Java, so if it isn't, skip to the manual porting guide.

This guide works regardless of the mappings you're using.

Here's what we'll do:

  1. Ensure the mod compiles
@windwakr
windwakr / gm4dec.py
Last active March 14, 2025 10:15
Game Maker 4.1/4.2/4.3 decompiler
#Game Maker 4.X decompiler
#for python 2.7 :^)
#Only tested on ~20 files
#
#As far as I can tell, there are no tools out there that actually support GM4(even if they claim to).
#Unlike later versions, image data is stored unencrypted. So we need to partially parse the GMD.
import struct
import io
import os
import sys
#!/usr/bin/env python3
import requests
import re
import os
import time
import json
from datetime import datetime, timezone
import random
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python
import sys, os, time
import tweepy
keys = dict(
consumer_key='_YOUR_CONSUMER_KEY',
consumer_secret='_YOUR_SECRET_KEY',
access_token='_YOUR_ACCESS_TOKEN',
access_token_secret='_YOUR_ACCESS_TOKEN_SECRET'
)
@Melectrome
Melectrome / lfe.md
Last active June 9, 2023 22:47
Installing Lambda Fortress: Extended 4.1 (with hotfix)

Installing Lambda Fortress: Extended 4.1 (with hotfix)

In the end, your installation should look something like this: diagram3

  1. Download Team Fortress 2 and Source SDK Base 2013 Multiplayer, they have to be on the same drive. Source SDK Base 2013 Multiplayer is located in Steam under Library > Tools (watch the gif for help)
  2. Download the main LF:E 4.1 files and the 4.1 hotfix
@Marcono1234
Marcono1234 / Decompiling with MCPConfig.md
Last active June 18, 2025 18:10
Decompiling and deobfuscating Minecraft with MCPConfig (https://github.com/MinecraftForge/MCPConfig)

Disclaimer

I don't have much experience with Gradle and just found a way to get MCPConfig to decompile and deobfuscate Minecraft jar files. The described steps might be extremely inefficient and even wrong.

Any feedback is therefore welcome!

Usage

You can use the project MCPConfig-CSV-mappings afterwards to apply CSV mappings, however in that case you have to adjust the indentation used by fernflower as described in the "Usage with MCPConfig" section before using MCPConfig.

  1. Download the latest MCPConfig version from: https://github.com/MinecraftForge/MCPConfig
  2. Look in the versions folder and choose the version you want, in the following called ``, for example 1.13.1
@Gruppio
Gruppio / RedBubbleDownloader.sh
Created November 10, 2018 11:53
Downloads images from RedBubble.com with a dimension of 512x512 and black background
#!/bin/bash
# Pass as parameter a redbubble image link like https://ih1.redbubble.net/image.379381203.9755/st%2Csmall%2C420x460-pad%2C420x460%2Cf8f8f8.lite-1u2.jpg
url="$1"
newUrl=${url//420/512}
newUrl=${newUrl//460/512}
newUrl=${newUrl//f8/00}
curl "$newUrl" > "$(uuidgen).jpg"