Skip to content

Instantly share code, notes, and snippets.

View codebucketdev's full-sized avatar

Codebucket codebucketdev

View GitHub Profile
@codebucketdev
codebucketdev / NameFetcher.java
Created July 5, 2014 13:03
This snippet is a part from my MojangRepository.
package de.codebucket.utils;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.UUID;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
@codebucketdev
codebucketdev / UUIDFetcher.java
Created July 5, 2014 13:04
This snippet is a part from my MojangRepository.
package de.codebucket.utils;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.Proxy;
import java.net.URL;
import java.util.UUID;
package de.codebucket.dynquiz.awt;
import java.awt.DisplayMode;
import java.awt.Frame;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import java.awt.Toolkit;
import javax.swing.JFrame;
@codebucketdev
codebucketdev / Shifting.java
Created September 25, 2014 19:45
With this class you can calculate the square roots of a number/value :)
package de.codebucket.math;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.atomic.AtomicBoolean;
@codebucketdev
codebucketdev / Matrix.java
Created January 8, 2015 12:04
Just for Fun :D
package org.anonymous;
import java.util.Random;
public class Matrix
{
public static final char[] CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".toCharArray();
public static void main(String[] args) throws InterruptedException
{
@codebucketdev
codebucketdev / ZipDecrypter.java
Last active August 29, 2015 14:13
With this snippet you can decrypt the password of a zipfile in Java using Zip4j (http://www.lingala.net/zip4j/).
package org.anonymous;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import net.lingala.zip4j.core.ZipFile;
import net.lingala.zip4j.exception.ZipException;
@codebucketdev
codebucketdev / gist:bdbf28818cc8078b881c
Created January 15, 2015 09:23
Not installed packages on Raspbian from Debian with Webserver, Printserver, Fileserver, SQL Server and SSH Server
acl acpi-support-base acpid adduser alsa-base alsa-utils analog apache2 apache2-doc apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common apt apt-listchanges apt-utils aptitude aptitude-common aspell aspell-de aspell-de-alt aspell-en at avahi-daemon base-files base-passwd bash bash-completion bc bind9-host binutils blt bsd-mailx bsdmainutils bsdutils build-essential busybox bzip2 ca-certificates cgroup-bin cifs-utils colord console-setup console-setup-linux consolekit coreutils cpio cpp cpp-4.6 cpp-4.7 cron cups cups-bsd cups-client cups-common cups-filters cups-ppdc curl dash db5.1-util dbus dbus-x11 dc dconf-gsettings-backend:armhf dconf-service debconf debconf-i18n debconf-utils debian-archive-keyring debian-faq debian-reference-common debian-reference-en debianutils desktop-base desktop-file-utils dictionaries-common diffutils dillo discover discover-data dkms dmsetup dnsutils doc-debian dosfstools dphys-swapfile dpkg dpkg-dev e2fslibs:armhf e2fsprogs ed eject epiphany-browser epiphany-browser-d
@codebucketdev
codebucketdev / UUIDFetcher.java
Last active August 29, 2015 14:18
This is an example of my UUID Fetcher in Java using the Public API from Razex.de
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
@codebucketdev
codebucketdev / GameProfileBuilder.java
Created April 7, 2015 08:51
This is an example of my GameProfile Builder in Java using the Public API from Razex.de
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Type;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;
@codebucketdev
codebucketdev / login.php
Last active August 29, 2015 14:18
This is an example of a login page using the Yggdrasil Authentification of the Public API from Razex.de
<?php
if(isset($_POST['signin'])) {
$username = filter_var($_POST['username']); $password = filter_var($_POST['password']);
$ch = curl_init("https://api.razex.de/user/login");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POSTFIELDS, array("username" => $username, "password" => $password));
curl_setopt($ch, CURLOPT_USERAGENT, "Minecraft");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);