Skip to content

Instantly share code, notes, and snippets.

View jochumdev's full-sized avatar

René Jochum jochumdev

View GitHub Profile
@jochumdev
jochumdev / how-to-use-golang-framer.go
Last active October 8, 2022 12:48 — forked from ilyaigpetrov/how-to-use-golang-framer.go
How To Use Golang Framer?
// This is based on https://github.com/nghttp2/nghttp2/blob/master/integration-tests/server_tester.go
package main
import (
"bytes"
"crypto/tls"
"errors"
"fmt"
"log"
"net"
@jochumdev
jochumdev / 01_schema.sql
Last active August 10, 2022 13:05
tree_schema
DROP TABLE IF EXISTS tree_node CASCADE;
CREATE TABLE tree_node
(
id BIGSERIAL NOT NULL UNIQUE,
PRIMARY KEY(id)
);
DROP TABLE IF EXISTS tree_info CASCADE;
CREATE TABLE tree_info

DRD Start Options

Bots per player

Players Bots
1-2 1
3-4 2
5+ 3
@jochumdev
jochumdev / test_hostname.php
Last active April 24, 2019 07:48
phpIPAM, testscript for fixing bug #1471 and #2374
<?php
$test_domains = array(
"a.webmeisterei.com",
"b.webmeisterei.com",
"webmeisterei.com",
"google.at",
"webmeisterei.com1",
"twebmeisterei.com",
"z.webmeisterei.com",
import QtQuick 2.9
import QtQuick.Controls 2.2
Column {
width: parent.width
height: parent.height
property alias model: columnRepeater.model
ListView {

WzRESTLobby API V1 Documentation

This document describes the V1 API of WzRESTLobby

/api/v1/login

POST

Login to lobby with the given username and password.

# -*- coding: utf-8 -*-
'''
LXD Cloud Module
================
.. versionadded:: unknown
`LXD(1)`__ is a container "hypervisor". This execution module provides
several functions to help manage it and its containers.
{
"Lymhurst": {
"price_min": "800",
"price_max": "1200"
},
"Caerleon": {
"city": "Caerleon",
"price_min": "900",
"price_max": "1300"
}
@jochumdev
jochumdev / sql_sync_algo.py
Last active December 16, 2016 14:14
An algorythm to compare SQL Primary keys and sync A -> B.
# -*- coding: utf-8 -*-
import random
def compare(all_read_pks, all_write_pks):
"""This function emulates a mathematical problem i try to solve.
I have primary keys from a SQL Table A and primary_keys in SQL Table B.
This function should compare B with A and sync all primary_keys changes to B.
@jochumdev
jochumdev / lxd-cli.go
Last active June 12, 2018 09:07
codegangsta/cli for LXD
package main
import (
"github.com/codegangsta/cli"
"os"
"strings"
"github.com/lxc/lxd/shared/i18n"
)