Skip to content

Instantly share code, notes, and snippets.

@sebkouba
sebkouba / gist:f2a982ea1c2b658574dcc3da8de09de6
Last active June 4, 2021 13:14 — forked from sunggun-yu/gist:4416430
Install NMON - CentOS 7 64bit
# Get Root
sudo su
# Download NMON archive
cd /tmp
wget http://sourceforge.net/projects/nmon/files/nmon16e_mpginc.tar.gz
# Untar archive
tar -xzvf nmon16e_mpginc.tar.gz
@keymon
keymon / mysql_lvm_backupscript.py
Created January 15, 2012 04:17
MYSQL script to backup the DB using LVM
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Requirements
# - Data files must be in lvm
# - Optionally in xfs (xfs_freeze)
# - User must have LOCK TABLES and RELOAD privilieges::
#
# grant LOCK TABLES, RELOAD on *.*
# to backupuser@localhost