Skip to content

Instantly share code, notes, and snippets.

Avatar
💩

Selçuk Karakayalı karakays

💩
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am karakays on github.
  • I am karakays (https://keybase.io/karakays) on keybase.
  • I have a public key whose fingerprint is E173 7ECB 4384 D56A 694B E02F 0B7D 8235 0CE9 E2A6

To claim this, I am signing this object:

@karakays
karakays / tmux.md
Last active Apr 7, 2020 — forked from andreyvit/tmux.md
tmux cheatsheet
View tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Clients, sessions, windows, panes

tmux-server manages

  • Session is a set of windows, plus a notion of which window is current.
@karakays
karakays / git.md
Last active May 8, 2021
git-workflows
View git.md

Complex workflows in git

Undoing git rm

$ git status
Changes to be committed:     
deleted:    file

Unstage file
$ git reset -- file

@karakays
karakays / openssl.md
Last active Apr 8, 2019
Common OpenSSL commands
View openssl.md

Generate a new private key and Certificate Signing Request

openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key

Generate a self-signed certificate (see How to Create and Install an Apache Self Signed Certificate for more info)

openssl req -x509 -sha256 -nodes -days 365 \
-newkey rsa:2048 -keyout privateKey.key \
-out certificate.crt
@karakays
karakays / mercurial.md
Last active Jul 5, 2019
Mercurial cheatsheet
View mercurial.md

basic flow

hg add a b
hg commit a -m "added a" # commit specific file
hg push

discard local changes

hg revert file # revert file
hg revert --all

log recent commits

View bash.md

My favorite GNU coreutils/bash commands

ls

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

tr

  • translate, delete or squeeze characters
    tr [char1] [char2]
View kafka-clients.md

Tools

Config

kafkacat

echo "bootstrap.servers=127.0.0.1:9092" > ~/.config/kafkacat.conf
@karakays
karakays / vim.md
Last active Nov 17, 2021
vim cheat sheet
View vim.md

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

View gpg.md

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 / mvn.md
Last active Mar 25, 2020
mvn clean install and we're done
View mvn.md