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
# | |
# 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 |
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
# | |
# 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 |
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
# | |
# 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 |
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
# | |
# 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 |
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 | |
compile '/*' do | |
filter :haml | |
layout 'default' | |
end | |
compile '/feed/' do | |
filter :erb | |
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
$ 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", |
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 attributes_print(a) | |
if a =~ /^(\w+)((\[:\w+\])+)/ | |
field = "@data['#{$1}']" + $2 | |
JSON.pretty_generate(eval(field)) | |
else | |
JSON.pretty_generate(@data[a]) | |
end | |
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
#!/usr/bin/env ruby | |
compile '/feed/*' do | |
filter :erb | |
end | |
compile '*' do | |
filter :haml | |
layout 'default' | |
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
$ ruby bin/ohai network//interfaces//em0//addresses//10.25.10.5 | |
{ | |
"broadcast": "10.25.10.255", | |
"netmask": "255.255.255.0", | |
"family": "inet" | |
} |
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
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 |