Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* ISPConfig Icingia2 HTTP Service Plugin for ISPConfig Version 3.1.2 and above.
*
* This class extends ISPConfig's vhost management with the functionality to manage icingia2 HTTP services.
*
* This Plugin requires Icinga2 (https://www.icinga.com/products/icinga-2/)
* The config files add a variable named "vars.http_vhosts" to an existing icinga2 host.
* With the matching icinga2 service configuration a icinga2 service will be added for each entry contained in "vars.http_vhosts".
@amon-ra
amon-ra / attrs.sql
Last active August 20, 2019 17:04 — forked from leek/_Magento1_DeleteTestData.md
Clean magento database, maybe must revision categories and attributes default ids
DELETE eav_attribute_option_value FROM eav_attribute_option,eav_attribute_option_value WHERE eav_attribute_option.attribute_id > 133 and eav_attribute_option.option_id = eav_attribute_option_value.option_id;
DELETE FROM eav_attribute WHERE attribute_id > 133;
DELETE FROM eav_attribute_label WHERE attribute_id > 133;
DELETE FROM eav_attribute_option WHERE attribute_id > 133;
DELETE FROM eav_attribute_group WHERE attribute_set_id > 25;
@amon-ra
amon-ra / gist:1514950
Created December 23, 2011 18:05 — forked from ohadlevy/gist:674623
script to automate creation of machines, including dns, dhcp, tftp, foreman and puppet
#!/usr/bin/ruby
require "rubygems"
require "rest_client"
require "json"
require "uri"
fqdn = ARGV[0] || raise("Must define a fqdn")
mac = ARGV[1] || raise("Must define a mac")