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
perl: subversion/libsvn_subr/path.c:114: svn_path_join: Assertion `svn_path_is_canonical(base, pool) |
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
Fog::Bouncer.security :private do | |
account "AccountName", "000000000001" | |
group "agroup", "A Security Group" do | |
source "88.88.88.8/30" do | |
tcp 22, 80, 443 | |
icmp 8, 0, 3, 11, 12 | |
end |
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
def sign(gpg_passphrase="") | |
rpm_cmd = "rpm --resign " + self.filename | |
rpm_cmd += " 2> /dev/null" | |
PTY.spawn(rpm_cmd) do |r,w,pid| | |
prompt = r.read(19) | |
# match the expected prompt exactly, since that's the only way we know if | |
# something went wrong. | |
unless prompt == "Enter pass phrase: " |
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
# ALERT LOGS: | |
March 02, 2014 17:00 | |
Host Up[03-02-2014 17:23:01] HOST ALERT: a0.webproxy.domain.com;UP;HARD;1;HTTP OK: Status line output matched "HTTP/1.1 200" - 1633 bytes in 4.398 second response time | |
Host Down[03-02-2014 17:22:31] HOST ALERT: a0.webproxy.domain.com;DOWN;HARD;2;CRITICAL - Socket timeout after 10 seconds | |
March 02, 2014 16:00 | |
Host stopped flapping[03-02-2014 16:55:51] HOST FLAPPING ALERT: a0.webproxy.domain.com;STOPPED; Host appears to have stopped flapping (3.8% change < 5.0% threshold) |
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
rclark@mercury:~$ ./tmp/test_yaml.rb ./tmp/test_yaml.yml | |
yaml is a Hash | |
{"ulimit"=>{"user"=>nil, "ulimit_config"=>[{"domain"=>"a", "type"=>"a", "item"=>"a", "value"=>0}, {"domain"=>"b", "type"=>"b", "item"=>"b", "value"=>1}]}} | |
rclark@mercury:~$ cat tmp/test_yaml.rb | |
#!/usr/bin/env ruby | |
require 'yaml' | |
yaml = YAML::load(File.open(ARGV[0])) | |
puts "yaml is a #{yaml.class.name}" |
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 'rspec/core/rake_task' | |
DEFAULT_SUITE = [ | |
{ :id => :lib_rimbaud, :title => 'Default test', :files => %w(spec/rimbaud/*_spec.rb) }, | |
] | |
DELUXE_SUITE = [ | |
{ :id => :ssh, :title => 'SSH tests', :dirs => %w(spec/suite/ssh) } | |
] |
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 | |
# | |
mock_dist = { | |
:arch => "i386", | |
:distribution => "epel", | |
:release => "6", | |
} | |
mock_arch = mock_dist[:arch] | |
mock_dist = mock_dist[:distribution] |
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
Process.fork do | |
# drop privileges to uid/gid | |
Process.initgroups(u.name, gid) | |
Process::UID.change_privilege(u.uid) | |
Process::GID.change_privilege(gid) # HERE we have Errno::EPERM | |
puts "In BLOCK with uid: #{u.uid} and group #{gid}" | |
# Invoke the caller's block of code. | |
block.call #(user) | |
end |
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
:POSTROUTING ACCEPT [0:0] | |
-A PREROUTING -p tcp --dport 53 -m comment --comment "MNS: Redirect TCP 53 to 10053" -j REDIRECT --to-port 10053 | |
-A PREROUTING -p udp --dport 53 -m comment --comment "MNS: Redirect UDP 53 to 10053" -j REDIRECT --to-port 10053 | |
[rdark@g2-2119-test ~]$ sudo iptables -t nat --list -v | |
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes) | |
pkts bytes target prot opt in out source destination | |
0 0 REDIRECT tcp -- any any anywhere anywhere tcp dpt:domain /* MNS: Redirect TCP 53 to 10053 */ redir ports 10053 | |
0 0 REDIRECT udp -- any any anywhere anywhere udp dpt:domain /* MNS: Redirect UDP 53 to 10053 */ redir ports 10053 |
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
%{?scl:%scl_package perl-App-FatPacker} | |
%{!?scl:%global pkg_name %{name}} | |
Name: %{?scl_prefix}perl-App-FatPacker | |
Version: 0.010001 | |
Release: 2%{?dist} | |
Summary: Pack dependencies onto a script file | |
License: GPL+ or Artistic | |
Group: Development/Libraries | |
URL: http://search.cpan.org/dist/App-FatPacker/ |
OlderNewer