Skip to content

Instantly share code, notes, and snippets.

View nelbren's full-sized avatar

nelbren nelbren

View GitHub Profile
@brianherman
brianherman / jessie-mssql.md
Last active June 15, 2018 19:00
Debian Jessie and mssql-server

Download mssql from the microsoft website.

wget https://packages.microsoft.com/ubuntu/16.04/mssql-server/pool/main/m/mssql-server/mssql-server_14.0.1.246-6_amd64.deb

dpkg -i mssql-server_14.0.1.246-6_amd64.deb 

The next command will install dependancies.

sudo apt-get -f install 
# -*- coding: cp1252 -*-
#
# Windows Event Log Viewer
# FB - 201012116
# from http://code.activestate.com/recipes/577499-windows-event-log-viewer/
import win32evtlog # requires pywin32 pre-installed
server = 'localhost' # name of the target computer to get event logs
logtype = 'System' # 'Application' # 'Security'
hand = win32evtlog.OpenEventLog(server,logtype)
@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
}