- Register for Oracle Cloud Free Tier
- Create compute instance
- change image to
Canonical Ubuntu - confirm that a public IPv4 address is assigned
- upload your public ssh key
- leave everything blank in
Boot volume
- change image to
- Enable Internet Access
- Instances → Instance details → Subnet → Default Security List → Add Ingress Rules
- HTTP: Stateless: Checked
| # Help create a pyproject.toml from a setup.py file | |
| # | |
| # USAGE: | |
| # 1) | |
| # replace "from [a-z.]* import setup" in your setup.py | |
| # with "from convert_setup_py_to_pyproject_toml import setup" | |
| # 2) | |
| # run the resulting script with python, with this script in the PYTHONPATH | |
| # | |
| # The above can be achieved on Linux, for example, with: |
| #!/usr/bin/env python | |
| import requests | |
| import csv | |
| def download_table(url="https://gitlab.cern.ch/lhcb-conddb/DDDB/-/raw/master/param/ParticleTable.txt"): | |
| r = requests.get(url) | |
| r.raise_for_status() | |
| lines = r.text.split("\n") |
| version: "3" | |
| services: | |
| app: | |
| image: 'jc21/nginx-proxy-manager:latest' | |
| restart: unless-stopped | |
| ports: | |
| - '80:80' | |
| - '443:443' | |
| - '81:81' | |
| environment: |
Hello and welcome to my Shortcuts Catalog!
This is a public resource designed to help people get started with Siri Shortcuts and the Shortcuts app.
It’s made up of the Shortcuts Library, a collection of over 125+ shortcuts grouped into folders, and the Action Directory, a documentation of 125+ of the actions in the Shortcuts app used to build shortcuts.
Enjoy!
Infrastructure-as-Code is a principal that drives modern DevOps practice. I discuss the current state of Terraform and provide some basic guidelines/principles regarding how to structure it's usage for your project.
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.
| import torch | |
| import torch.distributed as dist | |
| import torch.multiprocessing as mp | |
| from torch.utils.data import IterableDataset, DataLoader | |
| class DistributedIterableDataset(IterableDataset): | |
| """ | |
| Example implementation of an IterableDataset that handles both multiprocessing (num_workers > 0) |

