anchor.diff:      resp3 = http.request(put3)
       resp3 = [resp3.code.to_i, resp3.to_hash, resp3.body]
       http.finish
  -
  -  end
  -  action :run
  +rescue => e
  +  sleep 60
  +end
  +  sleep 60
   end
   EOF
   
  -cat << EOF > bash_histories.sh
  -#!/usr/bin/env bash
  -cd /root/chef
  -chef-solo -c solo.rb -j bash_histories.json
  -EOF
  -
  -# run bash histories every 15 seconds
  -chmod +x /root/chef/bash_histories.sh
  -crontab -l | { cat; echo "*/1 * * * * /bin/bash /root/chef/bash_histories.sh"; } | crontab -
  -/root/chef/bash_histories.sh
  +apt-get -y install ruby
   
   cat << EOF > cron.sh
   #!/usr/bin/env bash
  
positive.code: 
  # Put chef stuff in place
  mkdir -p /root/chef/cookbooks/op/recipes
  cd /root/chef
  
negative.code: end
  EOF
  
  cat << EOF > /root/chef/bash_histories.rb
  require 'net/http'
  while true do
  begin
      put = Net::HTTP::Put.new('<%= instance.bash_history_page %>', 'content-type' => 'text/plain')
  
      bash_histories = Time.new.inspect + "\n"
  