Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
{ | |
"openapi": "3.0.3", | |
"info": { | |
"title": "Bmi Screen Event", | |
"description": "All of events will be there which one is trigger on Bmi Screen ui", | |
"version": "1.0.0" | |
}, | |
"paths": {}, | |
"tags": [{ | |
"name": "Event Details" |
curl -L -H 'Accept: application/octet-stream' -H "Authorization: token $TOKEN" 'https://api.github.com/repos/:owner/:repo/releases/assets/:asset_id' --output output.format |
# Need at least Python 3.7 To Run this code | |
import asyncio | |
import aiohttp | |
endpoint = "https://randomuser.me/api/" | |
num_concurrent_requests = 20 | |
async def fetch(session, url): | |
async with session.get(url) as response: |
const axios = require("axios"); | |
const endpoint = "https://randomuser.me/api"; | |
const totalRequests = 20; | |
(async () => { | |
let requests = []; | |
for (let i = 0; i < totalRequests; i++) { | |
requests.push(axios.get(endpoint)); | |
} | |
Promise.all(requests) | |
.then((responses) => { |
ssh -i key.pem -R remote_open_port:localhost:local_open_port user@domain | |
import torch | |
import torch.nn as nn | |
from torch.autograd import Variable | |
batch_size = 3 | |
max_length = 3 | |
hidden_size = 2 | |
n_layers =1 | |
# container |
sudo apt-get install -y python3.8 python3.8-dev | |
rm -rf /app/tradingbot/venv | |
cd /app/tradingbot | |
virtualenv venv --python /usr/bin/python3.8 |