Function | Shortcut |
---|---|
Fullscreen | ⌘ + Enter |
Previous Tab | ⌘ + Left Arrow |
Next Tab | ⌘ + Right Arrow |
Go to Tab | ⌘ + Number |
Go to Window | ⌘ + Option + Number |
Go to Split Pane by Direction | ⌘ + Option + Arrow |
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
kubectl Cheat Sheet | |
See also: Kubectl Overview and JsonPath Guide. | |
Kubectl Autocomplete | |
$ source <(kubectl completion bash) # setup autocomplete in bash, bash-completion package should be installed first. | |
$ source <(kubectl completion zsh) # setup autocomplete in zsh | |
Kubectl Context and Configuration | |
Set which Kubernetes cluster kubectl communicates with and modifies configuration information. See Authenticating Across Clusters with kubeconfig documentation for detailed config file information. | |
$ kubectl config view # Show Merged kubeconfig settings. |
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 -e | |
# This script will create 10 different organizations | |
# with 2 spaces within each org and 5 users in each org. | |
# Written by Derek So on 23 Mar 2018 | |
cf login -u admin | |
TEAMSIZE=10 | |
USERPERTEAM=5 |
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
========================================================================================================== | |
# 8. VBoxManage | |
https://www.virtualbox.org/manual/ | |
========================================================================================================== | |
# Networking Modes | |
https://www.virtualbox.org/manual/ch06.html#network_bridged | |
========================================================================================================== | |
Windows Host | |
>vboxmanage --version |
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 projectProperties = [ | |
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '1000')), | |
[$class: 'RebuildSettings', autoRebuild: false, rebuildDisabled: false], | |
] | |
properties(projectProperties) | |
node { | |
stage('Checkout') { | |
checkout scm |
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
# Example of using an InitContainer in place of a GitRepo volume. | |
# Unilke GitRepo volumes, this approach runs the git command in a container, | |
# with the associated hardening. | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: git-repo-demo | |
annotations: | |
seccomp.security.alpha.kubernetes.io/pod: 'docker/default' | |
spec: |
approvers | title | ||||
---|---|---|---|---|---|
|
kubectl Cheat Sheet |
See also: Kubectl Overview and JsonPath Guide.
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 python | |
# written for tutorial: https://medium.com/@eyebool/creating-a-sample-database-for-influxdb-102a89464132 | |
FILEPATH = 'citibike_station_data.sample.log' | |
DATABASE = 'citibike_station_database' | |
HOST = 'localhost' | |
PORT = 8086 | |
USER = 'root' | |
PASSWORD = 'root' |
Packer
-
Packer is used to build image from a base image, perform provisions and store (commit) the final image.
-
We use provisioners and Packer templates to do the actual work to create the final image.
-
We use Ansible for provisioning.