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
$ uaac -v | |
UAA client 2.0.0 | |
$ uaac | |
UAA Command Line Interface | |
Miscellaneous | |
version Display version | |
help [topic|command...] Display summary or details of command or topic |
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
package slow; | |
import java.io.IOException; | |
import javax.servlet.ServletConfig; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; |
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
- instances: 1 | |
name: runner_z1 | |
networks: | |
- name: cf1 | |
static_ips: | |
- 10.244.0.26 | |
properties: | |
loggregator_endpoint: | |
host: 10.244.0.10 | |
networks: |
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
$ ls | |
jamesbayer:foo jamesbayer$ vi .buildpacks | |
$ cat .buildpacks | |
https://github.com/jbayer/null-buildpack.git | |
https://github.com/cloudfoundry/heroku-buildpack-ruby.git | |
jamesbayer:foo jamesbayer$ cf push --buildpack https://github.com/ddollar/heroku-buildpack-multi.git | |
Name> git-test | |
Instances> 1 |
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
$ cf app sticky-session | |
Showing health and status for app sticky-session... | |
OK | |
health: running | |
usage: 256M x 4 instances | |
urls: sticky-session-6115e.cfapps.io, sticky-session.cfapps.io | |
status since cpu memory disk | |
#0 running 2013-10-05 11:08:31 AM 0.0% 84.3M of 256M 93.6M of 1G |
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
$ brew install go --cross-compile-common | |
==> Downloading https://go.googlecode.com/files/go1.1.2.src.tar.gz | |
######################################################################## 100.0% | |
==> ./make.bash --no-clean | |
==> ./make.bash --no-clean | |
==> ./make.bash --no-clean | |
/private/tmp/go-BvwY/go/src/cmd/5l/../ld/lib.c:661:9: error: no case matching constant switch condition '53' [-Werror] | |
switch(thechar){ | |
^~~~~~~ | |
1 error generated. |
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
$ cf -v | |
cf 5.3.0 | |
$ cf create-service user-provided -t | |
>>> OMMITTED | |
Name?> somedb | |
What credential parameters should applications use to connect to this service instance? | |
(e.g. hostname, port, password)> uri | |
uri> mysql://dbuser:dbpasswd@mysql.vcap.me:3306/dbname |
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
jamesbayer:hello-flask jamesbayer$ cat hello.py | |
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/') | |
def hello_world(): | |
return 'Hello World!' | |
if __name__ == '__main__': | |
app.run() |
This file has been truncated, but you can view the full file.
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
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal 0xb code=0x1 addr=0x0 pc=0x571676] | |
goroutine 7 [running]: | |
github.com/cloudfoundry/yagnats.(*Client).Ping(0x0, 0x4bf7e8) | |
/var/vcap/packages/gorouter/src/github.com/cloudfoundry/yagnats/client.go:41 +0x36 | |
github.com/cloudfoundry/go_cfmessagebus.(*NatsAdapter).Ping(0xc2000e1480, 0x5) | |
/var/vcap/packages/gorouter/src/github.com/cloudfoundry/go_cfmessagebus/nats.go:144 +0x28 | |
github.com/cloudfoundry/gorouter.(*Registry).isStateStale(0xc2000e1500, 0x27) | |
/var/vcap/packages/gorouter/src/github.com/cloudfoundry/gorouter/registry.go:212 +0x2e |
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
#!/usr/bin/env ruby | |
while true | |
system "bundle exec rake cron" | |
sleep ARGV[0] || 600 | |
end |