I hereby claim:
- I am sgirones on github.
- I am salvadorgirones (https://keybase.io/salvadorgirones) on keybase.
- I have a public key whose fingerprint is F9D9 7897 BB87 7FC4 B0B2 DEBA 9A5C 842E 96A4 24B7
To claim this, I am signing this object:
admin: | |
access_log_path: /dev/null | |
address: | |
socket_address: { address: 127.0.0.1, port_value: 8001 } | |
static_resources: | |
listeners: | |
- name: listener1 | |
address: | |
socket_address: { address: 0.0.0.0, port_value: 443 } |
2018/05/03 14:13:24.401627 [TRACE] catalog.nodes: GET /v1/catalog/nodes?index=14354103&wait=1m0s | |
2018/05/03 14:13:24.401668 [DEBUG] (runner) receiving dependency catalog.nodes | |
2018/05/03 14:13:24.401701 [INFO] (runner) initiating run | |
2018/05/03 14:13:24.401713 [DEBUG] (runner) checking template f747a8ccf42baba4af4db5f2a626a6e2 | |
2018/05/03 14:13:24.402382 [DEBUG] (runner) diffing and updating dependencies | |
2018/05/03 14:13:24.402419 [DEBUG] (runner) catalog.nodes is still needed | |
2018/05/03 14:13:24.402428 [DEBUG] (runner) watching 2 dependencies | |
2018/05/03 14:13:24.498227 [TRACE] catalog.nodes: returned 132 results | |
2018/05/03 14:13:24.498364 [TRACE] (view) catalog.nodes marking successful data response | |
2018/05/03 14:13:24.499784 [TRACE] (view) catalog.nodes successful contact, resetting retries |
I hereby claim:
To claim this, I am signing this object:
description "apt-cacher-ng" | |
author "Salvador Girones <salvador.girones@cohodata.com>" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
script | |
NAME=apt-cacher-ng |
#!/usr/bin/env ruby | |
# Clean all those processes that belongs to a Docker namespace, but that container no longer exists | |
def all_procs | |
Dir['/proc/*'].select {|d| /\/proc\/\d+/.match(d) }.map { |pdir| pdir.split('/')[-1].to_i } | |
end | |
def docker_procs | |
all_procs.select { |p| File.read('/proc/' + p.to_s + '/cgroup').include? 'docker' } |
#!/usr/bin/env ruby | |
require 'time' | |
if not ARGV[0] | |
puts "Usage: ./calculate_jobs_time.rb <log_file>" | |
exit 1 | |
end | |
init_job_lines = {} |
#!/bin/bash | |
# Prepare config | |
cat > /etc/init/abiquo-chef-agent.conf << EOF | |
# chef-client - Chef Configuration Management Client | |
# | |
# Chef Client provides the Chef configuration management daemon | |
description "Abiquo Chef Agent" |
#!/usr/bin/env ruby | |
require "yaml" | |
require "time" | |
require "net/smtp" | |
# params | |
filename = "results.data" | |
sleep_time = 1 # In seconds. Time between iterations | |
SMTP_SERVER = "localhost" |
#!/usr/bin/env ruby | |
#Check if the commandline param is a MAC address | |
if not /^(\S{1,2}:\S{1,2}:\S{1,2}:\S{1,2}:\S{1,2}:\S{1,2})?$/.match("#{ARGV[0]}") | |
puts "#{ARGV[0]} is not a valid mac" | |
exit | |
end | |
def self.ip_to_hex ip | |
return if not ip |