Skip to content

Instantly share code, notes, and snippets.


Selçuk Karakayalı karakays

Block or report user

Report or block karakays

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
karakays /
Last active Jul 5, 2019
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

karakays /
Last active Apr 8, 2019
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
karakays /
Last active Jul 3, 2019
my git cheatsheet

undo git rm

$ git status .
Changes to be committed:
deleted: file

# unstage file
$ git reset -- file

# checkout the copy in the index .
$ git checkout -- file

karakays /
Created Jan 4, 2019 — forked from andreyvit/
tmux cheatsheet

tmux cheat sheet

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

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a

Keybase proof

I hereby claim:

  • I am karakays on github.
  • I am 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 /
Created Sep 20, 2017 — forked from hofmannsven/
My simply Git Cheatsheet
You can’t perform that action at this time.