Skip to content

Instantly share code, notes, and snippets.

View danyell's full-sized avatar

Daniel de Segovia Gross danyell

View GitHub Profile
@danyell
danyell / fixmysqlslave.sh
Last active February 7, 2021 14:05
Script to auto-repair MySQL replication slave synch-loss
#!/bin/bash
# Script to auto-repair MySQL replication slave synch-loss
# by: Daniel de Segovia Gross (daniel@hubrix.co)
# v1.0 07 Mar 2017
# Copyright 2017 Hubrix SAS. https://www.hubrix.co/
# License: MIT (see https://opensource.org/licenses/MIT)
# USE AT YOUR OWN RISK. Don't be a copy+paste victim!
# If you don't understand this script, you should NOT use it.
# It is intended to save you time, not replace your brain.
#
@danyell
danyell / htc.php
Last active May 12, 2022 22:17
.htaccess compiler
<?php
/*
* .htaccess compiler
*
* Recurse through all subdirectories, scan .htaccess files, and generate
* directives suitable for inclusion in an Apache configuration file.
* This lets you consolidate all .htaccess directives in the main
* (scanned once) Apache configuration. This has considerable
* performance and security benefits.
*