I hereby claim:
- I am databus23 on github.
- I am databus23 (https://keybase.io/databus23) on keybase.
- I have a public key ASB56IZrECrJBmtnMUgRWtVIqou5e-ZmloqYA-U81Vk9kwo
To claim this, I am signing this object:
require 'rubygems' | |
require 'nokogiri' | |
while true | |
doc=Nokogiri::XML(open('test.xml')) | |
xpath_query="//MetricTemplate[@name=\"Availability\" or @name=\"does not exist\"]" | |
puts "xpath: #{xpath_query}" | |
result = doc.xpath(xpath_query) | |
if result.length>1 | |
puts "duplicate:" |
#Chef::REST::AuthCredentials accepts only filenames by default | |
#this extends the Chef::REST::AuthCredentials so that the key can be provided directly | |
require 'chef/rest/auth_credentials' | |
class Chef | |
class REST | |
class AuthCredentials | |
alias :original_load_signing_key :load_signing_key | |
def load_signing_key | |
if key_file.start_with?("-----BEGIN RSA PRIVATE KEY-----") |
sed -i -n -e 's/\s*<id>\(.*\)<\/id>/http:\/\/www.imdb.com\/title\/\1\//p' *.nfo |
$ touch a_very_very_very_very_very_very_very_very_very_very_very_very_long_filename_longer_then_100_characters.rb | |
$ tar -cf test.tar a_very_very_very_very_very_very_very_very_very_very_very_very_long_filename_longer_then_100_characters.rb | |
$ ruby -r archive/tar/minitar -e 'Archive::Tar::Minitar.unpack("test.tar","output/")' | |
$ ls output/ | |
PaxHeader | |
a_very_very_very_very_very_very_very_very_very_very_very_very_long_filename_longer_then_100_charact |
{ | |
"provisioners": [ | |
{ | |
"type": "shell", | |
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'", | |
"override": { | |
"virtualbox": { | |
"scripts": [ | |
"scripts/cleanup.sh", | |
"scripts/zerodisk.sh" |
IO.read length: 1778 | |
IO.binread length: 2395 | |
next character after read_string: "\x1A" | |
context after read_string: "TI\"\x0FC:\\Windows\x06;\x00TI\"\x1Awindows_tracing_fla" | |
test.rb:60:in `load': marshal data too short (ArgumentError) | |
from test.rb:60:in `<main>' |
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'benchmark' | |
require 'ohai' | |
options = {} | |
rest = OptionParser.new do |opts| | |
opts.on("-d", "--disabled-plugins [PLUGIN_NAMES]", "Disable ohai plugins by name") do |plugin_names| | |
Ohai::Config[:disabled_plugins] = plugin_names.split(/\s*,\s*/) | |
end |
Process: fish [5422] | |
Path: /usr/local/Cellar/fish/2.1.0/bin/fish | |
Identifier: fish | |
Version: 0 | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [5421] | |
Responsible: iTerm [752] | |
User ID: 1529548076 | |
Date/Time: 2014-07-04 10:06:05.440 +0200 |
I hereby claim:
To claim this, I am signing this object:
=ERROR REPORT==== 3-Feb-2016::10:31:00 === | |
** Generic server <0.582.70> terminating | |
** Last message in was {'EXIT',<0.574.70>, | |
{function_clause, | |
[{rabbit_stomp_reader,log_reason, | |
[{stomp_unexpected_cast,client_timeout}, | |
{reader_state,#Port<0.430455>, | |
"10.9.22.136:59381 -> 10.67.74.133:61613", | |
{resume,#Fun<rabbit_stomp_frame.0.116712418>}, | |
{proc_state,"session-Z9Za9c-pnw87cB_XDfA7VA", |