Skip to content

Instantly share code, notes, and snippets.

View techwolf359's full-sized avatar

Jeremy Tinley techwolf359

View GitHub Profile
@techwolf359
techwolf359 / mysql_query_multiplexer.go
Last active August 2, 2016 20:37 — forked from keyurdg/mysql_query_multiplexer.go
Read output from pt-query-digest and multiplex queries to MySQL over multiple threads.
package main
import (
"bufio"
"bytes"
_ "github.com/go-sql-driver/mysql"
"database/sql"
"flag"
"fmt"
"io"
@techwolf359
techwolf359 / gist:35d7e2843b260efbfefe
Created February 6, 2015 05:23
Patch to mylvmbackup send tar+compressed files to remote server via SSH
-- /usr/bin/mylvmbackup 2014-02-22 21:09:48.000000000 +0000
+++ /home/jtinley/mylvmbackup 2015-02-06 04:50:30.000000000 +0000
@@ -106,6 +106,7 @@
my $use_thin_snapshots;
my $zbackup;
my $zbackuparg;
+my ($ssh,$ssharg,$sshuser,$sshhost);
# Load defaults into variables
load_defaults();