Skip to content

Instantly share code, notes, and snippets.

Jim C K Flaten Jckf

Block or report user

Report or block Jckf

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Jckf
Jckf / Overloads.php
Created May 23, 2018
Real method overloading in PHP
View Overloads.php
<?php
trait Overloads {
/** @var ReflectionMethod[] $olMethods **/
protected $olMethods;
/**
* Get methods from this class.
*
* Caches results to avoid recreating reflection objects for every call.
View iptables
#! /bin/sh
# Flush and reset.
iptables -F
iptables -X
iptables -Z
ip6tables -F
ip6tables -X
ip6tables -Z
@Jckf
Jckf / Yggdrasil.php
Last active Jun 16, 2016
PHP library for Mojang's Yggdrasil authentication system.
View Yggdrasil.php
<?php
class Yggdrasil {
private $server = 'https://authserver.mojang.com';
private $client_token = null;
private $username = null;
private $access_token = null;
View MinecraftServer.java
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";
You can’t perform that action at this time.