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 'spec_helper' | |
describe 'windows box' do | |
it 'should have a vagrant user' do | |
expect(user 'vagrant').to exist | |
end | |
end | |
describe windows_feature('Web-Webserver') do | |
it{ should be_installed.by("powershell") } |
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
$webConfig = "C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config" | |
$newConfig = new-item c:\temp\web.config -type file | |
$doc = new-object System.Xml.XmlDocument | |
$doc.Load($webConfig) | |
$doc.get_DocumentElement()."system.net".defaultProxy.proxy.usesystemdefault = "false" | |
$doc.Save($newConfig) |
This file has been truncated, but you can view the full file.
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
/home/vagrant/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/context.rb:262 IRB::Context#set_last_value | |
/home/vagrant/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/workspace.rb:85 IRB::WorkSpace#evaluate | |
/home/vagrant/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb.rb:372 IRB#CurrentContext | |
/home/vagrant/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb.rb:353 IRB#conf | |
/home/vagrant/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb.rb:661 IRB::Irb#output_value | |
/home/vagrant/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/context.rb:385 IRB::Context#inspect_last_value | |
/home/vagrant/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/inspector.rb:114 IRB::Inspector#inspect_value | |
/home/vagrant/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/ruby-lex.rb:206 RubyLex#prompt | |
/home/vagrant/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/context.rb:252 IRB::Context#prompting? | |
/home/vagrant/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/irb/context.rb:236 IRB::Context#verbose? |
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 | |
require 'rubygems' | |
require 'pp' | |
require 'fog' | |
require 'highline/import' | |
require 'sinatra' | |
set :bind, '0.0.0.0' |
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
sudo mount -o loop /dev/cdrom /mnt | |
tar zxf /mnt/VMwareTools-*.tar.gz -C /tmp/ | |
sudo /tmp/vmware-tools-distrib/vmware-install.pl -d | |
sudo umount /mnt |
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
# Description: | |
# This script receives pages in the formats | |
# /usr/bin/curl -d host="$HOSTALIAS$" -d output="$SERVICEOUTPUT$" -d description="$SERVICEDESC$" -d type=service -d notificationtype="$NOTIFICATIONTYPE$ -d state="$SERVICESTATE$" $CONTACTADDRESS1$ | |
# /usr/bin/curl -d host="$HOSTNAME$" -d output="$HOSTOUTPUT$" -d type=host -d notificationtype="$NOTIFICATIONTYPE$" -d state="$HOSTSTATE$" $CONTACTADDRESS1$ | |
# | |
# Based on a gist by oremj (https://gist.github.com/oremj/3702073) | |
# | |
# Configuration: | |
# HUBOT_NAGIOS_URL - https://<user>:<password>@nagios.example.com/cgi-bin/nagios3 | |
# |
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
{ | |
"_shards" : { | |
"total" : 3162, | |
"successful" : 3162, | |
"failed" : 0 | |
}, | |
"_all" : { | |
"primaries" : { | |
"fielddata" : { | |
"memory_size_in_bytes" : 397361900, |
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
{ | |
"cluster_name" : "logstash", | |
"nodes" : { | |
"XyPGpIHlR2emjOAsvtt8qA" : { | |
"timestamp" : 1396885317502, | |
"name" : "es02", | |
"transport_address" : "inet[/192.168.0.82:9300]", | |
"host" : "es02.svc.local", | |
"ip" : [ "inet[/192.168.0.82:9300]", "NONE" ], | |
"indices" : { |
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
curl 'localhost:9200/_cat/recovery?v' | |
index shard target recovered percent host ip node | |
.marvel-2014.03.23 0 1532632530 0 0.0% elasticsearch02.stn.local 10.128.112.174 Champion of the Universe | |
.marvel-2014.03.22 0 1115751636 0 0.0% elasticsearch02.stn.local 10.128.112.174 Champion of the Universe |
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
{ | |
"persistent" : { }, | |
"transient" : { | |
"indices" : { | |
"recovery" : { | |
"concurrent_streams" : "3", | |
"max_bytes_per_sec" : "80" | |
} | |
} | |
} |