Skip to content

Instantly share code, notes, and snippets.

View feakuru's full-sized avatar

Dmitry O feakuru

View GitHub Profile
@extratone
extratone / tgkeys.md
Created September 27, 2021 18:46
Telegram Desktop Keyboard Shortcuts
Action Command
Move to next chat Ctrl + Tab
Move to next chat Ctrl + PageDown
Move to next chat Alt + Arrow Down
Move to previous chat Ctrl + Shift + Tab
Move to previous chat Ctrl + PageUp
Move to previous chat Alt + Arrow Up
Go to Previous Folder Ctrl + Shift + Arrow Up
Go to Next Folder Ctrl + Shift + Arrow Down
@gabrielfalcao
gabrielfalcao / rsa_encryption.py
Created November 30, 2019 00:39
Using python cryptography module to generate an RSA keypair, serialize, deserialize the keys and perform encryption and decryption
import base64
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding
def utf8(s: bytes):
return str(s, 'utf-8')
@paolocarrasco
paolocarrasco / README.md
Last active November 5, 2024 20:08
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug

@roylee0704
roylee0704 / dockergrep.sh
Created December 9, 2016 08:24
how to grep docker log
docker logs nginx 2>&1 | grep "127."
# ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container