Find the cloud controller db connection string
bosh ssh api_z1
grep postgres `find /var/vcap/data/jobs/cloud_controller_ng/ cloud_controller_ng.yml`
exit # leave the container
| (ns mapper.util.diff | |
| (:require [mapper.util :refer :all] | |
| [mapper.core :refer :all])) | |
| (defn diff [[width height] map-a map-b] | |
| "A utility for testing map equality. Compares map-a and map-b elementwise and returns true if they're the same. | |
| E.g.: diff [2 2] '(:a :b :c :d) '(:a :b :c :z) => '(true true true false)" | |
| (let [map-a-coll (map-as-list [width height] map-a) | |
| map-b-coll (map-as-list [width height] map-b)] | |
| (map = map-a-coll map-b-coll))) |
| # /etc/rsyslog.d/10-cf-internet.conf | |
| # Log kernel generated UFW log messages to file | |
| :msg,contains,"cf-to-internet-traffic:" /var/log/cf-internet.log |
| |2.1.1| RashBookPro in ~/workspace/immute-template | |
| ± mk+ra |master ✗| → lein install | |
| Created /Users/rasheed/workspace/immute-template/target/lein-template-0.1.0-SNAPSHOT.jar | |
| Wrote /Users/rasheed/workspace/immute-template/pom.xml | |
| |2.1.1| RashBookPro in ~/workspace/immute-template | |
| ± mk+ra |master ✗| → cd .. | |
| |2.1.1| RashBookPro in ~/workspace |
| Started preparing configuration > Binding configuration. Failed: Error filling in template `ctl.erb' for `etcd_leader_z1/0' (line 26: undefined method `collect' for "(( .properties.nats.machines ))":String) (00:00:01) | |
| Error 100: Error filling in template `ctl.erb' for `etcd_leader_z1/0' (line 26: undefined method `collect' for "(( .properties.nats.machines ))":String) |
| sudo iptables -A OUTPUT -o eth0 -m state --state ESTABLISHED -j ACCEPT | |
| sudo iptables -A OUTPUT -o eth0 -j DROP |
| require "tmpdir" | |
| require "zip" | |
| EXCLUDE_FROM_BUILDPACK = [ | |
| /\.git/, | |
| /repos/ | |
| ] | |
| def package | |
| Dir.mktmpdir do |temp_dir| |
| for run in {1..10}; do cf delete -f rails_latest_web_app && cf push rails_latest_web_app --no-start && cf bind-service rails_latest_web_app lilelephant && cf push rails_latest_web_app -c 'bundle exec rake db:migrate && bundle exec rails s -p $PORT' -b https://github.com/squeedee/heroku-buildpack-ruby.git; done |
| require 'spec_helper' | |
| require 'simple_bdd' | |
| RSpec.configure do |config| | |
| config.include SimpleBdd | |
| end | |
| ENV["RAILS_ENV"] ||= "test" | |
| Bundler.require(:development) |
| git config credential.helper 'cache --timeout 28800' |