This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Config for golangci-lint v1.50.0 | |
# based on https://gist.github.com/maratori/47a4d00457a92aa426dbd48a18776322 | |
run: | |
# Timeout for analysis, e.g. 30s, 5m. | |
# Default: 1m | |
timeout: 3m | |
go: '1.17' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ip link add dummy0 type dummy | |
sudo ip addr add 192.168.100.100/24 dev dummy0 | |
sudo ip link set dummy0 up | |
sudo ufw allow in on dummy0 to any port 8081:8086 proto tcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
from typing import Any, Type | |
from dataclasses import dataclass, is_dataclass | |
from pydantic import BaseModel, ValidationError | |
from pydantic.main import MetaModel | |
AnyType = Type[Any] |