Skip to content

Instantly share code, notes, and snippets.

@GedowFather
GedowFather / SqlLogger.py
Last active August 8, 2021 04:48
Python scirpt for counting slow query log and sort it.
#
# スロークエリログをユニーク化整理します
#
import re
import hashlib
class counterSlowQuery:
init_keep_info = {
'unix_time' : None,
'src_ip' : None,
#!/usr/bin/env python3
import os
import json
import hashlib
import glob
#
# Config
#
@GedowFather
GedowFather / ZabbixSender.py
Created December 7, 2015 06:13
AWS Lambda python script for sending metric value to zabbix.
#
# For sending metric value to zabbix server.
#
# You must create item as "zabbix trapper" on server.
# Because the server must be connected to agent:10050, if it is selected "zabbix agent".
#
# Usage:
# from modules.ZabbixSender import ZabbixSender
# ZABBIX_HOST = "zabbix.example.com"
# ZABBIX_PORT = 10051
@GedowFather
GedowFather / percona_backup.sh
Last active April 11, 2024 10:16
Backup & Restore Scripts for Percona XtraBackup
#!/bin/bash
#
# ============================================================
#
# @license This program is free software.
#
# @category Script for Percona Server
# @project Gedow Software
# @package Gedow Percona Utils
# @author GedowFather http://blog.father.gedow.net/