Skip to content

Instantly share code, notes, and snippets.

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

Ronald Bunk Azoraqua

🏠
Working from home.
View GitHub Profile
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;
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;
@Azoraqua
Azoraqua / 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": "[email protected]",
"description": "Garry's Mod server for @PLAYERS@ players.",
"image": "quay.io\/pterodactyl\/core:source",
@Azoraqua
Azoraqua / 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 / {
@Azoraqua
Azoraqua / 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.
#include "example.h"
Person* Person__create(char* firstName, char* lastName, unsigned int age) {
printf("Creating person with name \"%s %s\" and age %d.", firstName, lastName, age);
Person* person = malloc(sizeof(Person));
person->firstName = firstName;
person->lastName = lastName;
person.age = age;
@Azoraqua
Azoraqua / pom.xml
Created March 18, 2019 19:43
Minimalistic POM File for Maven.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>{{ PROJECT_GROUPID }}</groupId>
<artifactId>{{ PROJECT_ARTIFACTID }}</artifactId>
<version>{{ PROJECT_VERSION }}</version>
<properties>
<encoding>UTF-8</encoding>
<!DOCTYPE html>
<html>
<head>
<title>Assignment 1</title>
<style type="text/css">
.container {
width: 240px;
height: 120px;
position: relative;
@Azoraqua
Azoraqua / nginx-ssl.example
Created August 15, 2020 11:58
Nginx example configuration (SSL, PHP)
server {
listen 80;
server_name <DOMAIN>;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name <DOMAIN>;
@Azoraqua
Azoraqua / nginx-ssl.example
Created August 15, 2020 12:00
Nginx example configuration (SSL)
server {
listen 80;
server_name <DOMAIN>;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name <DOMAIN>;