Skip to content

Instantly share code, notes, and snippets.

View Nikeron's full-sized avatar
🌸
s̸͔̐̂o̴̯̻͝m̵͎̂̎é̷̝̋ ̴͕̟̔s̸̤̊͋ͅh̵̘͊ḯ̶͔͝t̸͎̐ ̴̩̪̾͌h̶͙̬̀͌e̵̗̩͝ṙ̵̟̙̾e̵̖̦̽̀

Nikita Nikeron

🌸
s̸͔̐̂o̴̯̻͝m̵͎̂̎é̷̝̋ ̴͕̟̔s̸̤̊͋ͅh̵̘͊ḯ̶͔͝t̸͎̐ ̴̩̪̾͌h̶͙̬̀͌e̵̗̩͝ṙ̵̟̙̾e̵̖̦̽̀
View GitHub Profile
@Pokechu22
Pokechu22 / Setting up MCP without a full MCP release.md
Last active July 27, 2025 18:09
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

@benkulbertis
benkulbertis / cloudflare-update-record.sh
Last active February 25, 2025 10:56
Cloudflare API v4 Dynamic DNS Update in Bash
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)
@Bo0m
Bo0m / sourcemod_whitelist_ip.sp
Created April 8, 2015 00:47
Locking down a SourceMod plugin to a specific server IP.
#define WHITELIST_IP "1.2.3.4"
new String:g_sServerIp[16];
public OnPluginStart()
{
// Pull server IP as integer from hostip, then bit shift into string format.
new iServerIP = GetConVarInt(FindConVar("hostip"));
Format(g_sServerIp, sizeof(g_sServerIp), "%i.%i.%i.%i", (iServerIP >> 24) & 0x000000FF, (iServerIP >> 16) & 0x000000FF, (iServerIP >> 8) & 0x000000FF, iServerIP & 0x000000FF);
@lifuzu
lifuzu / auto_update.md
Created April 3, 2014 17:10
Android auto update apk implementation
public class UpdateApp extends AsyncTask<String,Void,Void>{
private Context context;
public void setContext(Context contextf){
    context = contextf;
}

@Override
protected Void doInBackground(String... arg0) {
      try {
@jniltinho
jniltinho / get_external_ip.go
Created March 26, 2014 17:02
Get External IP Golang
package main
/*
URL: http://myexternalip.com/#golang
*/
import (
"io"
"net/http"
@the42
the42 / gist:1956518
Created March 2, 2012 07:34
GZip encoding for GO V1 using custom responsewriter
package main
import (
"compress/gzip"
"io"
"net/http"
"strings"
)
type gzipResponseWriter struct {