Skip to content

Instantly share code, notes, and snippets.

View ndenev's full-sized avatar

Nikolay Denev ndenev

  • Cisco, Inc.
  • Austin, TX
  • 07:29 (UTC -05:00)
View GitHub Profile
@ndenev
ndenev / keybase.md
Created September 19, 2017 12:32
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@ndenev
ndenev / ffi-test.rs
Created June 21, 2017 17:23
rust ffi test
use std::ffi::{CString, CStr};
fn test1() {
let i = String::from("test_string1");
let r = CString::new(i).unwrap().as_bytes_with_nul().as_ptr();
let s = unsafe {
CStr::from_ptr(r as *const i8).to_string_lossy().into_owned()
};
println!("TEST1: {}", s);
}
@ndenev
ndenev / m1-2-prod-mysql-sigsegv.txt
Created April 30, 2017 16:45
30-Apr-2017-m1-2-mysql-crash
16:00:23 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
Please help us make Percona XtraDB Cluster better by reporting any
bugs at https://bugs.launchpad.net/percona-xtradb-cluster
@ndenev
ndenev / go-tftpd.go
Created March 28, 2017 16:44
GoTftpd + Shoelaces = <3
package main
import (
"errors"
"fmt"
"io"
"log"
"os"
"time"
@ndenev
ndenev / crb.py
Created October 10, 2015 09:42
cerberus deep dependencies
#!/opt/local/bin/python2.7
from __future__ import print_function
import yaml
import cerberus
SCHEMA = '''
document:
type: list
#!/opt/local/bin/python
#
# Autogenerate Nsnitro exception classes from NITRO API Docs.
# Author: ndenev@amazon.com January, 2014
#
# Requires: BeautifulSoup for the html parsing
#
from collections import OrderedDict
import argparse