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.
| Regular expression cheat sheet for Varnish | |
| Varnish regular expressions are NOT case sensitive. Varnish uses POSIX | |
| regular expressions, for a complete guide, see: "man 7 regex" | |
| Basic matching: | |
| req.url ~ "searchterm" | |
| True if req.url contains "searchterm" anywhere. | |
| req.url == "searchterm" |
| upstream backend { | |
| server localhost:8080; | |
| #server backup1.example.com:8080 backup; | |
| #server backup2.example.com:8080 backup; | |
| } | |
| # Set cache dir | |
| proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:10m; | |
| # Set cache key to include identifying components |
An IAM user policy document to give minimal rights for deploying an Elastic Beanstalk application.
Where:
REGION: AWS region.ACCOUNT_ID: AWS account ID.APPLICATION_NAME: Desired target Elastic Beanstalk application name(space).IAM_INSTANCE_PROFILE_ROLE: The instance profile (IAM role) Elastic Beanstalk EC2 instaces will run under.