Skip to content

Instantly share code, notes, and snippets.

View RonaldBunk's full-sized avatar
🏠
Working from home.

Ronald Bunk RonaldBunk

🏠
Working from home.
View GitHub Profile
@RonaldBunk
RonaldBunk / configuration.qaml
Last active August 29, 2018 22:55
Grammar for QAML.
###
The code below repesents a section in the configuration.
###
section database {
var (host) = '127.0.0.1' % The host.
var (username) = 'root' % The username.
var (password) = 'admin' % The password.
var (schema) = 'test' % The schema.
@RonaldBunk
RonaldBunk / default
Created March 8, 2018 10:10
Simple Nginx configuration.
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.php index.html index.htm index.nginx-debian.html;
server_name server_domain_or_IP;
location / {
@RonaldBunk
RonaldBunk / egg_gmod.json
Last active March 3, 2018 20:03
Pterodactyl Panel - Egg Template - GMOD
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v1"
},
"exported_at": "2018-03-03T14:41:28-05:00",
"name": "GMOD-@ID@",
"author": "support@pterodactyl.io",
"description": "Garry's Mod server for @PLAYERS@ players.",
"image": "quay.io\/pterodactyl\/core:source",
public class NumberFormatTest {
private static enum Unit {
K(4, 6, "K"),
M(7, 9, "M"),
B(9, 12, "B");
private int min, max;
private String unitChar;
package com.azoraqua.passwordgenerator.gui;
import com.azoraqua.passwordgenerator.generator.password.CharacterSet;
import com.azoraqua.passwordgenerator.generator.password.PasswordGenerator;
import javax.swing.*;
import java.awt.*;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.event.MouseAdapter;