Skip to content

Instantly share code, notes, and snippets.

View zipkid's full-sized avatar
💭
Eating 🍪

Stefan Goethals zipkid

💭
Eating 🍪
View GitHub Profile
@phybros
phybros / update-route53.sh
Last active February 12, 2024 00:07
BASH Script to keep Route53 updated with your current external IP address
#!/bin/bash
# (optional) You might need to set your PATH variable at the top here
# depending on how you run this script
#PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Hosted Zone ID e.g. BJBK35SKMM9OE
ZONEID="enter zone id here"
# The CNAME you want to update e.g. hello.example.com
Vagrant.configure("2") do |config|
config.vm.box = 'centos-65-x64-virtualbox-puppet'
config.vm.box_url = 'http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-puppet.box'
config.vm.synced_folder "./hiera", "/hiera"
config.vm.define :stditop do |config|
config.vm.hostname = "fqdn.com"
config.vm.network :private_network, ip: "192.168.11.171"
@jasonhancock
jasonhancock / puppet apache log analyzer
Created August 23, 2012 18:09
Analyze puppet's apache logs.
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
my $file = $ARGV[0] or die('Must pass an apache access logfile');
open IN, "<$file" or die("Can't open $file");
$ mkdir temp
$ cd temp
$ curl -O http://downloads.puppetlabs.com/mcollective/mcollective-1.3.3.tgz
$ tar -xvzf mcollective-1.3.3.tgz
$ cd mcollective-1.3.3
$ cp etc/client.cfg.dist ~/.mcollective
# edit ~/.mcollective set libdir to /Users/rip/temp/mcollective-1.3.3/plugins and a few other bits like set plugin.yaml to /Users/rip/temp/mcollective-1.3.3/etc/facts.yaml.dist for a client its irrelevant just needs to be there
$ PATH=$PATH:/Users/rip/temp/mcollective-1.3.3/bin
$ export RUBYLIB=/Users/rip/temp/mcollective-1.3.3/lib
$ mco ping