Skip to content

Instantly share code, notes, and snippets.

View teriyakichild's full-sized avatar
🏠
Working from home

Tony Rogers teriyakichild

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am teriyakichild on github.
  • I am teriyakichild (https://keybase.io/teriyakichild) on keybase.
  • I have a public key whose fingerprint is 17C2 9327 9ED4 8078 6F0D F9D9 F6FB 1040 1390 8A11

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>2.0</version>
<date>2014-06-19T22:25:40Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
- hosts: localhost
gather_facts: False
tasks:
#include: tasks/create-hosts.yml
- name: Server build request
local_action:
module: rax
credentials: ~/.raxpub
name: "zabbix-{{ item }}"
region: "{{ item }}"
@teriyakichild
teriyakichild / Vagrantfile
Last active January 11, 2020 22:53
vagrant file
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'yaml'
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
# Load configuration from config.yml
conf = YAML::load_file('config.yml')
nodes = conf['nodes']
@teriyakichild
teriyakichild / run.py
Created May 29, 2015 01:10
python script to parse a products export csv from shopify, strip the html tags from the description, and then write a new csv file
from HTMLParser import HTMLParser
import csv
import re
import sys
if len(sys.argv) < 3:
print 'Usage: python {0} <file-in> <file-out>'.format(sys.argv[0])
filein = sys.argv[1]
nginx::resource::map { '$loggable':
ensure => present,
hostnames => false,
default => '1',
string => '$uri',
mappings => {
'/monitor' => '0',
}
}
[tony4715@z420 puppet-profile_jenkins]$ bundle exec gem list
*** LOCAL GEMS ***
activesupport (4.2.3)
addressable (2.3.8)
autoparse (0.3.3)
aws-sdk (1.64.0)
aws-sdk-v1 (1.64.0)
beaker (2.18.1)
import getpass
import sys
import time
from pyzabbix import ZabbixAPI
def get_zapi(host, user, password):
zapi = ZabbixAPI(host)
zapi.session.verify = False
zapi.login(user, password)
# == Class: profile_firewall
#
# This is a profile to manage iptables on a system using the
# puppetlabs-firewall module. With this class, basic rules are added that only
# allow from icmp, allow from localhost, allow established/related connections,
# and allow ssh. Everything else is denied. Once you have pulled this class
# into your module, you can use the firewall { ... } resource to add your
# own rules.
#
# See https://forge.puppetlabs.com/puppetlabs/firewall for additional