The current setup has been tested on Next Js 7.0.0
.
You need to install Axios.
$ npm install axios
from gcapi import GCapiClient # From https://github.com/rickykim93/gcapi-python | |
from gcapi.gcapi_tools import format_date # From https://github.com/rickykim93/gcapi-python | |
from datetime import datetime | |
from time import sleep | |
import numpy | |
def check_sell_criteria(prices): | |
# TODO: Write your algorithm to detect sell condition here | |
return False |
next.js, nginx, reverse-proxy, ssl
Your server.js
file should look like the following. Make sure you're serving static files!
const { createServer } = require('http');
const { parse } = require('url');
const next = require('next');
#!/bin/bash | |
## Conventions: | |
## | |
## Working directory has the same name as the s3 bucket. | |
## Script is executed from the parent of this directory. | |
## | |
BUCKET=$1 |
#!/bin/sh | |
set -eu | |
# Docker | |
sudo apt remove --yes docker docker-engine docker.io || true | |
sudo apt update | |
sudo apt --yes --no-install-recommends install apt-transport-https ca-certificates | |
wget --quiet --output-document=- https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:
The mini.iso for the Ubuntu distribution is legacy since version 20.04LTS (Focal Fossa). This is a bad news for those (like me) that formerly used this distribution to produce lightweight virtual machines for development, teaching, testing, etc. A distribution of the mini.iso for Ubuntu 20.04 is indeed still available here, but there is no guarantee that its availability will continue after Focal Fossa. An askubuntu post on the topic (there are several) is here.
So I decided to find a way to do without the mini.iso, and I wrote this script that takes to the ''tasksel'' step starting from a cloud image in the ubuntu repository. You have many options here about the image format to use: I refer to the .ova file that you find in fo