- Current branch local name:
git config alias.lbranch-name 'rev-parse --abbrev-ref HEAD'
git lbranch-name
- Remote tracking branch name:
git config alias.rbranch-name 'rev-parse --symbolic-full-name --abbrev-ref @{u}'
git rbranch-name
git config alias.lbranch-name 'rev-parse --abbrev-ref HEAD'
git lbranch-name
git config alias.rbranch-name 'rev-parse --symbolic-full-name --abbrev-ref @{u}'
git rbranch-name
Using Paramiko in Sublime Text 2 plugins (as a guide to using Python libraries in Sublime Text 2 plugins)
For symmetic encryption, you can use the following: | |
To encrypt: | |
openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt | |
To decrypt: | |
openssl aes-256-cbc -salt -a -d -in encrypted.txt -out plaintext.txt | |
For Asymmetric encryption you must first generate your private key and extract the public key. |
NOTE: HTTP SSL keys are all in PEM format (base64 encoded) | |
#From PEM format to DER | |
openssl x509 -in $1.crt -out $1.der -outform DER | |
#From DER format to PEM | |
openssl x509 -in $1.der -inform DER -out $1.pem -outform PEM | |
#Transforming RSA key to DER format | |
openssl rsa -in oberon.key -inform PEM -out oberon_key.der -outform DER |