Skip to content

Instantly share code, notes, and snippets.

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

Kennedy Oliveira kennedyoliveira

🏠
Working from home
View GitHub Profile
@kennedyoliveira
kennedyoliveira / .tmux.conf
Last active February 4, 2024 21:07
My Tmux custom configuration
# Before anything tpm needs to be installed, install with this command:
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# After the tmp is installed reload tmux with ctrl + R or tmux source ~/.tmux.conf
# Then install the plugins via Ctrl + Shift + S
# install navi widget
bind-key -T prefix C-g split-window "$SHELL --login -i -c 'navi --print | head -n 1 | tmux load-buffer -b tmp - ; tmux paste-buffer -p -t {last} -b tmp -d'"
# allow mouse scroll
@kennedyoliveira
kennedyoliveira / CircuitBreakerMetrics.groovy
Created April 10, 2017 15:15
Example showing difference in metrics for vertx-circuit-breaker and hystrix
import com.github.kennedyoliveira.hystrix.contrib.vertx.metricsstream.EventMetricsStreamHandler
import com.netflix.hystrix.HystrixCommandGroupKey
import com.netflix.hystrix.HystrixObservableCommand
import io.vertx.circuitbreaker.CircuitBreaker
import io.vertx.circuitbreaker.HystrixMetricHandler
import io.vertx.core.AbstractVerticle
import io.vertx.core.Future
import io.vertx.core.Vertx
import io.vertx.ext.web.Router
import rx.Observable