Skip to content

Instantly share code, notes, and snippets.

@amadornes
amadornes / 119_auto_remap_guide.md
Last active December 7, 2023 21:27
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
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 March 16, 2022 18:29
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"
@bbbradsmith
bbbradsmith / a8_to_tga.py
Created July 16, 2018 06:01
Microsoft screensaver sample A8 to TGA decoder
# decodes the A8 files in
# Microsoft Windows NT 4.0 SDK (1996)
# MSTOOLS\SAMPLES\OPENGL\SCRSAVE\MAZE
#
# based on MSTOOLS\SAMPLES\OPENGL\SCRSAVE\COMMON\SSA8.C
import struct
def a8decompress(d):
# defines
@primaryobjects
primaryobjects / m3u8.md
Last active May 24, 2024 06:01
How to download m3u8 and ts video movie streams.

m3u8 Downloading

  1. Open Chrome Developer tools and click the Network tab.
  2. Navigate to the page with the video and get it to start playing.
  3. Filter the list of files to "m3u8".
  4. Find master.m3u8 or index.m3u8 and click on it.
  5. Save the file to disk and look inside it.
  6. If the file contains a single m3u8 master url, copy that one instead.
  7. Run the program m3u8x.
  8. Paste the same m3u8 url in both textboxes (URL and Quality URL) and click "Headers" and set the referral url and user-agent from the request as found in Chrome.
@hanss314
hanss314 / votecounter.py
Created November 20, 2017 03:32
bfb vote counter
'''
Copyright 2017 hanss314
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@bagder
bagder / build-log.txt
Created September 12, 2017 12:49
Firefox build problems on Windows 7, mozilla-build 3.0, MSVC 2015, github gecko'dev git master
daniel@daniel-win7 e:/win-src/gecko-dev
$ mach build
c:\mozilla-build\mozmake\mozmake.EXE -f client.mk MOZ_PARALLEL_BUILD=6 -s configure
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LANG = "SVE"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Generating e:/win-src/gecko-dev/configure