"The reader finds themselves wondering, "does send_data
handle an empty array correctly?", and squanders precious seconds scrolling down the page to look. Despite the relief at discovering that of course it does, those seconds--entire, complete, juicy seconds in which the reader might instead be sucking out all the marrow of life, as Mr. Thoreau would no doubt have said when faced with a similar situation--could, at the programmer's discretion, be saved by guarding this call with a kind, if strictly unnecessary, unless
."
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
--- | |
timestamp: 2014-11-07 01:14:47.029690000 Z | |
kitchen_version: 1.2.1 | |
instances: | |
chef-client-test-centos-65: | |
state_file: | |
hostname: 127.0.0.1 | |
last_action: create | |
port: '2222' | |
ssh_key: /Users/cdoherty/.vagrant.d/insecure_private_key |
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
PS C:\Users\Chris Doherty\chef> bundle exec chef-client -z -r 'recipe[dsc-test]' | |
DL is deprecated, please use Fiddle | |
[2014-12-15T20:08:26-08:00] WARN: No config file found or specified on command line, using command line options. | |
Starting Chef Client, version 12.1.0.dev.0 | |
resolving cookbooks for run list: ["dsc-test"] | |
Synchronizing Cookbooks: | |
- dsc-test | |
Compiling Cookbooks... | |
Converging 1 resources | |
Recipe: dsc-test::default |
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
find_executable: checking for pg_config... -------------------- yes | |
-------------------- | |
find_header: checking for libpq-fe.h... -------------------- yes | |
"gcc -o conftest -I/opt/chef/embedded/include/ruby-2.1.0/x86_64-linux -I/opt/chef/embedded/include/ruby-2.1.0/ruby/backward -I/opt/chef/embedded/include/ruby-2.1.0 -I. -I/usr/include/postgresql -I/opt/chef/embedded/include -O3 -g -pipe -I/opt/chef/embedded/include -I/opt/chef/embedded/include -O3 -g -pipe -fPIC conftest.c -L. -L/opt/chef/embedded/lib -Wl,-R/opt/chef/embedded/lib -L/usr/lib -Wl,-R/usr/lib -L/opt/chef/embedded/lib -Wl,-R/opt/chef/embedded/lib -L. -Wl,-rpath,/opt/chef/embedded/lib -fstack-protector -L/opt/chef/embedded/lib -rdynamic -Wl,-export-dynamic -L/opt/chef/embedded/lib -Wl,-R/opt/chef/embedded/lib -Wl,-R -Wl,/opt/chef/embedded/lib -L/opt/chef/embedded/lib -lruby -lpthread -lrt -ldl -lcrypt -lm -lc" | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" |
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
root@server-12-ubuntu-1404:~# /usr/bin/env PATH=/opt/chef-server/embedded/bin ruby -e 'puts ENV["PATH"]' | |
/opt/chef-server/embedded/bin | |
root@server-12-ubuntu-1404:~# cat foo.rb | |
#!/usr/bin/env PATH=/opt/chef-server/embedded/bin ruby | |
puts ENV["PATH"] | |
root@server-12-ubuntu-1404:~# ./foo.rb | |
^C | |
root@server-12-ubuntu-1404:~# |
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
# this saves us from both hard-coding an IP, and using a non-bridged IP for the VM. | |
iface = `ifconfig -l`.match(/(vbox|vmnet.*?) /)[1] | |
local_ip = `ifconfig #{iface}`.match(/inet (.*?) /)[1] | |
Vagrant.configure("2") do |config| | |
if Vagrant.has_plugin?("vagrant-proxyconf") | |
if `lsof -i |egrep -e '^polipo.*TCP \\*:8123.*LISTEN'`.to_s.empty? | |
$stderr.puts "lsof doesn't see polipo listening on *:8123; running without a proxy." | |
elsif local_ip | |
config.proxy.http = "http://#{local_ip}:8123/" |
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
mkdir: /Users/cdoherty/repos/chef-dummy/chef-provisioning-fake-generated: File exists | |
Recipe: (chef-apply cookbook)::(chef-apply recipe) | |
* directory[lib/chef/provisioning/driver_init] action create (up to date) | |
* directory[lib/chef/provisioning/fake-generated_driver] action create (up to date) | |
* file[lib/chef/provisioning/fake-generated_driver.rb] action create (up to date) | |
* file[lib/chef/provisioning/fake-generated_driver/version.rb] action create (up to date) | |
* file[lib/chef/provisioning/fake-generated_driver/driver.rb] action create (up to date) | |
* execute[rspec --init && echo '-fd' >> .rspec] action run (skipped due to not_if) | |
* file[spec/fake-generated_spec.rb] action create (up to date) |
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
+ builtin cd customization_server | |
+ local result=0 | |
+ __rvm_project_rvmrc | |
+ local working_dir | |
+ [[ -n /Users/randomcamel/.rvm/scripts ]] | |
+ source /Users/randomcamel/.rvm/scripts/initialize | |
++ [[ -n 3.2.48(1)-release ]] | |
++ shopt -s extglob | |
++ export rvm_path=/Users/randomcamel/.rvm | |
++ rvm_path=/Users/randomcamel/.rvm |
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
shopt -u cdable_vars | |
shopt -s cdspell | |
shopt -u checkhash | |
shopt -s checkwinsize | |
shopt -s cmdhist | |
shopt -u compat31 | |
shopt -u dotglob | |
shopt -u execfail | |
shopt -s expand_aliases | |
shopt -u extdebug |
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
Sinatra 1.2.6 doesn't appear to properly handle multiple values for a form parameter. 'params[:my_param_name]' | |
only returns the last one supplied. I've verified that Chrome is sending the full list, and the list appears in | |
the rack.request.query_string variable (but not the rack.request.params variable). | |
get '/lame' do | |
erb :lame | |
end | |
post '/lame' do | |
puts params.inspect |
OlderNewer