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
--- | |
apiVersion: apps/v1beta2 # apps/v1 # for versions before 1.9.0 use apps/v1beta2 | |
kind: Deployment | |
metadata: | |
name: k8sdemo-backend | |
spec: | |
selector: | |
matchLabels: | |
app: k8sdemo-backend | |
replicas: 2 |
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
{ | |
"editor.formatOnSave": true, | |
"explorer.confirmDragAndDrop": false, | |
"files.insertFinalNewline": true, | |
"files.trimFinalNewlines": true, | |
"files.trimTrailingWhitespace": true, | |
"telemetry.enableCrashReporter": false, | |
"telemetry.enableTelemetry": false, | |
"python.linting.pylintEnabled": false, | |
"python.linting.pep8Enabled": 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
# Configure Golang | |
export GOHOME=~/go | |
export GOBIN=$GOHOME/bin | |
export PATH=$PATH:$GOBIN | |
# Configure JAVA | |
# export JAVA_HOME=$(/usr/libexec/java_home) | |
# update: Updates brew formulaes and casks | |
function update() { |
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
#!/usr/bin/python | |
import random | |
from ansible.module_utils.basic import AnsibleModule | |
def roulette(chambers): | |
return not random.randint(1, chambers) % chambers |