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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"$$hashKey": "object:88", | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", |
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
{ | |
"__inputs": [ | |
{ | |
"name": "DS_KAFKA_SOURCE", | |
"label": "kafka source", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "prometheus", | |
"pluginName": "Prometheus" | |
} |
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
#!/usr/bin/python3 | |
import pymysql | |
import argparse | |
import os | |
import sys | |
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from email.mime.base import MIMEBase |
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
#!/usr/bin/python | |
days=['yesterday', 'today','tomorrow','dayafter'] | |
days_one=days[0] | |
days_two=days[1] | |
days_three=days[2] | |
days_four=days[3] |
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
#!/usr/bin/python | |
# number claulcation via while loop | |
import sys | |
userstatus=raw_input("you want to check for largest number (Y/N) : ") | |
while True: |
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
#!/usr/bin/python | |
numbers=raw_input("Enter three values by space seprate : ") | |
number_in_list=numbers.split() | |
print number_in_list | |
print(type(number_in_list[0])) | |
3 | |
if (number_in_list[0] > number_in_list[1]) and (number_in_list[0] > number_in_list[2]): | |
print "large number is {}".format(number_in_list[0]) |
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
#!/usr/bin/python | |
# Find grater number in 3 number and if all three are same print all number equal | |
num1=input("Print number 1 : ") | |
num2=input("Print number 2 : ") | |
num3=input("Print number 3 : ") | |
###### Logic via IF variables |
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
#!/bin/bash | |
######## | |
# Purpose :- When you run create snapshot.sh it take some time to create snapshot | |
# the status of snapshot is pending once it start creating. | |
# So after executing create_snapshot.sh after some time you execute check_snapshot to check final status of snapshot | |
# Provide your Access and Secret Key also check your Region | |
# Bug Report to :- [email protected] |
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
#!/bin/bash | |
######## | |
# Purpose :- To delete Automatic snapshot of AWS EBS volume | |
# Requirement :- Make Sure snapshot.config file is present in /data/backup/ | |
# format for Collection.config is VOLMEID000 | |
# For example | |
# vol-a994fff3 | |
# vol-a994fTT4 |
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
#!/bin/bash | |
######## | |
# Purpose :- To Create Automatic snapshot of AWS EBS volume | |
# Requirement :- Make Sure snapshot.config file is present in /data/backup/ | |
# format for snapshot.config is VOLMEID00000000 | |
# For example | |
# vol-a994fff3 |
NewerOlder