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 socket | |
import os | |
# Porta 81 | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
result = sock.connect_ex(('localhost',81)) | |
if result == 0: | |
print "Port is open" | |
else: | |
os.system("docker run -p 81:80 -d dotnetapp:latest") |
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
{ | |
"infra-audit-store-%y%m%d-2022.02.03": { | |
"aliases": {} | |
}, | |
"logstash-2022.02.03": { | |
"aliases": {} | |
}, | |
"infra-keycloak-2022.02.25": { | |
"aliases": {} | |
}, |
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
from datetime import datetime,timedelta | |
from requests.auth import HTTPBasicAuth | |
import argparse | |
import json | |
import os | |
import requests | |
import sys | |
# Getting ENV Variables | |
ELASTIC_API_URL = os.getenv('ELASTIC_API_URL') |