Gỡ bỏ Cuda, Drivers cũ trên máy
sudo /usr/local/cuda-X.Y/bin/uninstall_cuda_X.Y.pl
sudo /usr/bin/nvidia-uninstall
sudo reboot| # Requirements: | |
| # OS: Ubuntu18.04 LTS | |
| # Python >= 3.8 | |
| # Cuda: 10.2, | |
| # CudaNN 8.1.1 | |
| # Download TensorRT 7.2.3 for Linux and CUDA 10.2 from https://developer.nvidia.com/nvidia-tensorrt-7x-download for ubuntu 18.04 | |
| # or from this link https://developer.nvidia.com/compute/machine-learning/tensorrt/secure/7.2.3/local_repos/nv-tensorrt-repo-ubuntu1804-cuda10.2-trt7.2.3.4-ga-20210226_1-1_amd64.deb | |
| # OPEN terminal |
FWIW: I (@Rondy) am not the author of the content presented here, which is an outline from Edmond Lau's book. I've just copy-pasted it from somewhere and saved as a personal gist, before it got popular on newsnews.ycombinator.com. I don't remember where exactly the original source is from and neither could find the author's name, so I cannot give him/her the proper credits.
| try { | |
| const GPT_KEY = process.env.CHATGPT_API_KEY; | |
| const headers = { | |
| 'Content-Type': 'application/json', | |
| Authorization: `Bearer ${GPT_KEY}`, | |
| }; | |
| const prompt = req.query.text; |
| name: 'Semantic Commit Message Checker' | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| jobs: | |
| check-commit-message: |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: nginx-conf-configmap | |
| labels: | |
| app: your-app | |
| data: | |
| nginx.conf: |- | |
| error_log /dev/stdout info; | |
| events { |
First, create a Docker network. This enables container DNS, which allows containers to communicate with one another by name.
docker network create mattermostnw