Skip to content

Instantly share code, notes, and snippets.

Avatar
😀
Happy

Rene Jochum pcdummy

😀
Happy
View GitHub Profile
View Accordion.qml
import QtQuick 2.9
import QtQuick.Controls 2.2
Column {
width: parent.width
height: parent.height
property alias model: columnRepeater.model
ListView {
@pcdummy
pcdummy / test_hostname.php
Last active Apr 24, 2019
phpIPAM, testscript for fixing bug #1471 and #2374
View test_hostname.php
<?php
$test_domains = array(
"a.webmeisterei.com",
"b.webmeisterei.com",
"webmeisterei.com",
"google.at",
"webmeisterei.com1",
"twebmeisterei.com",
"z.webmeisterei.com",
@pcdummy
pcdummy / lxd-cli.go
Last active Jun 12, 2018
codegangsta/cli for LXD
View lxd-cli.go
package main
import (
"github.com/codegangsta/cli"
"os"
"strings"
"github.com/lxc/lxd/shared/i18n"
)
View wzlobby_api_v1_doc.md

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.

@pcdummy
pcdummy / hetzner.py
Last active Apr 27, 2018
Hetzner Mininet.
View hetzner.py
#!/usr/bin/env python
"""
Helper to create a Hetzner root server style Network.
At Hetzner the gateway blocks alls MAC's except the
one of the route server, this means you need to proxy_arp
your virtual hosts.
Known bugs:
- pingAll doesn't seem to work right with this.
"""
View _clouds__lxd.py
# -*- 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.
View my-site.com_api_v1_stats_prices_T5_CLOTH.json
{
"Lymhurst": {
"price_min": "800",
"price_max": "1200"
},
"Caerleon": {
"city": "Caerleon",
"price_min": "900",
"price_max": "1300"
}
@pcdummy
pcdummy / bench_test.go
Last active Mar 16, 2017
Go RPC Benchmarks, encoding/gob seems to be the fastest RPC encoder for Go.
View bench_test.go
// Copyright 2013 René Kistl. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package srpc
import (
"errors"
"fmt"
"github.com/pcdummy/skynet2/rpc/bsonrpc"
@pcdummy
pcdummy / sql_sync_algo.py
Last active Dec 16, 2016
An algorythm to compare SQL Primary keys and sync A -> B.
View sql_sync_algo.py
# -*- 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.
@pcdummy
pcdummy / sublime-install.md
Created Jan 29, 2015
My Sublime Install (going to replace it with atom.io).
View sublime-install.md

My Sublime configuration

Installed Packages

Package Control

One click install/remove/activate and deactivate of the most packages below.

Git

You can’t perform that action at this time.