This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash | |
sudo apt-get install -y git-lfs | |
git lfs install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo | |
read -p "Enter text value: " TEXT | |
if [ -z "$TEXT" ]; then | |
echo | |
echo "ERROR: Text value empty - Please provide a valid value!" | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true; do | |
echo | |
read -s -p "Enter the desired password: " PASSWORD | |
echo | |
read -s -p "Confirm your password by re-entering it again: " PASSWORD_CONFIRMATION | |
echo | |
[ "$PASSWORD" = "$PASSWORD_CONFIRMATION" ] && break || echo " ----- The two entered passwords don't match; please try again! -----" | |
done | |
if [ -z "$PASSWORD" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd.exe | |
Run the following two commands to associate Sublime Text 3 with extensionless files on Windows: | |
assoc .="No Extension" | |
ftype "No Extension"="C:\Program Files\Sublime Text 3\sublime_text.exe" "%1" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generate a new pgp key: | |
gpg --full-generate-key | |
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null` | |
# Check current keys: | |
gpg --list-secret-keys --keyid-format LONG | |
# Export public key in gpg: | |
gpg --armor --export ER34512P9 | |
# Your key id is the HASH in front of `sec` in previous command - looks a bit like "ER34512P9" or something like that. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Xml; | |
using System.Text; | |
using System.Security.Cryptography; | |
using Org.BouncyCastle.Pkcs; | |
using Org.BouncyCastle.X509; | |
using Org.BouncyCastle.OpenSsl; |