Skip to content

Instantly share code, notes, and snippets.

View kedazo's full-sized avatar
💭

David Kedves kedazo

💭
View GitHub Profile
#!/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:
@kedazo
kedazo / example.ino
Created November 24, 2016 13:09
WeMos D1 wifi scan example
/*
* ESP8266 CheckFlashConfig by Markus Sattler
*
* This sketch tests if the EEPROM settings of the IDE match to the Hardware
*
* https://github.com/esp8266/Arduino/blob/master/libraries/esp8266/examples/CheckFlashConfig/CheckFlashConfig.ino
*/
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
$ 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
# create a new directory chroot:
rinse --distribution centos-6 --arch amd64 --directory /mnt/data/rootstraps/centos6/
# schroot configuration up, put this to /etc/schroot/schroot.conf :
[centos6]
description=CentOS6 chroot
type=directory
directory=/mnt/data/rootstraps/centos6