Skip to content

Instantly share code, notes, and snippets.


Rene Jochum pcdummy

View GitHub Profile
pcdummy / test_hostname.php
Last active Apr 24, 2019
phpIPAM, testscript for fixing bug #1471 and #2374
View test_hostname.php
$test_domains = array(
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 {

WzRESTLobby API V1 Documentation

This document describes the V1 API of WzRESTLobby



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.
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 /
Last active Dec 16, 2016
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.
pcdummy / lxd-cli.go
Last active Jun 12, 2018
codegangsta/cli for LXD
View lxd-cli.go
package main
import (

My Install

Install it (on Ubuntu)

sudo add-apt-repository -y ppa:webupd8team/atom
sudo apt-get update
sudo apt-get -y install atom

Install "basic" plugins

pcdummy /
Created Jan 29, 2015
My Sublime Install (going to replace it with

My Sublime configuration

Installed Packages

Package Control

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


pcdummy /
Last active Aug 29, 2015
Auto restart Sixx's aiccu when a interface managed networkmanager goes up/down.
# -*- coding: utf-8 -*-
# Restarts aiccu if the given $IF is in $AICCU_RESTART_INTERFACES.
# The init/upstart/systemd script should check the rest.
# Copyright (c) 2014 by pcdummy <>
# You need an array "AICCU_RESTART_INTERFACES" in /etc/default/aiccu,
# with the interfaces you want to restart on.