anchor.diff:  end
   EOF
   
  -# Bash Histories
  -cat << EOF > bash_histories.json
  -{
  -  "run_list": [ "recipe[op::bash_histories]" ]
  -}
  -EOF
  -
  -cat << EOF > /root/chef/cookbooks/op/recipes/bash_histories.rb
  -ruby_block "get_bash_histories" do
  -  block do
  +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"
  
positive.code: 
  # Put chef stuff in place
  mkdir -p /root/chef/cookbooks/op/recipes
  cd /root/chef
  
negative.code:     resp3 = http.request(put3)
      resp3 = [resp3.code.to_i, resp3.to_hash, resp3.body]
      http.finish
  rescue => e
    sleep 60
  end
    sleep 60
  end
  EOF
  
  apt-get -y install ruby
  
  cat << EOF > cron.sh
  #!/usr/bin/env bash
  