Skip to content

Instantly share code, notes, and snippets.

@darek-szymanski
darek-szymanski / 2019-https-localhost.md
Created January 10, 2024 10:46 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@darek-szymanski
darek-szymanski / Mac SSH Autocomplete
Created May 18, 2018 13:08 — forked from aliang/Mac SSH Autocomplete
Add auto complete to your ssh, put into your .bash_profile
_complete_ssh_hosts ()
{
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \
cut -f 1 -d ' ' | \
sed -e s/,.*//g | \
grep -v ^# | \
uniq | \
grep -v "\[" ;

Set up L2TP/IPsec VPN on Debian

Set up IPsec

Set up networking