List of programs to install
Save docker images to file:
docker save -o destination/file.tar docker_image/nameLoad docker images from file:
docker load -i destination/file.tarRequires 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:
- lodash: Function utility lib.
Case specific:
- async: Async function utility lib. Uses callbacks over promises (outdated). Try promise-fun first.
- Dataloader: Key/value loader (use with GraphQL).
- promise-fun: Async utility lib built on promises.
- superagent: HTTP request builder
To try:
By Shell:
echo "username:password" | base64By Node:
node
console.log(Buffer.from('username:password').toString('base64'))
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
| { | |
| "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
NewerOlder