Skip to content

Instantly share code, notes, and snippets.

View kedazo's full-sized avatar
💭

David Kedves kedazo

💭
View GitHub Profile
clustercontrol-controller.postinst
#!/usr/bin/env bash
# for mysql binary
set PATH=${PATH}:/usr/bin
echo "*** If you are upgrading from an older version to v1.2.12,"
echo "*** you must also upgrade the DB schema manually."
echo "***"
echo "*** Starting from version 1.2.12, cmon will attempt to auto-upgrade the schema"
@kedazo
kedazo / 2018_oracle_mysql_repo_gpg_key_new.asc
Created May 22, 2018 14:07
Oracle MySQL Repo new GPG key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.5 (GNU/Linux)
mQGiBD4+owwRBAC14GIfUfCyEDSIePvEW3SAFUdJBtoQHH/nJKZyQT7h9bPlUWC3
RODjQReyCITRrdwyrKUGku2FmeVGwn2u2WmDMNABLnpprWPkBdCk96+OmSLN9brZ
fw2vOUgCmYv2hW0hyDHuvYlQA/BThQoADgj8AW6/0Lo7V1W9/8VuHP0gQwCgvzV3
BqOxRznNCRCRxAuAuVztHRcEAJooQK1+iSiunZMYD1WufeXfshc57S/+yeJkegNW
hxwR9pRWVArNYJdDRT+rf2RUe3vpquKNQU/hnEIUHJRQqYHo8gTxvxXNQc7fJYLV
K2HtkrPbP72vwsEKMYhhr0eKCbtLGfls9krjJ6sBgACyP/Vb7hiPwxh6rDZ7ITnE
kYpXBACmWpP8NJTkamEnPCia2ZoOHODANwpUkP43I7jsDmgtobZX9qnrAXw+uNDI
#!/bin/bash
rm -rf /var/repo-s9s-tools.new
mkdir /var/repo-s9s-tools.new
cd /var/repo-s9s-tools.new
rm -rf /var/repo-s9s-tools.old
cp -fa /var/repo-s9s-tools /var/repo-s9s-tools.old
IFS='
'
#!/bin/bash
cd /var/repo-s9s-tools/
IFS='
'
URL=http://download.opensuse.org/repositories/home:/kedazo/
echo "********************************************"
echo "* MIRRORING IN PROGRESS "
echo "********************************************"
#!/bin/bash
if [[ $EUID != 0 ]]; then
echo "Please run this script as root (sudo)."
exit 1
fi
for config in /etc/cmon.d/*.cnf; do
cat $config | egrep "^(hostname|mysql_port|mysql_hostname|mysql_password)"
if [[ $0 == 0 ]]; then
break
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\{E2F13B98-650F-47DB-845A-420A1ED34EC7}User\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]
"LowRiskFileTypes"=".exe;.bat;.cmd;.vbs"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]
"LowRiskFileTypes"=".exe;.bat;.cmd;.vbs"
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6V8fXTuQWDmL/GQ4OBjdaF1QY5Esv9xEPg5Asd6Yo7cEXb3YEatB4VOqg04bgNsowa6LN3H9EUpnBoJfZCkct8n12WCjJHnzvfHfBDYlQVa5ersPKG2kTAr2TdfHJPIMNBY6jTMhBqs+Zr0zMhsf9D0p52rz/i3CQDkAbwCoGa6sRS3K4bnWEHrsjPUGPj7pjMyUhX7WEGuzCVIi1tbbVDmW6vgZ6epCyPzwcnOrrt/br6S8Yq7jiNAqhdYJkh59WtrtpbDu6mwvj1yndiOdJtP6Pm8zi2asDZy/am2MYumNu+9IvmtTNAkSvUX9E3GniGQKr1B6rkfff6/HpqYocw== kedz@kedz-PC
root@ubuntu-xenial:~# apt-get install percona-xtrabackup
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libio-socket-ssl-perl libnet-libidn-perl libnet-ssleay-perl libterm-readkey-perl
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libdbd-mysql-perl libmysqlclient20 mysql-common
The following NEW packages will be installed:
$ cat ft_install_suite.sh
#!/bin/bash
OSES="centos66 centos70 debian7 debian8 ubuntu1204 ubuntu1404"
for os in $OSES; do
ft_install/ft_install --mysql-version=5.6 --vendor=percona --os=$os
ft_install/ft_install --mysql-version=10.1 --vendor=mariadb --os=$os
ft_install/ft_install --mysql-version=5.6 --vendor=codership --os=$os
done