How to load and to dump json file
code snippet
code snippet
1.Export namespace status file to your directory as json file. 2. Edit the tmp.json file, and remove “kubernetes” that is…
You might be annoyed to use docker commands with sudo. You can use docker commands without “sudo” if you follow…
PyTorch to Numpy The method “detach()” is going to create a new torch.Tensor on the same device where the original…
Window Operations
Nginx Docker file Nginx default configuration file
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash source ~/.bashrc nvm list-remote nvm install v16.14.0 nvm list npm install --global yarn
import requests res = requests.get(URL) with open(fpath_2save, 'rb') as file: file.write(res.content)
version: "3.3" services: myservice: image: ${your-service} ports: - "30080:80" deploy: resources: limits: cpus: '0.5' memory: 2g environment: PORT: 80 REDIRECT:…
apt / apt-get The apt and apt-get is a package management system for Debian. It supports you to install packages…