Skip to content

Instantly share code, notes, and snippets.

View timoha's full-sized avatar

Andrey Elenskiy timoha

View GitHub Profile
@timoha
timoha / crypt-ipfs.sh
Created December 10, 2018 00:12
Script that uses public/private keys to exchange files on ipfs securely
#!/bin/bash
set -e
keystore="~/.ipfs/crypt"
privkey="${keystore}/id_rsa"
pubkey="${privkey}.pub"
mkdir -p "${keystore}"
sub_genkey() {
@timoha
timoha / GetMetaRow.java
Created May 16, 2017 22:53
Get with closest_row_before on "hbase:meta" can return empty Cell during region merge/split. This gist reproduces the problem.
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HConstants;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.Connection;
import org.apache.hadoop.hbase.client.Admin;
import org.apache.hadoop.hbase.client.Get;
import org.apache.hadoop.hbase.client.Put;