Skip to content

Instantly share code, notes, and snippets.

View tfhartmann's full-sized avatar
:octocat:
Being Awesome

Alaric Hartmann tfhartmann

:octocat:
Being Awesome
View GitHub Profile
@tfhartmann
tfhartmann / nagios_stub.pp
Last active August 29, 2015 14:05
Nagios Puppet
resources { 'nagios_service': purge => true }
file {
'/etc/nagios/nagios_command.cfg' : ensure => present;
'/etc/nagios/nagios_contact.cfg' : ensure => present;
'/etc/nagios/nagios_contactgroup.cfg' : ensure => present;
'/etc/nagios/nagios_host.cfg' : ensure => present;
'/etc/nagios/nagios_hostgroup.cfg' : ensure => present;
'/etc/nagios/nagios_servicegroup.cfg' : ensure => present;
'/etc/nagios/nagios_service.cfg' : ensure => present;
@tfhartmann
tfhartmann / hhvm_rpm.md
Last active September 14, 2016 06:42
building hhvm rpm
@tfhartmann
tfhartmann / cocoa_keypress_monitor.py
Created December 1, 2014 21:33
cocoa_keypress_monitor.py with logging to local example.log file
#!/usr/bin/env python
# cocoa_keypress_monitor.py by Bjarte Johansen is licensed under a
# License: http://ljos.mit-license.org/
from AppKit import NSApplication, NSApp
from Foundation import NSObject, NSLog
from Cocoa import NSEvent, NSKeyDownMask
from PyObjCTools import AppHelper
import logging
@tfhartmann
tfhartmann / hosts.yaml
Last active August 29, 2015 14:11
Beakers hosts.yml files
HOSTS:
ubuntu-12-04:
platform: ubuntu-12.04-x64
image: ubuntu:12.04
hypervisor: docker
docker_preserve_image: true
#docker_image_commands:
# - 'apt-get install -y puppet'
centos6:
platform: centos-6-x64
@tfhartmann
tfhartmann / beaker_error.md
Last active August 29, 2015 14:11
beaker_error
Hypervisor for centos6 is docker
Beaker::Hypervisor, found some docker boxes to create
Provisioning docker
provisioning centos6
Creating image
Dockerfile is         FROM centos:centos6
          RUN yum clean all
          RUN yum install -y sudo openssh-server openssh-clients curl ntpdate
 RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
@tfhartmann
tfhartmann / single-node-hdfs-yarn-thtest.json
Created January 6, 2015 16:13
Ambari Blueprint Tests based on single-node-hdfs-yarn
{
"host_groups" : [
{
"name" : "master",
"components" : [
{
"name" : "NAMENODE"
},
{
"name" : "SECONDARY_NAMENODE"

Keybase proof

I hereby claim:

  • I am tfhartmann on github.
  • I am tfhartmann (https://keybase.io/tfhartmann) on keybase.
  • I have a public key whose fingerprint is 0089 15AD CFDE CCEB 5AC0 6316 03D4 E465 5325 524A

To claim this, I am signing this object:

@tfhartmann
tfhartmann / hubot-scripts.json
Last active April 22, 2016 13:20
hubot scripts
["redis-brain.coffee", "shipit.coffee", "deadline.coffee", "xkcd.coffee", "working-on.coffee", "zen.coffee", "hello.coffee", "jenkins.coffee" ]
@tfhartmann
tfhartmann / single-node-hdfs-yarn-demo.json
Created February 26, 2015 20:04
single-node-hdfs-yarn-demo.json
{
"host_groups" : [
{
"name" : "master",
"components" : [
{
"name" : "NAMENODE"
},
{
"name" : "SECONDARY_NAMENODE"
@tfhartmann
tfhartmann / consul.coffee
Created March 1, 2015 02:06
work in progress on a consul hubot script
# Description:
# Query Consul with Hubot
#
# Commands:
# hubot consul datacenters - Show Datacenters
# hubot consul services - Show Services
# hubot consul service <servicename> - Show Detailed info about a service
#
# Notes:
# They are commented out by default, because most of them are pretty silly and