pip install beautifulsoup4
pip install requests
- Python 3
- requests
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
[Unit] | |
Description=Grafana | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutStartSec=0 | |
Restart=always | |
ExecStartPre=-/usr/bin/docker stop %n | |
ExecStartPre=-/usr/bin/docker rm %n |
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
#!/bin/bash | |
# wait-for-dns - a script which waits for the availability of a DNS record. | |
# | |
# This script is useful in cases where it is necessary to ensure a certain DNS record is resolvable | |
# without "contaminating" DNS resolvers with cached NXDOMAIN responses. | |
# | |
# This script accepts a DNS zone and a record. It then figures out the authoritative nameservers | |
# for for the zone and queries each of them for the existence of the provided record. If the record | |
# exists on all of the nameservers, the script exits successfully. If the record doesn't exist on |
docker exec postgres.service pg_dump -U my_user my_db > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql
docker exec -i postgres.service psql -U my_user my_db < dump_12-03-2020_17_49_37.sql
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
[Unit] | |
Description=PostgreSQL | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutStartSec=0 | |
Restart=always | |
ExecStartPre=-/usr/bin/docker stop %n | |
ExecStartPre=-/usr/bin/docker rm %n |
openssl req -x509 -newkey rsa:4096 -keyout mykey.key -out mycert.pem -days 365 -nodes -subj '/CN=localhost'
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
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: registry | |
--- | |
apiVersion: policy/v1beta1 | |
kind: PodSecurityPolicy | |
metadata: | |
name: registry |
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
provider "azurerm" {} | |
variable "cluster_name" { | |
default = "aks-test" | |
} | |
resource "azurerm_resource_group" "test" { | |
name = "${var.cluster_name}" | |
location = "West Europe" | |
} |