Install oh-my-zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Install oh-my-zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Save docker images to file:
docker save -o destination/file.tar docker_image/name
Load docker images from file:
docker load -i destination/file.tar
Requires the passcode for the .pfx file prior.
Extract .key file from .pfx file (will need to set a password here too):
openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]
Extract .crt file from .pfx file:
openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]
Run this is the terminal:
openssl req -x509 -out localhost.crt -keyout localhost.key \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=localhost' -extensions EXT -config <( \
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
Reference:
Essential:
Case specific:
To try:
By Shell:
echo "username:password" | base64
By Node:
node
console.log(Buffer.from('username:password').toString('base64'))
{ | |
"hooks": { | |
"pre-commit": "yarn lint --fix && yarn test", | |
"pre-push": "yarn lint --fix && yarn test" | |
} | |
} |
Enable Docker on system startup:
sudo systemctl enable docker.service
Install docker-compose (change 1.19.0
to latest version):
sudo su -
mkdir -p /opt/bin
curl -L "https://github.com/docker/compose/releases/download/1.19.0/docker-compose-$(uname -s)-$(uname -m)" -o /opt/bin/docker-compose
Extract /etc/letsencrypt
to tar file
On the new system, remove the current certificates and config (if applicable) with:
sudo rm -r /etc/letsencrypt
Make a new folder with:
sudo mkdir /etc/letsencrypt