Skip to content

Instantly share code, notes, and snippets.

View awaxa's full-sized avatar

Greg Kitson awaxa

View GitHub Profile
@awaxa
awaxa / pre.pp
Created February 24, 2015 00:05
exec { 'IIS Feature Delegation, Handler Mappings: R/W':
command => 'Set-WebConfiguration //System.webServer/handlers -metadata overrideMode -value Allow -PSPath IIS:/',
refreshonly => true,
}
exec { 'IIS Feature Delegation, Modules: R/W':
command => 'Set-WebConfiguration //System.webServer/modules -metadata overrideMode -value Allow -PSPath IIS:/',
refreshonly => true,
}
@awaxa
awaxa / ec2.pp
Created February 23, 2015 16:42
class profile::ec2 {
$amis = {
'rhel' => {
'7' => { # https://aws.amazon.com/marketplace/pp/B00KWBZVK6
'us-east-1' => 'ami-a8d369c0',
'us-west-2' => 'ami-99bef1a9',
},
'6' => { # https://aws.amazon.com/marketplace/pp/B00CFQWLS6
'us-east-1' => 'ami-aed06ac6',
@awaxa
awaxa / Vagrantfile
Created February 21, 2015 21:11
lab-windows
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ferventcoder/win7pro-x64-nocm-lite"
config.vm.provider "virtualbox" do |vb|
vb.gui = true
end
---
sites:
- domain: 'www.example.com'
- domain: 'www2.example.com'
ip: '1.1.1.1'
@awaxa
awaxa / site.pp
Last active August 29, 2015 14:15
class profile::base {
include profile::firewall
include ntp
firewall { '100 allow ssh access':
ensure => present,
port => '22',
proto => 'tcp',
action => 'accept',
}
}
class {'r10k::webhook::config':
enable_ssl => false,
protected => false,
} ->
class {'r10k::webhook': }
Lita.configure do |config|
options = {
:name => "diabot",
:channels => [ "##diabot" ],
}
case ENV['ENV']
when /production/i
options[:channels] << [ "##reddit-diabetes", "##reddit-diabetes-ops" ]
Lita.configure do |config|
config.robot.name = "botwaxa"
config.robot.log_level = :debug
# An array of user IDs that are considered administrators. These users
# the ability to add and remove other users from authorization groups.
# What is considered a user ID will change depending on which adapter you use.
# config.robot.admins = ["awaxa"]
@awaxa
awaxa / -
Created February 10, 2015 15:45
#
# ARIN WHOIS data and services are subject to the Terms of Use
# available at: https://www.arin.net/whois_tou.html
#
# If you see inaccuracies in the results, please report at
# http://www.arin.net/public/whoisinaccuracy/index.xhtml
#
@awaxa
awaxa / rules.md
Last active October 27, 2015 01:47

the rules

Breaking the rules can result in being banned without warning.
  1. Don't be a jerk or belittle anyone's lifestyle, choices, nutritional habits, etc.
  2. Giving medical advice is not allowed, especially if it is inaccurate or dangerous. Instead, consider telling a story about something that has worked for you in the past or an idea that you would try.
  3. Don't harass other members either in the channel or private message. Reports of harassment will result in an immediate ban from the channel.
  4. Depression is a well known side-effect of diabetes and other illnesses. If you have suicidal thoughts or feel like taking your own life, there are professionals who can help you.