Skip to content

Instantly share code, notes, and snippets.

Avatar

Simone Stefani SimoneStefani

View GitHub Profile
@SimoneStefani
SimoneStefani / AESenc.java
Last active Oct 21, 2020
Example of AES encryption and decryption in Java
View AESenc.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.
*/
View .bash_rc
###################
# COMMAND ALIASES #
###################
# Open file with Sublime Text
subl () {
open -a "Sublime Text" $@
}
# Open file or folder with Visual Studio Code
View git-plumbing.md

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