Skip to content

Instantly share code, notes, and snippets.

View notpeter's full-sized avatar

Peter Tripp notpeter

View GitHub Profile
@notpeter
notpeter / build_oracle_jdk_debs.sh
Created July 3, 2015 00:24
Oracle Java JDK - Make Debian/Ubuntu deb packages
#!/usr/bin/env bash
set -u
# Downloads Oracle JDK tarball and makes fancy debs out of it.
# Output is full of warnings, but the packages work. ;)
# Example URL='http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz'
MAJOR=8
MINOR=45
BUILD=14
@notpeter
notpeter / dante_history_import.sh
Last active September 5, 2023 13:41
Dante SOCKS Proxy - Source Code History Git Import
#/bin/bash
set -e
# Downloads the dante socks proxy source code and builds up a version history in a git repository.
# Note: OSX/BSDs have alternate 'stat' syntax so we need GNU stat there.
# Usage:
# git init
# ./dante_history_import.sh
#
@notpeter
notpeter / nagios-alerts.coffee
Last active July 26, 2017 18:53
Hubot Nagios Integration
# Description
# A hubot script that notifies of nagios alerts
module.exports = (robot) ->
robot.router.post '/nagios-alerts', (req, res) ->
j = req.body
if j.nagioshost
msg = "Nagios: #{j.service}@#{j.hostname} #{j.state} #{j.url} "
robot.messageRoom '#whatever', msg
else
@notpeter
notpeter / check_ssl_certificate.py
Created July 11, 2014 17:44
Nagios Plugin: SSL Certificate Check in Python
#!/usr/bin/python
"""
Usage: check_ssl_certificate -H <host> -p <port> [-m <method>]
[-c <days>] [-w <days>]
-h show the help
-H <HOST> host/ip to check
-p <port> port number
-m <method> (SSLv2|SSLv3|SSLv23|TLSv1) defaults to SSLv23
-c <days> day threshold for critical
@notpeter
notpeter / Mac_mIRC.md
Last active April 10, 2025 02:09
Mac mIRC: Running mIRC on OSX with Wine

I found the mac native IRC clients lacking. So let's run mIRC with Wine...

Installing Wine, Mirc and OpenSSL

  • Download the [mIRC installer][6] and put it somewhere safe.
  • Download the [OpenSSL installer][5] (openssl-0.9.8y-setup.exe as of May 2014)
  • Download the [Wine for Darwin and Mac OSX][7] installer. Mount the DMG, run 'Install Wine.
  • Run the newly installed /Applications/Wine.app
  • Select 'Wine Config' from the Wine Menu Screenshot