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
#!/usr/bin/python | |
import pytz | |
from datetime import datetime, timedelta | |
intz = pytz.timezone('Asia/Kolkata') | |
print (datetime.now(intz)+ timedelta(days=1)).strftime("%Y-%m-%d %H:%M %p") |
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
version: '3' | |
services: | |
db: | |
container_name: mysql_sonarqube | |
image: mysql:latest | |
ports: | |
- "3308:3306" | |
environment: |
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 base64 | |
import json | |
def decode(token): | |
# Decodes JWT base64 encoded token | |
try: | |
alg, payload, signature = token.split(".") | |
payload += '=' * (-len(payload) % 4) | |
decode_payload = json.loads(base64.b64decode(payload).decode("utf-8")) |