This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Crude ini file reader/writer. Tries to retain original file formatting when writing. | |
# Author: Jim C K Flaten <[email protected]> | |
import os | |
import json | |
def parse_ini(filename, updates = {}): | |
# Prepare some variables we need. | |
ini = {} | |
section = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait Overloads { | |
/** @var ReflectionMethod[] $olMethods **/ | |
protected $olMethods; | |
/** | |
* Get methods from this class. | |
* | |
* Caches results to avoid recreating reflection objects for every call. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Flush and reset. | |
iptables -F | |
iptables -X | |
iptables -Z | |
ip6tables -F | |
ip6tables -X | |
ip6tables -Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Yggdrasil { | |
private $server = 'https://authserver.mojang.com'; | |
private $client_token = null; | |
private $username = null; | |
private $access_token = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package no.jckf.slplib; | |
import java.io.*; | |
import java.net.InetSocketAddress; | |
import java.net.Socket; | |
import java.net.SocketException; | |
import java.nio.charset.Charset; | |
public final class MinecraftServer { | |
private String address = "localhost"; |