Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am igorwwwwwwwwwwwwwwwwwwww on github.
  • I am elasticigorwwwww (https://keybase.io/elasticigorwwwww) on keybase.
  • I have a public key whose fingerprint is D10B 134B A749 E52F DA7F 721E 8EF2 C260 E226 0E0A

To claim this, I am signing this object:

@igorwwwwwwwwwwwwwwwwwwww
igorwwwwwwwwwwwwwwwwwwww / README.md
Created July 2, 2018 17:48
clickhouse-playground

clickhouse-playground

capture logs:

heroku logs --tail -a travis-api-production | grep at=info | gsed -e 's/^\([0-9]*-[0-9]*-[0-9]*\)T\([0-9]*:[0-9]*:[0-9]*\)/date=\1 time="\1 \2" /' | lcut date time method path host request_id fwd dyno connect service status bytes > access.log

boot:

@igorwwwwwwwwwwwwwwwwwwww
igorwwwwwwwwwwwwwwwwwwww / hadoop-streaming.rb
Created April 16, 2018 18:08 — forked from dsingley/hadoop-streaming.rb
Hadoop Streaming API for Ruby
def emit(key, value, sep="\t")
STDOUT.puts('' << key << sep << value)
end
def map(*options)
options = [:split, "\t", 2] if options.empty?
STDIN.each_line do |line|
line.strip!
key, value = line.send(*options)
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
/* Generic hash function (a popular one from Bernstein).
* I tested a few and this was the best. */
uint32_t dictGenHashFunction(const uint8_t *buf, int len) {
uint32_t hash = 5381;
source "https://rubygems.org"
gem "octokit", "~> 4.0"
#!/bin/bash
set -e
acmetool want $(cat /etc/acme-hostname)
nginx -s reload
@igorwwwwwwwwwwwwwwwwwwww
igorwwwwwwwwwwwwwwwwwwww / travis.sh
Created April 15, 2016 10:45
wrapper for the ruby travis client
#!/bin/bash
BUNDLE_GEMFILE=~/code/travis.rb/Gemfile bundle exec ~/code/travis.rb/bin/travis "$@"
@igorwwwwwwwwwwwwwwwwwwww
igorwwwwwwwwwwwwwwwwwwww / docker.sh
Last active April 15, 2016 18:00
custom docker wrapper for osx
#!/bin/bash
if [ "$(docker-machine status)" = "Stopped" ]; then
docker-machine start
fi
eval "$(docker-machine env)"
if ! route -n get 172.17.0.0/16 | grep 'destination: 172.17.0.0' > /dev/null; then
echo "adding route for docker prefix 172.17.0.0/16"
sudo route -n add 172.17.0.0/16 $(docker-machine ip)

Keybase proof

I hereby claim:

  • I am igorwwwwwwwwwwwwwwwwwwww on github.
  • I am igorw (https://keybase.io/igorw) on keybase.
  • I have a public key ASCnDElPW0ByDcMxO3igNMuIsxybisw-QwUOr8r9Qphzjgo

To claim this, I am signing this object:

{
"dependencies": {
"http-proxy": "^1.12.0"
}
}