Skip to content

Instantly share code, notes, and snippets.

View luisfdez's full-sized avatar

Luis Fernández Álvarez luisfdez

View GitHub Profile
@luisfdez
luisfdez / flume_builder.pp
Last active August 29, 2015 14:15
Puppet manifest to automate the building and installer creation of Flume for Windows
# === Class: flume_builder
#
# This manifest hosts the definition of machines used to build
# Apache Flume on Windows. The main steps have been extracted from the
# following URL:
#
# https://cwiki.apache.org/confluence/display/FLUME/Build+Flume+1.3.x+up+on+Windows
#
# These steps are basically the following:
# * Install JDK 1.6x.
@luisfdez
luisfdez / RdpActuator.ps1
Last active August 29, 2015 14:10
Actuator scripts to restart wsgate when it's stuck (PowerShell functionality + Python Windows Service wrapper)
#
# Create EventLog for messages
#
If(-Not [System.Diagnostics.EventLog]::SourceExists('RdpConsoleActuator'))
{
New-EventLog -LogName Application -Source "RdpConsoleActuator"
}
Write-EventLog -LogName Application -Source "RdpConsoleActuator" -EntryType Information -EventID 1 -Message "[$(Get-Date -Format g)] - RDP Console Actuator starting..."
#