This file contains hidden or 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
| import static org.junit.jupiter.api.Assertions.*; | |
| import org.json.JSONObject; | |
| import org.junit.jupiter.api.Test; | |
| class WillItConnectV2ControllerTest { | |
| private WillItConnectV2Controller controller; | |
| @Test | |
| void testWillItConnect() { |
This file contains hidden or 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
| curl -i http://uaa.local.pcfdev.io/oauth/token \ | |
| -d grant_type=password \ | |
| -d username=admin \ | |
| -d password=admin \ | |
| -d scope= \ | |
| -H "Authorization: Basic Y2Y6" \ | |
| -H "Content-Type: application/x-www-form-urlencoded" \ | |
| -H "Accept: application/json" -X POST | |
This file contains hidden or 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
| alias st='status', | |
| alias di='diff', | |
| alias co='checkout', | |
| alias ci='ci commit', | |
| alias br='branch', | |
| alias sta='stash', | |
| alias llog='log --date=local', | |
| alias flog='log --pretty=fuller --decorate', | |
| alias lg='log --graph #{pretty_format} --abbrev-commit --date=relative\', | |
| alias lol='log --graph --decorate --oneline', |
This file contains hidden or 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 nfstest; | |
| import com.sun.xfile.XFile; | |
| /** | |
| * Using YANFS | |
| * | |
| */ | |
| public class Main { |
This file contains hidden or 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
| #!/home/mqtester/.rvm/wrappers/ruby-1.9.2-p290@mqtester/ruby | |
| # encoding: utf-8 | |
| require "rubygems" | |
| require "amqp" | |
| @exchange_name = "amq.rabbitmq.trace" | |
| class Consumer | |
| def handle_message(metadata, payload) |
This file contains hidden or 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
| $scope.getCellText = function(key) { | |
| if ( key ) { | |
| return "Do stuff"; | |
| } | |
| }; | |
| $scope.theData = {}; | |
| $scope.theGrid = { | |
| data: 'theData', | |
| columnDefs: |
This file contains hidden or 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
| source :rubygems | |
| gem 'cfoundry' | |
| gem 'uuidtools' |
This file contains hidden or 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
| require 'yaml' | |
| y = YAML.load_file './cf-deployment.yml' | |
| puts 'name, instances, vm_type, disk, ram, vcpu' | |
| y['jobs'].each do |job| | |
| rp_name = job['resource_pool'] | |
| cloud_props = nil | |
| y['resource_pools'].each do |rp| | |
| if rp['name'] == rp_name |
This file contains hidden or 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
| Sep 24 13:42:15 10.0.16.39 vcap.warden: [job=dea-partition-e3dfdcc7ccb6e4168349 index=0] {"timestamp":1443127335.9021058,"message":"spawn (took 0.002655)","log_level":"debug","source":"Warden::Container::Linux","data":{"handle":"190ggs8pmt1","request":{"handle":"190ggs8pmt1","script":"umask 077\nexport VCAP_APPLICATION=\\{\\\"limits\\\":\\{\\\"mem\\\":1024,\\\"disk\\\":1024,\\\"fds\\\":16384\\},\\\"application_version\\\":\\\"6dc7d87c-5f97-48d4-abef-f46e00f7c577\\\",\\\"application_name\\\":\\\"hello-php\\\",\\\"application_uris\\\":\\[\\\"hello-php.apps.pcf.jkruckcloud.com\\\"\\],\\\"version\\\":\\\"6dc7d87c-5f97-48d4-abef-f46e00f7c577\\\",\\\"name\\\":\\\"hello-php\\\",\\\"space_name\\\":\\\"development\\\",\\\"space_id\\\":\\\"f72a8962-6aa3-406f-9559-c45383fe7a88\\\",\\\"uris\\\":\\[\\\"hello-php.apps.pcf.jkruckcloud.com\\\"\\],\\\"users\\\":null,\\\"application_id\\\":\\\"e1318894-c803-49bf-aba5-3a1ca3496259\\\",\\\"instance_id\\\":\\\"a05c84b5a39742129a5c9ebf7c5dcb33\\\",\\\"instance_index\\\":0,\\\"ho |
This file contains hidden or 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
| FROM postgres:9.3 | |
| MAINTAINER krujos | |
| ENV PGDATA /var/lib/postgresql/data #Why do I need this? | |
| RUN chown -R postgres "$PGDATA"; gosu postgres initdb; sed -ri "s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" "$PGDATA"/postgresql.conf ; { echo; echo 'host all all 0.0.0.0/0 trust'; } >> "$PGDATA"/pg_hba.conf | |
| RUN ( chown -R postgres "$PGDATA"; gosu postgres postgres & sleep 2 ; psql -U postgres -c "create user schedule_user;"; psql -U postgres -c "alter user schedule_user password 'schedule_password';"; psql -U postgres -c "create database schedule with owner schedule_user;"; ) | |
| ENTRYPOINT ["/docker-entrypoint.sh"] | |
| EXPOSE 5432 |
NewerOlder