github.com/kelseyhightower/envconfig// first, define the structure
type CustomConfig struct {
Targets []string `envconfig:"TARGETS" default:"SOMETHING"`| import boto3 | |
| import deepdiff | |
| import copy | |
| import json | |
| class SimpleTable(boto3.resources.factory.dynamodb.Table): | |
| def __init__(self, table, partition_key = 'pk', sort_key = None): | |
| self.table = table | |
| self.partition_key = partition_key | |
| self.sort_key = sort_key |
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot certonly --standalone type OrderRevenue interface {
MarshalMyself() ([]byte, error)
}
type Anonymous struct {}
func (a Anonymous) MarshalMyself() ([]byte, error) {
// implementation's up to you
return []byte{}, nil
}| import _thread | |
| def pid_routine(): | |
| global kp | |
| global ki | |
| global kd | |
| while True: | |
| # calculate here |