Skip to content

Instantly share code, notes, and snippets.

Peter Tripp notpeter

  • Amherst, MA
Block or report user

Report or block notpeter

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am notpeter on github.
  • I am notpeter ( on keybase.
  • I have a public key ASA0y4-Fjj1Qsfzx8HSUP3fanssfnI9bq44xixLxnUkyOgo

To claim this, I am signing this object:

notpeter / salt_minion.sls
Created Sep 9, 2016
SaltStack repo state
View salt_minion.sls
{% set version = "2016.3.3" %}
{% set pkg_version = '2016.3.3+ds-1' %}
- humanname: SaltStack Repo
- name: {{ "deb %s main" %
(grains['osrelease'], version, grains['oscodename']) }}
- file: /etc/apt/sources.list.d/saltstack.list
- keyid: 754A1A7AE731F165D5E6D4BD0E08A149DE57BFBE # SaltStack Packaging Team
notpeter / nginx-elasticsearch-ssl.conf
Last active May 2, 2016
SSL Reverse Proxy for Elasticsearch (GET only, HTTP Basic Auth & and path restrictions)
View nginx-elasticsearch-ssl.conf
# Place this config block inside the http scope of your nginx config.
# Replace with your DNS server. (e.g. VPC ->
resolver valid=60s ipv6=off;
server {
listen 9201;
ssl on;
ssl_certificate /etc/nginx/ssl/;
notpeter /
Created Jul 3, 2015
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=''
notpeter /
Last active Aug 29, 2015
Dante SOCKS Proxy - Source Code History Git Import
set -e
# Downloads the dante socks proxy source code and builds up a version history in a git repository.
# Note: Only tested on Linux. Probably won't work on OSX/BSDs due to alternate 'stat' syntax.
# Usage:
# git init
# ./
notpeter /
Last active Jul 26, 2017
Hubot Nagios Integration
# Description
# A hubot script that notifies of nagios alerts
module.exports = (robot) -> '/nagios-alerts', (req, res) ->
j = req.body
if j.nagioshost
msg = "Nagios: #{j.service}@#{j.hostname} #{j.state} #{j.url} "
robot.messageRoom '#whatever', msg
notpeter /
Created Jul 11, 2014
Nagios Plugin: SSL Certificate Check in 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 /
Last active Sep 12, 2019
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/
  • Select 'Wine Config' from the Wine Menu Screenshot
notpeter / gist:3649103
Created Sep 6, 2012 — forked from rolo/gist:1481128
Install Postgres 9.1, PostGIS 2.0 and create PostGIS template on Ubuntu 12.04 LTS
View gist:3649103
# Install Postgres 9.1, PostGIS and create PostGIS template on a clean Ubuntu 11.10 Oneiric Ocelot box
# add the ubuntu gis ppa
sudo apt-get -y install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
You can’t perform that action at this time.