Skip to content

Instantly share code, notes, and snippets.

View SansGuidon's full-sized avatar
Curious mind reading about everything

SansGuidon SansGuidon

Curious mind reading about everything
  • Zoemp
View GitHub Profile
@SansGuidon
SansGuidon / openssl-encrypt-file
Last active June 9, 2017 17:33 — forked from mingfang/convert id_rsa to pem
OpenSSL for files encryption
# create a PEM pub key (will be useful later)
openssl rsa -in .ssh/id_rsa -pubout -out id_rsa.pub.pem
# check it
chmod 700 id_rsa.pub.pem
openssl rsa -in id_rsa.pub.pem -pubin -text -noout
# 1) encrypt small file, using only RSA private and pub key
# create a secret
echo "my secret" > secret.txt
# encrypt the file using your public key
@SansGuidon
SansGuidon / README.md
Created August 22, 2018 07:49 — forked from magnetikonline/README.md
List all Git repository objects by size.

List all Git repository objects by size

Summary

Bash script to:

  • Iterate all commits made within a Git repository.
  • List every object at each commit.