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
| // please don't ever do this. | |
| public class ManualDependencyInjectionDemo { | |
| @Getter @Setter | |
| public static class UserService { | |
| public User getUser(String username){ | |
| // ... | |
| } | |
| } |
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
| #!/bin/bash | |
| if [[ "$RELEASE" != "No" ]]; then | |
| if [[ "$RELEASE" == "Release" ]]; then | |
| BUILD_SUFFIX=".RELEASE" | |
| elif [[ "$RELEASE" == "Snapshot" ]]; then | |
| BUILD_SUFFIX="-SNAPSHOT" | |
| fi | |
| echo "Swapping version for X.X.${BUILD_NUMBER}${BUILD_SUFFIX}" | |
| sed -i -e "1,/<version>\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*<\/version>/s/<version>\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*<\/version>/<version>\1.\2.\3b${BUILD_NUMBER}${BUILD_SUFFIX}<\/version>/" pom.xml |
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
| $('.name small') | |
| .map( (i,e) => e.innerText.trim() ) | |
| .filter( (i,e) => e.indexOf("service:") == 0) | |
| .map( (i,e) => e.replace("service:", '') ) | |
| .each( (i,e) => { | |
| var url = "http://localhost:8500/v1/agent/service/deregister/" + e | |
| console.log('Trying', url) | |
| $.ajax({ | |
| type: "GET", | |
| url: url, |
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
| #!/bin/bash | |
| function die { | |
| curl -X POST -d "killed=true" http://requestb.in/qqvaouqq | |
| echo "Ending on signal $1" | |
| if [ -n "$EXIT_SCRIPT" ]; then | |
| echo "Executing exit script $EXIT_SCRIPT" | |
| /bin/bash $EXIT_SCRIPT | |
| else | |
| echo "No exit script found. Executing: pkill -f 'java'" |
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
| #!/bin/bash | |
| echo "Goodbye world" |
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
| wget http://pkg.jenkins-ci.org/debian-rc/binary/jenkins_2.0_all.deb | |
| dpkg -i jenkins_2.0_all | |
| apt-get install -f |
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
| 2016-03-09 10:46:39.108 [ INFO] [IID=Davids-MacBook-Pro-2.local::85122] [USER=] -- exampleExampleServer : No active profile set, falling back to default profiles: default | |
| 2016-03-09 10:46:39.841 [ INFO] [IID=Davids-MacBook-Pro-2.local::85122] [USER=] -- exampleExampleServer : Started ExampleServer in 1.165 seconds (JVM running for 1.795) | |
| . ____ _ __ _ _ | |
| /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ | |
| ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ | |
| \\/ ___)| |_)| | | | | || (_| | ) ) ) ) | |
| ' |____| .__|_| |_|_| |_\__, | / / / / | |
| =========|_|==============|___/=/_/_/_/ | |
| :: Spring Boot :: (v1.3.2.RELEASE) |
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
| { | |
| _embedded:{ | |
| products:[ | |
| { | |
| id:1, | |
| name:"Starter Kit", | |
| description:"Starter Kit", | |
| msrp:5000, | |
| taxable:true, | |
| commissionable:true, |
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
| { | |
| "manifest_version": 2, | |
| "name": "My App", | |
| "version": "0.1", | |
| "someProp": "foo_bar_baz" | |
| } |
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
| <pre style="font: 20px/10px monospace;"><span style="color: #ffffff;"></span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</span><span style="color: #ffffff;">#</sp |