Skip to content

Instantly share code, notes, and snippets.

@wooken
wooken / alacritty-papercolor-light.yml
Last active March 31, 2022 05:56
PaperColor colorscheme for Alacritty
# PaperColor Light 256 - alacritty color config
# https://github.com/NLKNguyen/papercolor-theme
# https://www.reddit.com/r/vim/comments/36xzbs/vim_paper_color_theme_inspired_by_googles/crqbfpa/
colors:
# Default colors
primary:
background: '0xeeeeee'
foreground: '0x4d4d4c'
# Colors the cursor will use if `custom_cursor_colors` is true
@TemporaryJam
TemporaryJam / Howto convert a PFX to a seperate .key & .crt file
Last active April 4, 2024 10:52
How to convert a .pfx SSL certificate to .crt/key (pem) formats. Useful for NGINX
source: http://www.markbrilman.nl/2011/08/howto-convert-a-pfx-to-a-seperate-key-crt-file/
`openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]`
What this command does is extract the private key from the .pfx file. Once entered you need to type in the importpassword of the .pfx file. This is the password that you used to protect your keypair when you created your .pfx file. If you cannot remember it anymore you can just throw your .pfx file away, cause you won’t be able to import it again, anywhere!. Once you entered the import password OpenSSL requests you to type in another password, twice!. This new password will protect your .key file.
Now let’s extract the certificate:
`openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]`
@Hubro
Hubro / pyenv.sh
Created June 13, 2012 13:28
Python virtual environment selector
function pyenv() {
VIRTUALENVS_PATH=~/pyenvs
# Procure env name. If it was supplied in an argument, use that
if [[ "$1" != "" ]]
then
VIRTUALENV_NAME=$1
else
# Otherwise prompt the user for it
VIRTUALENV_NAME=""