Skip to content

Instantly share code, notes, and snippets.

View eahydra's full-sized avatar

Joseph eahydra

View GitHub Profile
package main
import (
"crypto/tls"
"net"
"net/http"
"time"
"fmt"
"errors"
)
diff --git a/runtime-gdb.py b/runtime-gdb.py
index cb70ca0..ac940c3 100644
--- a/runtime-gdb.py
+++ b/runtime-gdb.py
@@ -17,7 +17,7 @@ path to this file based on the path to the runtime package.
import sys, re
-print >>sys.stderr, "Loading Go Runtime support."
+sys.stderr.write("Loading Go Runtime support.\n")
@eahydra
eahydra / benchmark-commands.txt
Created May 8, 2016 08:36 — forked from jkreps/benchmark-commands.txt
Kafka Benchmark Commands
Producer
Setup
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196
@eahydra
eahydra / InstallOCaml.sh
Created October 11, 2017 03:08 — forked from jdh30/InstallOCaml.sh
Script to install and initialize OCaml for microservice development (TCP+HTTP+JSON) on a Linux box
sudo apt-get update
sudo apt-get install make m4 gcc zip aspcud emacs libssl-dev ncurses-dev pkg-config tuareg-mode libffi-dev
wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh -O - | sh -s /usr/local/bin
eval `opam config env`
opam update
opam switch 4.03.0
opam install user-setup
opam install ocamlfind core async async_ssl cohttp yojson ppx_deriving ocp-indent merlin
opam install user-setup
opam user-setup install
@eahydra
eahydra / glibc-2.17_centos6.sh
Created December 1, 2017 18:42 — forked from harv/glibc-2.17_centos6.sh
update glibc to 2.17 for CentOS 6
#! /bin/sh
# update glibc to 2.17 for CentOS 6
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm
sudo rpm -Uvh glibc-2.17-55.el6.x86_64.rpm \
# Make sure you grab the latest version
curl -OL https://github.com/google/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip
# Unzip
unzip protoc-3.2.0-linux-x86_64.zip -d protoc3
# Move protoc to /usr/local/bin/
sudo mv protoc3/bin/* /usr/local/bin/
# Move protoc3/include to /usr/local/include/
@eahydra
eahydra / kubectl.md
Created August 24, 2018 06:28 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@eahydra
eahydra / .gitconfig
Created October 11, 2020 08:46 — forked from Kovrinic/.gitconfig
git global url insteadOf setup
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url "[email protected]:"]
insteadOf = git://github
@eahydra
eahydra / .gitconfig
Created October 11, 2020 08:46 — forked from Kovrinic/.gitconfig
git global url insteadOf setup
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url "[email protected]:"]
insteadOf = git://github