Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@alexdo
alexdo / schema.sql
Created May 14, 2016 09:18
PowerDNS/Poweradmin/Pdnsmanager SQL Schema
-- Create syntax for TABLE 'comments'
CREATE TABLE `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`domain_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`type` varchar(10) NOT NULL,
`modified_at` int(11) NOT NULL,
`account` varchar(40) NOT NULL,
`comment` mediumtext NOT NULL,
PRIMARY KEY (`id`),
@alexdo
alexdo / check_freshclam.rb
Created February 1, 2013 13:32
Nagios ClamAV signature check. Parses the output of freshclam -V
#!/usr/bin/env ruby
require 'date'
state = {
:ok => 0,
:warning => 1,
:critical => 2,
:unknown => 3
}
@alexdo
alexdo / hubic-wrapper.sh
Last active August 29, 2015 14:19
omv-hubic-wrapper
#!/bin/bash
HUBIC="/usr/bin/hubic"
USER="MY_USERNAME"
SESSION_ADDR_FILE="/home/USERNAME/.dbus-session-addr"
SESSION_PID_FILE="/home/USERNAME/.dbus-pid"
HUBIC_STATE=""
DBUS_EXISTS=0
@alexdo
alexdo / Auc-Advanced.lua
Created August 1, 2014 13:59
The Consortium AH Snatch List for Auctioneer
["24300:0:0"] = {
["price"] = 12500000,
["link"] = "|cff0070dd|Hitem:24300:0:0:0:0:0:0:0:0:0:0|h[Pattern: Cloak of Eternity]|h|r",
},
["4624:0:0"] = {
["price"] = 165000000,
["link"] = "|cffffffff|Hitem:4624:0:0:0:0:0:0:0:0:0:0|h[Recipe: Lesser Stoneshield Potion]|h|r",
},
["23628:0:0"] = {
@alexdo
alexdo / city_council_election_districts.geojson
Last active August 29, 2015 13:56
GeoJSON districts for the election of Monheim am Rhein's city council 2014
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.