Skip to content

Instantly share code, notes, and snippets.

Preface:
I don't know how many of you played modded 1.4.2-1.12.2 but things have changed in the modding landscape since Tekkit. It's no longer IndustrialCraft and EU or BuildCraft's Minecraft Joules. It's "Redstone Flux" from Thermal Expansion. All the Grinders, electric furnaces are still available just bigger, better, and arguably easier than IndustrialCraft. IndustrialCraft started following in GregTech's footstep and made many things more complicated. That being said, IndustrialCraft is still in a couple packs. Just really annoying.
-- just wanted to get that out of the way. sorry if you guys already knew all that xd
https://www.feed-the-beast.com/projects/ftb-presents-direwolf20-1-12 - it is fairly similar to most old Tekkit/FTB packs, just with the most up to date mods. Provides a good balance between magic & tech
https://www.feed-the-beast.com/projects/ftb-horizons-iii - Entirely new mods. Doesn't include your traditional mods. Focuses on highlighting under-used and not so popular mods. Some really
@rbrick
rbrick / encoder.go
Last active November 19, 2018 01:05
a minimal implementation of RESP/Redis client
package main
import (
"bytes"
"errors"
"fmt"
"io"
)
const (
[
{
"name":"DreamZ",
"ip":"dreamz.io",
"type":"PC",
"category":"soup"
},
{
"name":"SoupsMC",
"ip":"soupsmc.com",
{
"routes": {
"/": "assets/html/index.html",
"/images/compass.png": "assets/images/compass.png",
"/js/site.js": "assets/js/site.js",
"/js/util.js": "assets/js/util.js",
"/js/graph.js": "assets/js/graph.js",
"/css/main.css": "assets/css/main.css"
},
"faviconOverride": {
@rbrick
rbrick / fixed.java
Last active February 5, 2024 11:15
ClassReader reader = new ClassReader(bungeecordJar.getInputStream(jarEntry));
ClassWriter classWriter = new ClassWriter(ClassWriter.COMPUTE_FRAMES | ClassWriter.COMPUTE_MAXS);
ClassNode node = new ClassNode(); {
reader.accept(node, 0);
}
for (int i = 0; i < node.fields.size(); i++) {
// prevent duplicates if the jar is already patched
@Command
public void patch(@Flag("patch") File file, @Flag("server") String server) throws IOException {
if (file.exists()) {
System.out.println("Found server jar...patching...");
JarFile bungeecordJar = new JarFile(file);
byte[] newClassFile = null;
Enumeration<JarEntry> entries = bungeecordJar.entries();
while (entries.hasMoreElements()) {
JarEntry jarEntry = entries.nextElement();
public static void main(String[] args) throws IOException {
final BufferedImage image = new BufferedImage(1024, 1024, BufferedImage.TYPE_INT_ARGB);
final Graphics graphics = image.getGraphics();
int center = image.getWidth() / 2;
int outerRadius = 512;
int segments = 18;
@rbrick
rbrick / msa.go
Last active April 19, 2025 17:50
package main
import (
"bytes"
"context"
"crypto/tls"
"encoding/json"
"fmt"
"golang.org/x/oauth2"
"golang.org/x/oauth2/microsoft"
@rbrick
rbrick / metamask.html
Last active July 12, 2021 05:32
Messing around with Metamask and Ethereum
<!DOCTYPE html>
<html>
<head>
<script src="/assets/js/web3.min.js"></script>
</head>
<body>
<h1 id="status">Not connected.</h1>
@rbrick
rbrick / fabf6ed337c6b03a3609297074230883.json
Last active November 23, 2022 18:57
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.13+commit.abaa5c0e.js&optimize=false&runs=200&gist=
This file has been truncated, but you can view the full file.
{
"id": "fabf6ed337c6b03a3609297074230883",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.13",
"solcLongVersion": "0.8.13+commit.abaa5c0e",
"input": {
"language": "Solidity",
"sources": {
"contracts/TelosNFT.sol": {
"content": "pragma solidity ^0.8.13;\n\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\nimport \"@openzeppelin/contracts/security/ReentrancyGuard.sol\";\nimport \"@openzeppelin/contracts/utils/Strings.sol\";\nimport \"./ERC721A.sol\";\n\n\ncontract TelosNFT is ERC721A, Ownable, ReentrancyGuard {\n using Strings for uint256;\n\n enum MintState {\n\n // PUBLIC: open for all, integer id: 0\n PUBLIC,\n // WHITELIST: only used for\n WHITELIST,\n // mint is closed, only admin/owner may mint\n CLOSED\n }\n\n uint256 public immutable MAX_SUPPLY;\n uint256 public immutable MINT_PRICE;\n\n\n uint256 public immutable MAX_MINT_PER_CALL;\n\n\n // the state of whether minting is allowed.\n MintState private minting