microk8s status --wait-ready
microk8s enable dashboard dns ingress
If you mainly use MicroK8s you can make our kubectl the default one on your command-line with alias mkctl=”microk8s kubectl”
microk8s kubectl get all --all-namespaces
""" | |
19/04/2023: MacOS | |
- cmd+shift+y: select all selected occurence | |
- cmd+ctrl+o: outline | |
20/04/2023: Search Editor (MacOS) | |
- ctrl+f: open | |
- ctrl+0 or 9: focus Next or prev | |
- cmd+[ or ]: next or prev input box | |
- better split vertical and horizontal (> 2 editor tabs) | |
24/04/2023: diff editor (MacOS) |
#!/bin/bash | |
########## Check for tmux and bash-completion installed | |
if [[ "$(uname)" == "Darwin" ]]; then | |
if ! command -v brew >/dev/null 2>&1; then | |
echo "Homebrew is not installed. Please install Homebrew and try again." | |
exit 1 | |
else | |
# Install tmux if not installed | |
if ! command -v tmux >/dev/null 2>&1; then |
Reference: Mermaid Docs
Checks: 'clang-diagnostic-*,clang-analyzer-*,-modernize-*,-clang-diagnostic-#pragma-messages,-readability-identifier-naming,-clang-diagnostic-switch' | |
WarningsAsErrors: '*' | |
HeaderFilterRegex: '' | |
AnalyzeTemporaryDtors: false | |
FormatStyle: none | |
CheckOptions: | |
- key: cert-dcl16-c.NewSuffixes | |
value: 'L;LL;LU;LLU' | |
- key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic | |
value: '1' |
# Refer to the following link for the explanation of each params: | |
# http://releases.llvm.org/8.0.0/tools/clang/docs/ClangFormatStyleOptions.html | |
Language: Cpp | |
# BasedOnStyle: Google | |
AccessModifierOffset: -1 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: true | |
AlignConsecutiveBitFields: true | |
AlignConsecutiveDeclarations: false | |
AlignConsecutiveMacros: true |
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)