Skip to content

Instantly share code, notes, and snippets.

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

Oleksandr Kuzminskyi akuzminsky

🏠
Working from home
View GitHub Profile
#!/usr/bin/env bpftrace
struct st_com_query_data
{
const char *query;
unsigned int length;
};
uprobe:/usr/sbin/mysqld:_Z26threadpool_process_requestP3THD
{
#!/usr/bin/env bpftrace
struct st_com_query_data
{
const char *query;
unsigned int length;
};
uprobe:/usr/sbin/mysqld:dispatch_command
/ arg2 == 3 /
#!/usr/bin/env bash
set -eu
issue=`date +%F-%H-%M-%S`-`hostname`
mailto=aleksandr.kuzminsky@gmail.com
log_size_mb=100 # Maximum log size in megabytes
max_run_time=1 # Maximum running time in hours
collect_slow_log='YES'
collect_general_log='NO'
@akuzminsky
akuzminsky / keybase.md
Created May 25, 2017 15:59
keybase.io

Keybase proof

I hereby claim:

  • I am akuzminsky on github.
  • I am akuzminsky (https://keybase.io/akuzminsky) on keybase.
  • I have a public key ASBZt5Ag0oNQ_UwbT3z2NjtZqttthu2JiYE_SDtJvVBnogo

To claim this, I am signing this object: