Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@alejandroliu
alejandroliu / rhconsulting_scanitems.rake
Created December 16, 2017 02:30
First try at import/export Scan Policies (Smart State Analysis)
# Author: A Liu Ly <alejandrol@t-systems.com>
require_relative 'rhconsulting_illegal_chars'
require_relative 'rhconsulting_options'
class MiqScanItemsImportExport
class ParsedNonDialogYamlError < StandardError; end
def export(export_dir, options = {})
raise "Must supply export dir" if export_dir.blank?
@alejandroliu
alejandroliu / teleportFix.php
Created June 15, 2015 22:12
Fix lingering tile entities
<?php
/**
* Fixes flying tile entities when teleporting worlds.
*
* @name teleportFix
* @main aliuly\hack\teleportFix
* @version 1.0.0
* @api 1.12.0
* @description Fixes flying tile entities when teleporting worlds.
@alejandroliu
alejandroliu / openchest.php
Last active September 17, 2016 00:55
Open Chests
<?php
/**
* Test opening inventories
*
* @name OpenInv
* @main aliuly\openinv\OpenInventory
* @version 1.0.0
* @api 1.12.0
* @description Test open inventory plugin
@alejandroliu
alejandroliu / openinv.php
Created June 10, 2015 07:21
Test openning inventory
<?php
/**
* Test opening inventories
*
* @name OpenInv
* @main aliuly\openinv\OpenInventory
* @version 1.0.0
* @api 1.12.0
* @description Test open inventory plugin
@alejandroliu
alejandroliu / syslogd.pl
Created February 6, 2015 13:17
Perl Syslog server
#!/usr/bin/perl
#
# Modify the following three variables inside the script to tune the
# operation of the Syslog daemon:
#
# - $perhost=1: log messages from each host are stored in a dedicated file;
# the filename contains the hostname of the device (default=1)
# - $daily=1: log messages are stored in daily files; the filename contains
# the date (default=1)
# - $perfacility=1: log messages are stored in per-facility files; the