Skip to content

Instantly share code, notes, and snippets.

View kisoku's full-sized avatar

Mathieu Sauve-Frankel kisoku

View GitHub Profile
#
# 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
$ 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",
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
#!/usr/bin/env ruby
compile '/feed/*' do
filter :erb
end
compile '*' do
filter :haml
layout 'default'
end
$ ruby bin/ohai network//interfaces//em0//addresses//10.25.10.5
{
"broadcast": "10.25.10.255",
"netmask": "255.255.255.0",
"family": "inet"
}
Information for ftp://ftp.jaist.ac.jp/pub/OpenBSD/snapshots/packages/i386/screen-4.0.3p1.tgz
Comment:
multi-screen window manager
Description:
Screen is a full-screen window manager that multiplexes a physical
terminal between several processes (typically interactive shells).
Each virtual terminal provides the functions of a DEC VT100 terminal
and, in addition, several control functions from the ANSI X3.64 (ISO