apiVersion: v1
kind: Pod
metadata:
name: ubuntu
spec:
containers:
- name: ubuntu
image: ubuntu:latest
# Just spin & wait forever
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
Discover k8s resources | |
``` | |
kubectl api-resources | |
``` | |
Fetch resource schemas | |
``` | |
kubectl explain replicaset --recursive | |
``` |
Dump http parsed messages
tcpdump -A -vv 'port 8086'
FOO=${VARIABLE:-default} # If variable not set or null, use default.
FOO=${VARIABLE:=default} # If variable not set or null, set it to default.
sed 's/,/,\n/g' bigdata2.txt > bigdata2_formatted.txt
cat bigdata2_formatted.txt | grep label | awk -F ":" '{print $2}' | sort | uniq -c
Print JVM defaults
java -XX:+PrintFlagsFinal
Print System Properties
jcmd process_id VM.system_properties
Print JVM tuning flags
Useful Default Configurations
# git push by default pushes all matching branches upstream, options simple will just push the current branch
git config --global push.default simple
# git pull by default do a fetch and merge, introduces a merge commit, instead use a 'git pull --rebase' as default
git config --global pull.rebase true
# Configure ReReRe (Reuse Recorded Resolution)
git config --global rerere.enabled true
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
/** | |
Instructions: | |
1) Open flink console | |
2) Open javascript console in the browser | |
3) Paste this script | |
4) When required call flinkSummary() | |
**/ | |
// Import axios javascript | |
if (!document.getElementById("axios_script_id")) { |
Bash – Command | Function | Description – Bash | Tmux – Command | Function | Description – TMux | ||
|
|
|
|
|
|
||
C-Q | Clear Line | Clears everything on current line | C-b | Prefix | |||
C-L | Clear Screen | Clear the Screen | Prefix C-h | Show Help | |||
C-U | Cut Backwards | Cut everything backwards to beginning of line | Prefix pipe/- | Split Pane Vertically/Horizontally | |||
C-K | Cut Forwards | Cut everything forwards to the end of the line | Prefix n/p | Next/Prev Window | Prefix Arrow – Pane | ||
C-W | Cut Word Back | Cut one word backwards | Prefix C-s | Toggle Synchronization | |||
C-Y | Paste | Paste whatever was cut by the lst cut command | Prefix d | Detach | |||
C-H | Same as backspace | Prefix C-c | Copy buffer to OSX copy buffer | ||||
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
# Set the base index for windows to 1 instead of 0 | |
set -g base-index 1 | |
# Set the base index for panesl to 1 instead of 0 | |
setw -g pane-base-index 1 | |
# Reload tmx configuration | |
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf!" | |
# Ensure we can send Ctrl+b to other apps |
NewerOlder