Skip to content

Instantly share code, notes, and snippets.

View SimoneStefani's full-sized avatar

Simone SimoneStefani

View GitHub Profile

How to make a commit with plumbing commands

1. Setup Git repo

  • Make empty folder called git-plumbing. Git is not initialised!
  • Make .git directory where all the Git system will reside. Git is not initialised!
  • Git repository is a collection of object and a system for naming those objects (refs). Let's make objects and refs subfolders.
  • Let's make .git/refs/heads which keep track of branches. Git is not initialised!
  • The last missing piece to initialise a Gitrepo is a HEAD file with content:
ref: refs/heads/master
@SimoneStefani
SimoneStefani / AESenc.java
Last active August 17, 2021 14:03
Example of AES encryption and decryption in Java
/**
* Code written by P. Gajland
* https://github.com/GaPhil
*
* IMPORTANT:
* This code is for educational and demonstrative purpose only.
* If you need to do serious encryption for "production" it is
* recommended to investigate more traditional libraries and
* gain some specific knowledge on cryptography and security.
*/