This file contains hidden or 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
default_runner "openstack" | |
openstack do | |
auth_url "http://REDACTED:5000/v2.0/tokens" | |
username "steven" | |
password "REDACTED" | |
tenant "openstack" | |
end | |
cookbook "emacs" do |
This file contains hidden or 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
sdanna@gaius ~/src > rails new foobar | |
Rails is not currently installed on this system. To get the latest version, simply type: | |
$ sudo gem install rails | |
You can then rerun your "rails" command. | |
sdanna@gaius ~/src > gem list rails | |
*** LOCAL GEMS *** |
This file contains hidden or 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
$ (cat <<'EOP' | |
{ | |
"normal" : { | |
"chef_client": { | |
"server_url": "https://api.opscode.com/organizations/ORGNAME", | |
"validation_client_name": "ORGNAME-validator" | |
} | |
}, | |
"run_list": [ | |
"recipe[chef-client::config]", |
This file contains hidden or 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
# psearch.rb: A knife plugin for the Partial Search API | |
# | |
# Note that this is a Beta feature of Opscode Hosted Chef | |
# and that it's interface may changed based on user feedback. | |
# | |
# This plugin is net yet officially supported by Opscode | |
class Psearch < Chef::Knife | |
banner "knife psearch INDEX SEARCH NAME=DESIRED_KEY_PATH,[NAME=DESIRED_KEY_PATH]" |
This file contains hidden or 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
$ sudo ./run test-tool/libguestfs-test-tool | |
===== Test starts here ===== | |
LIBGUESTFS_PATH=/home/steven/libguestfs-1.17.32/appliance | |
LIBGUESTFS_DEBUG=1 | |
TMPDIR=/home/steven/libguestfs-1.17.32 | |
libguestfs: new guestfs handle 0x221cf60 | |
library version: 1.17.32 | |
guestfs_get_append: (null) | |
guestfs_get_attach_method: appliance | |
guestfs_get_autosync: 1 |
This file contains hidden or 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
error() { | |
echo "$1" >&2 | |
return 1 | |
} | |
is_integer() { | |
case "$1" in | |
''|*[!0-9]*) | |
return 1 |
This file contains hidden or 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/Rscript | |
# | |
# Quickly generate some basic descriptive | |
# statistics from stdin | |
# | |
library('optparse', quietly=TRUE) | |
option_list <- list(make_option(c("-H", "--header"), action="store_true", default=FALSE, |
This file contains hidden or 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
chef > recipe | |
chef:recipe > node.default['foo'] = "bar" | |
=> "bar" | |
chef:recipe > node.set_unless['foo'] = "baz" | |
=> "baz" | |
chef:recipe > node['foo'] | |
=> "baz" | |
chef:recipe > node.normal['boo'] = "bar" | |
=> "bar" | |
chef:recipe > node.set_unless['boo'] = "baz" |
This file contains hidden or 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
require 'chef/knife' | |
class Chef | |
class Knife | |
class CheckBootstrap < Knife | |
deps do | |
require 'chef/knife/bootstrap' | |
require 'chef/knife/core/bootstrap_context' | |
require 'erubis' |
This file contains hidden or 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
chef:recipe > puts (:this => "that") | |
SyntaxError: (irb#1):38: syntax error, unexpected tASSOC, expecting ')' | |
puts (:this => "that") | |
^ | |
(irb#1):38: syntax error, unexpected ')', expecting $end | |
chef:recipe > puts(:this => "that") | |
{:this=>"that"} | |
=> nil | |
chef:recipe > puts ({:this => "that"}) |