import os
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" |
function get_line(start, end) { | |
let [x1, y1] = start; | |
let [x2, y2] = end; | |
let dx = x2 - x1; | |
let dy = y2 - y1; | |
const is_steep = Math.abs(dy) > Math.abs(dx); | |
// Rotate line |
# a fresh start | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
# remove old versions, if not placed in a virtual environment (let pip search for them) | |
sudo pip uninstall tensorflow | |
sudo pip3 uninstall tensorflow | |
# install the dependencies (if not already onboard) | |
sudo apt-get install -y gfortran | |
sudo apt-get install -y libhdf5-dev libc-ares-dev libeigen3-dev | |
sudo apt-get install -y libatlas-base-dev libopenblas-dev libblas-dev |
docker buildx build --platform=linux/amd64 -t myimage . |
docker run -i --entrypoint=/bin/sh ... |
import aws from "aws-sdk"; | |
const s3 = new aws.S3({ | |
endpoint: `https://${process.env.CLOUDFLARE_ACCOUNT_ID}.r2.cloudflarestorage.com`, | |
accessKeyId: process.env.CLOUDFLARE_ACCESS_KEY, | |
secretAccessKey: process.env.CLOUDFLARE_SECRET_ACCESS_KEY, | |
signatureVersion: "v4", | |
}); | |
const config = { |