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 / changelog.schema.json
Created April 6, 2026 16:36
Schemas for agentic workflows.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": ["entries"],
"$comment": "Changelog files are chronological mutation logs. Newest entries should appear first.",
"properties": {
"$schema": {
"type": "string"
},
"entries": {
cake
@RonaldBunk
RonaldBunk / vhost.sh
Created August 15, 2020 13:52
Utility for managing Nginx VHosts (SSL + PHP only).
#!/bin/bash
NGINX_DIR="/etc/nginx"
NGINX_SITES_AVAILABLE_DIR="${NGINX_DIR}/sites-available"
NGINX_SITES_ENABLED_DIR="${NGINX_DIR}/sites-enabled"
## vhost.sh (create|delete|link|unlink|list) [APP_NAME] [DOMAIN]
create() {
if [[ $# -le 1 ]]; then
echo "$0 create <NAME> <DOMAIN>"
return
@RonaldBunk
RonaldBunk / nginx.example
Created August 15, 2020 12:03
Nginx example configuration
server {
listen 80;
server_name <DOMAIN>;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name <DOMAIN>;
@RonaldBunk
RonaldBunk / nginx.example
Created August 15, 2020 12:02
Nginx example configuration (PHP)
server {
listen 80;
server_name <DOMAIN>;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
server_name <DOMAIN>;
@RonaldBunk
RonaldBunk / 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>;
@RonaldBunk
RonaldBunk / 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>;
<!DOCTYPE html>
<html>
<head>
<title>Assignment 1</title>
<style type="text/css">
.container {
width: 240px;
height: 120px;
position: relative;
@RonaldBunk
RonaldBunk / 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>
#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;