Skip to content

Instantly share code, notes, and snippets.

View karakays's full-sized avatar
💩

Selçuk Karakayalı karakays

💩
View GitHub Profile

APT

dpkg name format

[name]_[version]-[revision]_[architecture].deb

List 32-bit packages

dpkg --list | grep i386

List keys

KEYS \*

Get type of key

TYPE key

Value types

string

list

Basics
+  open new terminal
+ j focus left
+ k focus down
+ l focus up
+ ; focus right
+ a focus parent
+  toggle focus mode
Moving windows

X window system (X11), simply X, provides basic GUI framework.

A desktop environment consists of window manager, file manager and utility programs.

startx initializes an X session. It can be started manually after a console login or through a graphical login by display manager.

X window manager

X window manager is windowing system that runs on top of X11. The user can choose between third-party window managers.

@karakays
karakays / tmux.md
Last active April 7, 2020 12:43 — forked from andreyvit/tmux.md
tmux cheatsheet

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 / mvn.md
Last active March 25, 2020 15:28
mvn clean install and we're done
@karakays
karakays / mercurial.md
Last active July 5, 2019 06:19
Mercurial cheatsheet

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

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 / openssl.md
Last active April 8, 2019 12:23
Common OpenSSL commands

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