Skip to content

Instantly share code, notes, and snippets.

---
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
@albertomurillo
albertomurillo / vscode.json
Last active August 21, 2018 17:30
vscode.conf
{
"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,
@albertomurillo
albertomurillo / zshrc.sh
Last active November 12, 2019 01:19
zshrc
# 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() {
#!/usr/bin/python
import random
from ansible.module_utils.basic import AnsibleModule
def roulette(chambers):
return not random.randint(1, chambers) % chambers