Script
Usage: sudo -E ./build.sh 3.7.13
Note:
-E
is used to preserve environments variable, which may be useful when using a proxy
#!/usr/bin/env bash
set -euo pipefail
import os | |
from pathlib import Path | |
from typing import Callable, Optional | |
from fastapi import FastAPI | |
from starlette.applications import Starlette | |
from starlette.routing import Mount | |
from starlette.staticfiles import StaticFiles | |
from starlette.types import Scope |
from __future__ import annotations | |
import json | |
import urllib.request as request | |
from concurrent.futures import ThreadPoolExecutor | |
from pathlib import Path | |
from typing import Any, Dict, Iterator, List, Optional, Set, Union | |
from azure.cognitiveservices.vision.customvision.training import ( | |
CustomVisionTrainingClient, |
""" | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit | |
of the public at large and to the detriment of our heirs and |
""" | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit | |
of the public at large and to the detriment of our heirs and |
Usage: sudo -E ./build.sh 3.7.13
Note:
-E
is used to preserve environments variable, which may be useful when using a proxy
#!/usr/bin/env bash
set -euo pipefail
""" | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit | |
of the public at large and to the detriment of our heirs and |
""" | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit | |
of the public at large and to the detriment of our heirs and |
A common and reliable pattern in service unit files is thus:
NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
Note: The script requires root permissions as it installs
nats
executable into/usr/local/bin
curl -sSL https://gist.githubusercontent.com/charbonnierg/b68d85e908c90160a1118838f2cceb63/raw/install-natscli.sh | bash
# This is the nebula example configuration file. You must edit, at a minimum, the static_host_map, lighthouse, and firewall sections | |
# Some options in this file are HUPable, including the pki section. (A HUP will reload credentials from disk without affecting existing tunnels) | |
# PKI defines the location of credentials for this node. Each of these can also be inlined by using the yaml ": |" syntax. | |
pki: | |
# The CAs that are accepted by this node. Must contain one or more certificates created by 'nebula-cert ca' | |
ca: /etc/nebula/ca.crt | |
cert: /etc/nebula/node.crt | |
key: /etc/nebula/node.key | |
#blocklist is a list of certificate fingerprints that we will refuse to talk to |