Skip to content

Instantly share code, notes, and snippets.

View codebucketdev's full-sized avatar

Codebucket codebucketdev

View GitHub Profile
@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 / 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 / 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 / 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 / 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;
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 / 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;
@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 / MojangRepository.java
Created July 5, 2014 13:02
With this MojangRepository you can get a UUID from a Username and other way.
package de.codebucket.accounttool;
import java.util.UUID;
import de.codebucket.utils.NameFetcher;
import de.codebucket.utils.UUIDFetcher;
public class MojangRepository
{
public static String getUsername(UUID uuid) throws Exception
@codebucketdev
codebucketdev / PingTest.java
Created July 5, 2014 11:20
With this snippet you can ping a IP Address or Hostname in Java on Windows.
private InetAddress inet;
private long start;
private long end;
public PingTest(InetAddress inet)
{
this.inet = inet;
this.start = System.currentTimeMillis();
this.end = (this.start -1);
}