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 bash | |
set -v | |
set -e | |
mkdir -p ~/workspace ~/dev ~/Downloads | |
sudo apt-get update | |
sudo apt-get install -y software-properties-common wget curl jq vim apt-transport-https |
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/libexec/java_home -V |
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
git push origin local-name:remote-name |
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
# source: | |
# https://discussions.apple.com/message/32354266#message32354266 | |
sudo mdutil -Ea | |
sudo mdutil -ai off | |
sudo mdutil -ai on |
Below are some Spring annotations used in securing a microservice architecture with OAuth2. Such architecture would likely have:
- a Gateway (for example Zuul serving as a single point of entry and proxy to the disparate microservices)
- an Auth Server (using Spring Security OAuth)
- a collection of Microservices (OAuth resources)
- @EnableAuthorizationServer - enables app to act as an Auth server in the OAuth flow (auth-server)
- @EnableOAuth2Sso - redirects to user to Auth server for login (gateway)
- __[@EnableZuulProxy](https://cloud.spri
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 set-env <app_name> Logging__LogLevel__Default Debug |
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
sudo killall VDCAssistant |