This file contains hidden or 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 ipaddress | |
| def check_ip(s_ip_or_net): | |
| b_valid = True | |
| try: | |
| # The IP Addresses are expected to be passed without / even if it's /32 it would fail | |
| # If it uses / so, the CIDR notation, check it as a Network, even if it's /32 | |
| if "/" in s_ip_or_net: | |
| o_net = ipaddress.ip_network(s_ip_or_net) | |
| else: |
This file contains hidden or 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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDgXWr6e9kv/8jX3P/K5rq1MT8K1NF3OEhO8WJLG9ahoo6DqPkkkYTIEFwlVe0ETdIcO6mFvEvuPNTn5/jGI6wLH1Yey2bae6lndkx8gRk1V0ZTPpo8jPaBnvXZYTDANvaAeW7Y01arQ09LZZEe8hSEE9CB/bDgSIQ+RmV3q1jcLT+iQC2e0lj1gODSwD+wn0ITwHzMe4xyYlYHXbwMWZP/UvDoiAPsAej4oCko8NgD3vhHma3B/wGLGn0gxois2XMKkE2G0dr0uQJfT4XcwEd4Qfzk4ZF0gI01oTNEYlBMOHLKy9wUJ1+q4/x1duGxhfB/NHmuteynM0u1wUZlV0hw3tIk0mxWNFvI6yDfL84nav/xaUu/JzEKWyl/RcNctH+t+bXinusxUo0PmxUiLwMr02sfbJSbzh+p4f5GAWD6vv8nuzElJF//Cj+83fZR74Off/dKWVbfLuRz4bOiF9oGDSvQpT2ns/HQRw/ai33D9y7+jZ95egAXK3b8lbOmq+0= kjanshair@kjanshair |
This file contains hidden or 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
| version: "3.3" | |
| services: | |
| traefik: | |
| image: traefik:latest | |
| container_name: traefik | |
| environment: | |
| # COMMON | |
| - TRAEFIK_API_INSECURE=true # Enable Traefik dashboard | |
| - TRAEFIK_PROVIDERS_DOCKER=true # Enable Docker provider |
This file contains hidden or 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
| package config | |
| import ( | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "os" | |
| "path/filepath" | |
| "github.com/hashicorp/hcl2/gohcl" |
This file contains hidden or 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: ConfigMap | |
| metadata: | |
| name: master-500-html | |
| namespace: default | |
| data: | |
| 50x.html: | | |
| <!DOCTYPE html> | |
| <html> | |
| <head> |
This file contains hidden or 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
| version: "3" | |
| services: | |
| app1: | |
| image: <name>:latest | |
| container_name: app1 | |
| networks: | |
| - isolated_network | |
| networks: |
This file contains hidden or 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
| KEY=VALUE |
This file contains hidden or 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
| version: '3' | |
| services: | |
| redis: | |
| image: redis | |
| container_name: redis | |
| postgres: | |
| image: 'postgres' | |
| container_name: postgres |