Skip to content

Instantly share code, notes, and snippets.

View kisoku's full-sized avatar

Mathieu Sauve-Frankel kisoku

View GitHub Profile
{
"dmi": {
"bios": {
"version": "1RETDRWW (3.23 )",
"vendor": "IBM",
"release_date": "06\/18\/2007"
},
"baseboard": {
"version": "Not Available",
"manufacturer": "IBM",
{
"keys": {
"ssh": {
"host_dsa_public": "AAAAB3NzaC1kc3MAAACBAI7qyCk+clLc1egOypRauMdwG82cv80g4K+MxHoePf4rpZp8xamPKIwEQQHvh3WSPUr\/1\/dWcS6bQ6Cx9JSs\/5c1UIbqlBpNF9kmcO3gFFgD0sKRo0QAqrrpn6YeL13SiiRpe\/+PLjfbO3tzcnBCdyhyIKUEVOghp38VPht2mAsvAAAAFQCLmnUwYJa0M+kONXYmSLFXxSUoVQAAAIBCt6HIfYNAZOTNnsNkZft1DY+8F22Dm4BmElBg9EAocD2+PWMQu7zVxP8izq8uta4TbzEKghebTs4rJmOMcDjSDdteHvYbQMqW8BRoFnFBCnqFFeECNS9rtDRqsBN\/tcgPzc0IBfsw86DXda0dvgcLR3UvaDtkve6yFS29YsiXEQAAAIAfImoyMAs51yRt9mYFi\/MlX+2V9EPc64Nr7WZSGUdCa\/E5oKFEYVc3lag8Dn39W5X9rfS97yJvj+h267BLt\/WNkRtpBZZ\/m0\/oGlLxKXfBbmNWYQpaIK+8S5qRl0i4jKGe7clnrPrX3kkzbSY0EtbUtJmm5rhf107dbSJzs4cLsw==",
"host_rsa_public": "AAAAB3NzaC1yc2EAAAABIwAAAIEA0USpOmc1Y7Gb6ackVj0mfSaV331NNtHShyiM1sf+nu6vMapKViE+Yv7t9w1C0RwzavnWQwT5H\/is9kdfuHWrqBYuEeKfK\/0eZp2QfmxWy\/U84jSQkwZ1OrRiZY1lMdvGBUwQU5Gj5NVFIipJxPzy6F2Y24PYHCDxSz6Gkq+5g20="
}
},
"dmi": {
"bios": {
"version": "6.00",
#
# Author:: Mathieu Sauve-Frankel <msf@kisoku.net>
# Copyright:: Copyright (c) 2008 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Author:: Mathieu Sauve-Frankel <msf@kisoku.net>
# Copyright:: Copyright (c) 2008 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Author:: Mathieu Sauve-Frankel <msf@kisoku.net>
# Copyright:: Copyright (c) 2008 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Author:: Mathieu Sauve-Frankel <msf@kisoku.net>
# Copyright:: Copyright (c) 2008 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Author:: Mathieu Sauve-Frankel <msf@kisoku.net>
# Copyright:: Copyright (c) 2009, Mathieu Sauve Frankel
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#!/usr/bin/env ruby
compile '/*' do
filter :haml
layout 'default'
end
compile '/feed/' do
filter :erb
end
def attributes_print(a)
if a =~ /^(\w+)((\[:\w+\])+)/
field = "@data['#{$1}']" + $2
JSON.pretty_generate(eval(field))
else
JSON.pretty_generate(@data[a])
end
end
$ ruby bin/ohai "languages[:ruby]"
attribute: languages[:ruby]
{
"gems_dir": "\/usr\/local\/lib\/ruby\/gems\/1.8",
"target_os": "openbsd4.6",
"platform": "i386-openbsd4.6",
"host_vendor": "unknown",
"target_vendor": "unknown",
"target_cpu": "i386",
"host_os": "openbsd4.6",