Skip to content

Instantly share code, notes, and snippets.

View karakays's full-sized avatar
💩

Selçuk Karakayalı karakays

💩
View GitHub Profile
@karakays
karakays / Helm.md
Last active September 2, 2022 11:21

Helm introduction guide

helm

Kubernetes package manager

Chart

➜ Render manifest of chart

GNU Privacy Guard

GPG keychain

master key and subkeys

Key identities

key id vs key fingerprint why key is identified by last 8 digits of its finger print (and not first for instance?)

@karakays
karakays / .ideavimrc.md
Last active February 13, 2022 15:16
Development actions in editor

This is a summary of actions that I use during development.

I aim two things

  • navigate codebase with speed
  • be agnostic in terms of progamming language and IDE

Environment

I use IntelliJ based IDEs with vim-plugin installed.

Tools

Config

kafkacat

echo "bootstrap.servers=127.0.0.1:9092" > ~/.config/kafkacat.conf

Install protobuf compiler

brew install protobuf

protoc compiler is responsible to generate language-specific stubs based on the protobuf schema.

Stubs are necessary to encode and decode data. Therefore, encoding always requires language runtime environment and protobuf schema. Stubs implement the Protobuf API to read messages and write messages.

To use the Protobuf API you need the language-specific library. For Python, this is protobuf library.

Task

A task represents atomic piece of work.

Take away

build.gradle.kts is known as build script.

Lifecycle tasks

@karakays
karakays / vim.md
Last active November 17, 2021 18:03
vim cheat sheet

Windows

MOD Ctrl-w

" move current window to far right
L
" move current window to far left
H
" move current window to very bottom

J

My favorite GNU coreutils/bash commands

ls

  • follow symlinks (file or directory)
    ls -L winhome/

tr

  • translate, delete or squeeze characters
    tr [char1] [char2]
@karakays
karakays / ANSI.md
Created May 22, 2021 10:40 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@karakays
karakays / git.md
Last active May 8, 2021 13:06
git-workflows

Complex workflows in git

Undoing git rm

$ git status
Changes to be committed:     
deleted:    file

Unstage file
$ git reset -- file