Skip to content

Instantly share code, notes, and snippets.

View rnovikovP's full-sized avatar
🏠
Working from home

Roman Novikov rnovikovP

🏠
Working from home
View GitHub Profile
#!/bin/sh
wget https://repo.percona.com/apt/percona-release_latest.generic_all.deb
sudo dpkg -i percona-release_latest.generic_all.deb
sudo apt-get update
sudo apt-get install pmm2-client
#!/bin/sh
# ###############################
# Script to run PMM2
# curl -fsSL https://gist.githubusercontent.com/rnovikovP/91be10dec6bae1111cf104f85fffd5cf/raw/get-pmm2.sh -o get-pmm2.sh ; chmod +x get-pmm2.sh ; ./get-pmm2.sh
#
#################################
set -o errexit
set -o xtrace
@rnovikovP
rnovikovP / pmm2-1.sh
Created March 18, 2019 21:13
pmm2-1.sh
#!/bin/bash
function jsonval {
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop`
echo ${temp##*|}
}
@rnovikovP
rnovikovP / gist:0a122a8b9202a6aad7696bbf4cb094b4
Created March 9, 2017 17:08
Percona LLC - Individual Contributor License Agreement ("Agreement")
Thank you for your interest in Percona LLC (Percona). In order to clarify the intellectual property license granted with Contributions from any person or entity, Percona must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Percona and its users; it does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Percona. Except for the license granted herein to Percona and recipients of software distributed by Percona, You reserve all right, title, and interest in and to Your Contributions.
1. Definitions.
"You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Percona. For legal entities, the entity making a Contribution and a