This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# This script reads lines from STDIN and sends a notification for each line. | |
# It's intended to be used with the fnotify.pl IRSSI script to write notices | |
# and hilights to a plain text file. tail -f links the two systems together. | |
require 'rubygems' | |
# For Jabber Notification | |
gem 'xmpp4r-simple' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Apache Load Balancer Front End ## | |
# Puppet Apache::Config[010_frontend_puppet_prod.conf] | |
# This file managed by Puppet from a template. | |
# source: puppet_frontend_XXXX.conf | |
# All CA requests should be directed to specific workers | |
<Proxy balancer://puppet_prod_ca> | |
# Only one member | |
BalancerMember http://puppetca.puppetlabs.vm:18140 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ~/.vim/ftplugin/puppet.vim | |
" | |
" Requires Align VIM plugin: | |
" http://mysite.verizon.net/astronaut/vim/align.html | |
" With a visual block selected, align =>'s | |
vmap . :Align =><CR> | |
" Function to save cursor position, select the block, and align =>'s | |
function! AlignFats() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias.st=status | |
alias.ci=commit | |
alias.co=checkout | |
alias.lg=log --pretty=format:'%C(yellow)%h%C(reset) %s %C(cyan)%cr%C(reset) %C(blue)%an%C(reset) %C(green)%d%C(reset)' --graph --date-order | |
alias.fpull=pull --ff --ff-only | |
alias.fmerge=merge --ff --ff-only | |
alias.review=log --stat=160,180 -p -w --patience --reverse -M -C -C -c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
517 ~ % rdebug puppet -- --node_terminus=exec_with_fact -e 'notice("Hi")' | |
(rdb:1) catch NotImplementedError | |
Catch exception NotImplementedError. | |
(rdb:1) continue | |
Catchpoint at /Users/jeff/src/faces/external_nodes_with_fact/lib/puppet/indirector/node/exec_with_fact.rb:10: `We should translate certname to a fact value.' (NotImplementedError) | |
from /Users/jeff/src/puppet/lib/puppet/application.rb:304:in `run' | |
from /Users/jeff/src/puppet/lib/puppet/application.rb:410:in `exit_on_fail' | |
from /Users/jeff/src/puppet/lib/puppet/application.rb:304:in `run' | |
from /Users/jeff/src/puppet/lib/puppet/util/command_line.rb:59:in `execute' | |
from /Users/jeff/src/puppet/bin/puppet:4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
517 ~ % rdebug puppet -- --node_terminus=exec_with_fact -e 'notice("Hi")' | |
(rdb:1) catch NotImplementedError | |
Catch exception NotImplementedError. | |
(rdb:1) continue | |
Catchpoint at /Users/jeff/src/faces/external_nodes_with_fact/lib/puppet/indirector/node/exec_with_fact.rb:10: `We should translate certname to a fact value.' (NotImplementedError) | |
from /Users/jeff/src/puppet/lib/puppet/application.rb:304:in `run' | |
from /Users/jeff/src/puppet/lib/puppet/application.rb:410:in `exit_on_fail' | |
from /Users/jeff/src/puppet/lib/puppet/application.rb:304:in `run' | |
from /Users/jeff/src/puppet/lib/puppet/util/command_line.rb:59:in `execute' | |
from /Users/jeff/src/puppet/bin/puppet:4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% puppet catalog_yaml | |
Unable to find application 'catalog_yaml'. | |
% puppet faces | |
status: | |
Terminuses: local, rest | |
Actions: destroy, find, info, save, search | |
facts: | |
Terminuses: active_record, couch, facter, inventory_active_record, memory, rest, yaml | |
Actions: destroy, find, info, save, search, upload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'puppet/face' | |
Puppet::Face.define(:catalog, '0.0.1') do | |
action :compareyaml do | |
summary "This action takes a list of node identifier names as a flat text | |
file, then loads a catalog in directory A and directory B exactly matching the | |
name. It them compares the catalogs. This is intended to compare catalogs | |
generated on older versions of a Puppet Master with catalogs generated on a | |
newer version of Puppet Master." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recursively diff two hashes, showing only the differing values. | |
# By Henrik Nyh <http://henrik.nyh.se> 2009-07-14 under the MIT license. | |
# | |
# Example: | |
# | |
# a = { | |
# "same" => "same", | |
# "diff" => "a", | |
# "only a" => "a", | |
# "nest" => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: syntax=ruby | |
require 'bluecloth' | |
require 'erb' | |
outputs = [] | |
FileList['examples/*'].each do |input| | |
output = File.join("output", File.basename(input)).sub(/\.\w+/, ".html") | |
outputs << output |
OlderNewer