Skip to content

Instantly share code, notes, and snippets.

@aadnk
aadnk / BlockChangeArray.java
Created May 17, 2013 04:42
Disguise a block (like a chest) as an arbitrary block.
package com.comphenix.example;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import org.bukkit.Location;
import org.bukkit.World;
/**
* Utility class for creating arrays of block changes.
@Pokechu22
Pokechu22 / Setting up MCP without a full MCP release.md
Last active July 5, 2024 20:28
Setting up MCP for newer versions (e.g. 1.12.2)

It's possible to use create an MCP installation for versions of Minecraft where there hasn't been a full MCP release. It takes a little bit of manual setup, but the end result is highly useful.

  1. Download and extract the most recent MCP build from http://www.modcoderpack.com/. (Currently, the latest build is http://www.modcoderpack.com/files/mcp940.zip)

  2. Edit version.cfg in the conf folder, and change ClientVersion and ServerVersion to the version you want (for instance, 1.12.2).

  3. Download the SRG zip for the version you want; these can generally be found at http://mcpbot.bspk.rs/mcp/<version>/mcp-<version>-srg.zip (for example, http://mcpbot.bspk.rs/mcp/1.11.2/mcp-1.11.2-srg.zip) or at http://files.minecraftforge.net/maven/de/oceanlabs/mcp/mcp/<version>/mcp-<version>-srg.zip (for example, http://files.minecraftforge.net/maven/de/oceanlabs/mcp/mcp/1.12.2/mcp-1.12.2-srg.zip). (For 1.12.1 and 1.12.2, only the minecraftforge link works)

  4. Extract that zip into the MCP conf folder, over

@justincjahn
justincjahn / README.md
Last active January 16, 2024 20:15
Minecraft server(s) using systemd and screen.

Install

# Install dependencies
sudo yum install -y java-1.8.0-openjdk screen

# Create a new unprivileged user for minecraft
useradd -r -m -d /opt/minecraft minecraft

# Create the directory that will house our minecraft instances

sudo su --shell /bin/bash minecraft

@wavezhang
wavezhang / java_download.sh
Last active July 6, 2024 18:07
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
@matthewzring
matthewzring / markdown-text-101.md
Last active July 8, 2024 01:54
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@dideler
dideler / bot.rb
Last active June 12, 2024 08:48
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
Реквизиты:
Qiwi: +79608624930
Яндекс.Деньги: 410011923274761
Skype: sk2000sk1
Telegram: gamerforEA
Discord: gamerforEA#8924
Зеркало на GitHub Gist: https://gist.github.com/gamerforEA/6c4a77255b95ba4354cc26758d3633da
# Для всех перечисленных тут уязвимостей имеются фиксы (или будут сделаны в ближайшее время)
CarpentersBlocks:
1) com.carpentersblocks.network.PacketActivateBlock
1.1) Открытие GUI некоторых блоков в приватах
IC2NuclearControl:
1) shedar.mods.ic2.nuclearcontrol.network.message.PacketClientColor
shedar.mods.ic2.nuclearcontrol.network.message.PacketClientDisplaySettings
shedar.mods.ic2.nuclearcontrol.network.message.PacketClientRangeTrigger
@chrisswanda
chrisswanda / WireGuard_Setup.txt
Last active July 4, 2024 05:39
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
Все перенесено сюда
https://github.com/Pa4ok/MinecraftForSale