Skip to content

Instantly share code, notes, and snippets.

View JavierLuna's full-sized avatar
🌚
What's up?

Javier Luna Molina JavierLuna

🌚
What's up?
View GitHub Profile
@JavierLuna
JavierLuna / gpg-quick.md
Created August 24, 2019 10:00
GPG quick & easy

GPG quick and straight to the point

(Some systems use gpg2 instead of gpg, same thing but different name)

Create key pair

gpg --full-gen-key. RSA and RSA (the default) and use 4096 lenght.

List all the keys on your machine

gpg --list-keys --keyid-format LONG. The $ID I'll be refering from now on goes after the pub rsa4096/ part.

@JavierLuna
JavierLuna / ubuntu-setup.sh
Last active November 12, 2018 14:55
Script to install my shit on a fresh Ubuntu install. Only tested on Ubuntu 16.04
#!/bin/bash
if [ "$EUID" -eq 0 ]
then echo "Execute again without sudo"
exit
fi
cd $HOME
sudo apt-get update -y
@JavierLuna
JavierLuna / flask-boilerplate.sh
Last active October 23, 2017 01:11
Creates my current Flask app skeleton, creating along the way a virtual environment and installing my fav libraries
#!/bin/bash
projectname=""
python_interpreter=""
usage()
{
echo "Usage: flask-boilerplate <projectname (OPTIONAL)> [params]"
echo "Example: flask-boilerplate hello-world"
echo "Params:"