Skip to content

Instantly share code, notes, and snippets.

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

Yuri Bucci ybucci

🏠
Working from home
View GitHub Profile
@ybucci
ybucci / mysql-5.6.sh
Last active September 16, 2023 00:38
#!/bin/bash
clear
# Função para solicitar e verificar a confirmação da senha
confirm_password() {
local prompt="Digite novamente a senha: "
read -s -p "$prompt" confirmed_password
echo
while [ "$confirmed_password" != "$1" ]; do
echo "As senhas não correspondem. Tente novamente."
@ybucci
ybucci / karpenter-dashboard.json
Last active July 19, 2023 17:24
Karpenter Dashboard Grafana
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@ybucci
ybucci / mysql_backup.sh
Last active September 16, 2023 00:36
Backup MySQL 5.6 and transfer it over rsync
#!/bin/bash
# Script will output dumps for all databases using seperate files
# Created and modifiy by yuri.bucci@outlook.com 2021/08/29
# Linkedin https://www.linkedin.com/in/yuribucci/
# Mysql Host
HOST="localhost"
PORT="3306"
USER="root"
MYSQL_PWD="secret"