Skip to content

Instantly share code, notes, and snippets.

View johann8384's full-sized avatar

Jonathan Creasy johann8384

View GitHub Profile
@johann8384
johann8384 / keybase.md
Created January 30, 2017 02:56
Keybase Verification

Keybase proof

I hereby claim:

  • I am johann8384 on github.
  • I am johann8384 (https://keybase.io/johann8384) on keybase.
  • I have a public key whose fingerprint is 7D01 CA7D E74A C4C1 FAD1 0962 C473 9842 59A3 80B4

To claim this, I am signing this object:

Connected to localhost.
Escape character is '^]'.
auth basic rxw6bvPjVoKPc2TFBwbv 0iDpwDv4DNXFCXHlki9oObDmrTpuL7h6e5DHv24p
AUTH_SUCCESS.
exit
Connection closed by foreign host.
2016-03-18 03:04:11,480 INFO [OpenTSDB I/O Worker #1] AuthenticationChannelHandler: Setting up AuthenticationChannelHandler
2016-03-18 03:04:11,483 DEBUG [OpenTSDB I/O Worker #1] AuthenticationChannelHandler: Passing auth command to Authentication Plugin
2016-03-18 03:04:11,483 DEBUG [OpenTSDB I/O Worker #1] AuthenticationChannelHandler: Validating Basic Credentials
@johann8384
johann8384 / app.java
Created January 29, 2016 21:48
Metrics and Stuff
import com.google.common.collect.ImmutableMap;
import com.github.sps.metrics.OpenTsdbReporter;
import com.github.sps.metrics.opentsdb.OpenTsdbTelnet;
import com.turn.metrics.system.OperatingSystemMetricSet;
import com.turn.metrics.system.FileSystemMetricSet;
import com.turn.metrics.system.RuntimeMetricSet;
import static java.util.concurrent.TimeUnit.*;
static final MetricRegistry metrics = new MetricRegistry();
@johann8384
johann8384 / instrumentation-policy.json
Created January 19, 2016 18:41
Instrumentation Policy Document
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"cloudwatch:DeleteAlarms",
"cloudwatch:DescribeAlarmHistory",
"cloudwatch:DescribeAlarms",
"cloudwatch:DescribeAlarmsForMetric",
@johann8384
johann8384 / check_erb.sh
Last active November 12, 2015 02:59
Git Hooks and associated scripts for checking puppet commits
#!/bin/bash
#Script to test puppet files have valid syntax.
#Intended for use with hudson/jenkins.
set -e
set -u
fail=0
#TODO: Run these in parallel - we have 4 cores.
#TODO: Control the environment (through the config dir?).
tarting Nmap 6.40 ( http://nmap.org ) at 2013-11-15 09:36 GMT
Nmap scan report for monitorama.eu (141.101.116.49)
Host is up (0.012s latency).
Other addresses for monitorama.eu (not scanned): 141.101.117.49
PORT STATE SERVICE
20/tcp filtered ftp-data
21/tcp filtered ftp
22/tcp filtered ssh
23/tcp filtered telnet
25/tcp filtered smtp
input {
tcp {
type => "syslog"
host => "127.0.0.1"
port => 3514
}
tcp {
type => "eventlog"
host => "10.1.1.2"
port => 3515
class role::hadoop::node {
include ::eluna::misc
include ::java::jdk
include ::java::mysql
::nagios::client::add_to_hostgroup { 'opentsdb_client': }
::ssh::allow_group { ['ops', 'dwh-admins']: }
::sudo::add_access { "dwh-admins sudo access":
user => '%dwh-admins',
#! /usr/bin/env bash
BRANCH=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
TARGET=Contegix
ISSUE=0
USER=johann8384
while getopts “hi:p:r:l:cf” OPTION
do
@johann8384
johann8384 / auth.php
Last active December 28, 2015 11:49 — forked from cubehouse/auth.php
#!/usr/bin/php
<?php
/*
Copyright (c) <2005> LISSY Alexandre, "lissyx" <alexandrelissy@free.fr>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software andassociated documentation files (the "Software"), to deal in the
Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so,