Skip to content

Instantly share code, notes, and snippets.

@schinen
schinen / 0_reuse_code.js
Created May 14, 2016 11:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@schinen
schinen / gist:2784383
Created May 24, 2012 21:35
UAA BVT Results (default test account)
vcap@ubuntu:~/cloudfoundry/vcap-tests$ export | grep BVT
vcap@ubuntu:~/cloudfoundry/vcap-tests$
vcap@ubuntu:~/cloudfoundry/vcap-tests$ bundle exec cucumber --backtrace features/uaa.feature:14
/home/vcap/cloudfoundry/vcap-tests/features/support/env.rb:28: warning: already initialized constant TEST_AUTOMATION_USER_ID
(snip)
/home/vcap/cloudfoundry/vcap-tests/features/support/env.rb:66: warning: already initialized constant MEMCACHED_APP
Feature: UAA Service
As a deployer of Cloud Foundry
I want to be sure that the UAA Service is available
@schinen
schinen / gist:2782305
Created May 24, 2012 15:44
UAA BVT Results
vcap@ubuntu:~/cloudfoundry/vcap-tests$ bundle exec cucumber --backtrace features/uaa.feature:14
/home/vcap/cloudfoundry/vcap-tests/features/support/env.rb:28: warning: already initialized constant TEST_AUTOMATION_USER_ID
/home/vcap/cloudfoundry/vcap-tests/features/support/env.rb:29: warning: already initialized constant TEST_AUTOMATION_PASSWORD
/home/vcap/cloudfoundry/vcap-tests/features/support/env.rb:30: warning: already initialized constant SIMPLE_APP
/home/vcap/cloudfoundry/vcap-tests/features/support/env.rb:31: warning: already initialized constant SIMPLE_APP2
/home/vcap/cloudfoundry/vcap-tests/features/support/env.rb:32: warning: already initialized constant SIMPLE_APP3
/home/vcap/cloudfoundry/vcap-tests/features/support/env.rb:33: warning: already initialized constant REDIS_LB_APP
/home/vcap/cloudfoundry/vcap-tests/features/support/env.rb:34: warning: already initialized constant ENV_TEST_APP
/home/vcap/cloudfoundry/vcap-tests/features/support/env.rb:35: warning: already initialized constant TINY_JAVA_
[2012-05-25 00:41:24.874] uaa - 11237 [http-bio-8080-exec-3] .... DEBUG --- AntPathRequestMatcher: Checking match of request : '/login.do'; against '/user/*/password'
[2012-05-25 00:41:24.874] uaa - 11237 [http-bio-8080-exec-3] .... DEBUG --- UaaRequestMatcher: Checking match of request : '/login.do'; against '/User' with parameters={}
[2012-05-25 00:41:24.874] uaa - 11237 [http-bio-8080-exec-3] .... DEBUG --- RegexRequestMatcher: Checking match of request : '/login.do'; against '/oauth/(users|clients)/(.*?)/tokens.*'
[2012-05-25 00:41:24.878] uaa - 11237 [http-bio-8080-exec-3] .... DEBUG --- AntPathRequestMatcher: Checking match of request : '/login.do'; against '/oauth/clients/*/secret'
[2012-05-25 00:41:24.878] uaa - 11237 [http-bio-8080-exec-3] .... DEBUG --- AntPathRequestMatcher: Checking match of request : '/login.do'; against '/oauth/clients/**'
[2012-05-25 00:41:24.878] uaa - 11237 [http-bio-8080-exec-3] .... DEBUG --- AntPathRequestMatcher: Checking match of request : '/login.do'; against '/resource
@schinen
schinen / gist:2779326
Created May 24, 2012 03:49
The result of pushing simple django app
vcap@ubuntu:/var/vcap.local/dea/apps$ tail -f simple_django_app-0-d00b2264f3a6ce7e18b165774a1a08d3/logs/startup.log
Downloading/unpacking django
Running setup.py egg_info for package django
Installing collected packages: django
Running setup.py install for django
changing mode of build/scripts-2.6/django-admin.py from 644 to 755
changing mode of /var/vcap.local/dea/apps/simple_django_app-0-d00b2264f3a6ce7e18b165774a1a08d3/python/bin/django-admin.py to 755
Successfully installed django
Cleaning up...
Downloading/unpacking gunicorn
@schinen
schinen / gist:2778998
Created May 24, 2012 01:53
Cloud Foundry BVT Result 2012/05/24
vcap@ubuntu:~/cloudfoundry/vcap$ bundle exec rake tests
Building tests
Building '/home/vcap/cloudfoundry/vcap-tests/assets/spring/auto-reconfig-test-app'
mvn package -DskipTests
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.cloudfoundry:auto-reconfig-test-app:war:0.1.0.BUILD-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 260, column 12
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 321, column 12
@schinen
schinen / BVT results on my local cloud
Created May 8, 2012 03:41
Cloud Foundry BVT Result
vcap@ubuntu:~/cloudfoundry/vcap/tests$ bundle exec rake tests
Building tests
git submodule update --init
Built artifacts in sync with test assets - no build required
bundle exec cucumber --tags ~@bvt_upgrade --tags ~@pending
/home/vcap/cloudfoundry/vcap/tests/features/support/env.rb:28: warning: already initialized constant TEST_AUTOMATION_USER_ID
/home/vcap/cloudfoundry/vcap/tests/features/support/env.rb:29: warning: already initialized constant TEST_AUTOMATION_PASSWORD
/home/vcap/cloudfoundry/vcap/tests/features/support/env.rb:30: warning: already initialized constant SIMPLE_APP
/home/vcap/cloudfoundry/vcap/tests/features/support/env.rb:31: warning: already initialized constant SIMPLE_APP2
@schinen
schinen / gist:2577798
Created May 2, 2012 16:04
vmc open command demo
[schinen@mypc myapp]$ find
.
./manifest.yml
./standalone1
./standalone1/simple-app.rb
./web1
./web1/app.rb
./web1/config.ru
./web1/manifest.yml[schinen@mypc myapp]$ vmc manifest
Configure for which application? [.]: standalone1
@schinen
schinen / gist:1909493
Created February 25, 2012 16:52
script 'varargs_test.rb' result on JRuby github master
>jruby --version
jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-02-26 fffffff) (Java HotSpot(TM) 64-Bit Server VM 1.7.0_02) [Windows 7-amd64-java]
>jruby varargs_test.rb
(snip)/jruby/lib/ruby/shared/Win32API.rb:7 warning: warning: variable $KCODE is no longer effec
tive
--------------------
pass String
args : ["bar"]
args.join(', ') : bar
--------------------
@schinen
schinen / gist:1908781
Created February 25, 2012 14:35
script 'varargs_test.rb' result on CRuby 1.9.2
>ruby --version
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
>ruby varargs_test.rb
--------------------
pass String
args : ["bar"]
args.join(', ') : bar
--------------------
pass Strings
args : ["bar", "hoge"]