Skip to content

Instantly share code, notes, and snippets.

View Piotr1215's full-sized avatar
🐺

Piotr Zaniewski Piotr1215

🐺
View GitHub Profile
@Piotr1215
Piotr1215 / tacos-comparison.md
Last active June 18, 2025 07:37
Below table provides a high level overview of various IaC capabilities and their support by a given provider.
Capability/Tool terraform Cloud terraform Enterprise Scalr Env0 Spacelift
Compliance ISO 27001, SOC 2 ISO 27001, SOC 2 SOC 2 Type I SOC 2 ISO 27001, SOC 2 Type II
GitLab Integration
Hosting SaaS SaaS, On-Prem SaaS, On-Prem SaaS SaaS
Policy as Code Sentinel, OPA
@Piotr1215
Piotr1215 / k8s-bookmarks-CKA-CKAD.html
Last active March 16, 2025 22:45
K8s bookmarks for CKA, CKAD and CKS exams
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1626629115" LAST_MODIFIED="1626629462" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3>
<DL><p>
@Piotr1215
Piotr1215 / .gitignore
Last active March 6, 2025 02:36
Vim Commands
*swp
@Piotr1215
Piotr1215 / tmux-cheatsheet.md
Created June 21, 2021 18:09 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Piotr1215
Piotr1215 / setup-k3s.md
Last active October 18, 2024 16:59
K3s setup
@Piotr1215
Piotr1215 / nvim-autocommands.md
Last active July 29, 2024 19:02
Neovim Autocommands
Command Description
:autocmd Lists all currently defined auto commands in Neovim.
:autocmd {event} Shows auto commands for a specific event (e.g., BufWritePost).
:verbose :autocmd {event} Provides detailed information about auto commands for a specific event
:augroup {group} | autocmd | augroup END Displays all auto commands within a specific group.
:autocmd * {pattern} Lists all auto commands that match a specific pattern (e.g., *.lua).
Telescope autocommands Lists all auto commands and fuzzy find.
@Piotr1215
Piotr1215 / nvim-replace.md
Last active July 24, 2024 09:52
neovim search&replace cheatsheet
Command Description
:%s/old/new/g Replace all occurrences of 'old' with 'new' in the entire file
:s/old/new/g Replace all occurrences of 'old' with 'new' in the current line
:s/\Cold/new/g Case-sensitive replace of 'old' with 'new' in the current line
:s/\v(\d+)-(\d+)/\2-\1/g Swap two groups of digits separated by a hyphen in the current line
:g/^$/d Delete all empty lines in the file
:g/pattern/norm gU$ Convert matching lines to uppercase
`:argdo %s/old/new/gc update`
@Piotr1215
Piotr1215 / __open-file.sh
Created April 20, 2024 16:57
Open multiple files in nvim based on fzf search
#!/usr/bin/env bash
# The set -e option instructs bash to immediately exit if any command has a non-zero exit status
# The set -u referencing a previously undefined variable - with the exceptions of $* and $@ - is an error
# The set -o pipefaile if any command in a pipeline fails, that return code will be used as the return code of the whole pipeline
# https://bit.ly/37nFgin
set -o pipefail
help_function() {
echo "Usage: __open_file.sh [query] [-h|--help]"

Kubernetes related networking commands

Coming from .NET dev/architect background means that there is a lot to learn in terms of networking and Linux management. Here are CKA curriculum requirements for networking:

RedHat ip command cheatsheet

CKA exam related commands:

ip commands

kubectl commands and tips&tricks for CKA, CKAD and CKS exams

Quickly retrieve imperative commands to create k8s resources.

Command: k run -h | grep '# ' -A2

When is it useful: copy/paste command to notepad, edit values and execute to create desired resource

Result: list of different ways to create k8s resources imperatively using kubectl