gem 'stdlib', :git => "https://github.com/puppetlabs/puppetlabs-stdlib.git"
gem 'apt', :git => "https://github.com/puppetlabs/puppet-apt.git"
gem 'mongodb', :git => "https://github.com/puppetlabs/puppetlabs-mongodb.git"
This file contains 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
curl -XGET 'http://localhost:9200/graylog2/_search?pretty=true' -d ' | |
{ | |
"query" : { | |
"matchAll" : {} | |
} | |
}' |
This file contains 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 'xmlrpc/client' | |
# A useful helper for running Confluence XML-RPC from Ruby. Takes care of | |
# adding the token to each method call (so you can call server.getSpaces() | |
# instead of server.getSpaces(token)). Also takes care of re-logging in | |
# if your login times out. | |
# | |
# Usage: | |
# | |
# server = Confluence::Server.new :server => 'http://confluence02.lightningsoure.com' |
This file contains 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
The version of rubygems is too old in the Lucid repositories so I make use of a thirdparty PPA. | |
This PPA is from Mackenzie Morgan - a Ubuntu Developer - https://launchpad.net/~maco.m/+archive/ruby | |
1) add Mackenzie's PPA | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:maco.m/ruby | |
2) let apt see the new repositories |
This file contains 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
lunix@glenmorangie] -> cat .gitmodules | |
[submodule "bundle/syntastic"] | |
path = bundle/syntastic | |
url = git://github.com/scrooloose/syntastic.git | |
[submodule "bundle/puppet"] | |
path = bundle/puppet | |
url = git://github.com/rodjek/vim-puppet.git | |
[submodule "bundle/tabular"] | |
path = bundle/tabular | |
url = git://github.com/godlygeek/tabular.git |
This file contains 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
# If you add the following to your ~/.bashrc you can the serve the contents of any directory with ruby/webrick on port 3000. | |
alias rs="ruby -rwebrick -e \"s = WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start\"" | |
This file contains 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
* | |
!/.gitignore | |
!/*.xml | |
!/nextBuildNumber | |
!/jobs | |
!/jobs/* | |
!/jobs/*/*.xml | |
/jobs/*/disk-usage.xml | |
/jobs/*/builds |
This file contains 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
#!/bin/bash -e | |
if [ "$#" -eq 1 ]; then | |
SavePath=$1 | |
else | |
SavePath=$(zenity --file-selection --save --confirm-overwrite --filename $HOME/personal/media/Videos/screencasts/incoming/ ) | |
fi | |
echo "Saving video to $SavePath" |
This file contains 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 | |
require 'rubygems' | |
require 'pp' | |
require 'fog' | |
credentials = { | |
:provider => "vsphere", | |
:vsphere_username => "foo", | |
:vsphere_password=> "bar", |
This file contains 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
node /^foo-app-\d+.example.net$/ { | |
roles:app_server { $fqdn: | |
collectd_client_report_to => 'foo-monitor-01.example.net', | |
syslog_client_report_to => 'foo-log-01.example.net' | |
} | |
roles:backup { $fqdn: | |
backupserver => 'backup-01.example.net', | |
} | |
} |