./gradlew build -x test --continuous ./gradlew bootRun
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
--- | |
resources: | |
- name: source-code | |
type: git | |
check_every: 10s | |
source: | |
uri: ((gitRepository)) | |
branch: master | |
- name: deploy-cf | |
type: cf |
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
Starting a Gradle Daemon (subsequent builds will be faster) | |
:compileJava | |
:processResources UP-TO-DATE | |
:classes | |
:bootRun | |
2018-08-05 17:09:43.829 DEBUG 67535 --- [ main] o.s.c.e.PropertySourcesPropertyResolver : Could not find key 'logging.register-shutdown-hook' in any property source | |
2018-08-05 17:09:43.833 DEBUG 67535 --- [ main] .c.l.ClasspathLoggingApplicationListener : Application started with classpath: [file:/Users/r/Sites/gs-reactive-rest-service/complete/build/classes/java/main/, file:/Users/r/Sites/gs-reactive-rest-service/complete/build/resources/main/, file:/Users/r/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-webflux/2.0.3.RELEASE/eed9177298124780a7dec0ba7a68e42268122a5f/spring-boot-starter-webflux-2.0.3.RELEASE.jar, file:/Users/r/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-json/2.0.3.RELEASE/2e389a8727588c549c28bb277f0f573f65554850/spring-boot-starter-json-2.0.3.RELEASE.jar, file:/Users/r/.gradle/caches/mo |
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
# install java 8, uninstall java 7 | |
sudo yum install java-1.8.0 | |
sudo yum remove java-1.7.0-openjdk | |
# make java 8 default | |
sudo /usr/sbin/alternatives --config java | |
sudo /usr/sbin/alternatives --config javac | |
# install maven | |
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo |
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
/** | |
* Fancy ID generator that creates 20-character string identifiers with the following properties: | |
* | |
* 1. They're based on timestamp so that they sort *after* any existing ids. | |
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
* latter ones will sort after the former ones. We do this by using the previous random bits | |
* but "incrementing" them by 1 (only in the case of a timestamp collision). | |
*/ |
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
########## | |
# WSL | |
########## | |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# if running in terminal | |
if test -t 1; then |
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
/** | |
* Fancy ID generator that creates 20-character string identifiers with the following properties: | |
* | |
* 1. They're based on timestamp so that they sort *after* any existing ids. | |
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
* latter ones will sort after the former ones. We do this by using the previous random bits | |
* but "incrementing" them by 1 (only in the case of a timestamp collision). | |
*/ |