Function | Shortcut |
---|---|
New Tab | ⌘ + T |
Close Tab or Window | ⌘ + W (same as many mac apps) |
Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
Cycle iTerm Windows | ⌘ + backtick (true of all mac apps and works with desktops/mission control) |
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
trigger: none | |
pr: none | |
#pool: | |
stages: | |
- stage: infrastructure | |
displayName: infrastructure stage | |
#variables: | |
#condition: | |
jobs: |
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/v1 | |
kind: Deployment | |
metadata: | |
name: centos-dp | |
labels: | |
app: centos | |
spec: | |
replicas: 1 | |
selector: |
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
trigger: | |
branches: | |
include: | |
- master | |
- develop | |
- refs/tags/* | |
pool: | |
vmImage: 'ubuntu-18.04' |
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: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: ingress-path | |
annotations: | |
kubernetes.io/ingress.class: internal | |
nginx.ingress.kubernetes.io/rewrite-target: /$2 | |
nginx.ingress.kubernetes.io/use-regex: "true" | |
spec: | |
rules: |
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/env bash | |
''' | |
USAGE: | |
./create_self_signed_certificate.sh <expiry_days> <namespace> <secret_name> | |
EXAMPLE: | |
./create_self_signed_certificate.sh 3650 ingress ingress-tls | |
SOURCE: |
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
# ENABLE NODE | |
kc uncordon $NODE | |
kubectl taint nodes $NODE dedicated- | |
# NODE ID | |
export NODE= | |
# DISABLE NODE | |
kc drain $NODE --ignore-daemonsets | |
kubectl taint nodes $NODE dedicated=special-user:NoExecute |
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
version: '3' | |
volumes: | |
db-data: | |
services: | |
app: | |
image: prestashop/prestashop:1.7 | |
environment: | |
- DB_SERVER=db |
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
def rotateL(input,d): | |
Lfirst = input[0 : d] | |
Lsecond = input[d :] | |
return (Lsecond + Lfirst) | |
def rotateR(input,d): | |
Rfirst = input[0 : len(input)-d] | |
Rsecond = input[len(input)-d : ] | |
return (Rsecond + Rfirst) |
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/env bash | |
DOCKERCOMPOSE_VERSION=1.25.0 | |
# Docker Engine Community Edition | |
yum remove \ | |
docker \ | |
docker-client \ | |
docker-client-latest \ |