sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| import fs from 'fs'; | |
| import path from 'path'; | |
| const convert = (imgPath) => { | |
| // read image file | |
| fs.readFile(imgPath, (err, data)=>{ | |
| // error handle | |
| if(err) { | |
| throw err; | |
| } |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |