This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lombok.extern.slf4j.Slf4j; | |
import org.reactivestreams.Subscription; | |
import reactor.core.CoreSubscriber; | |
import reactor.core.Disposable; | |
import reactor.core.scheduler.Scheduler; | |
import java.time.Duration; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.BlockingQueue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function contains { | |
echo -n "$1" 2> /dev/null | grep --color=auto "$2" &> /dev/null; | |
return $? | |
} | |
function git_status { | |
status=$(git status 2>&1 | tee) | |
contains "$status" 'modified:' \ | |
|| contains "$status" 'Untracked files' \ | |
|| contains "$status" 'Your branch is ahead of' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change prefix to Ctrl+Space | |
unbind C-b | |
set -g prefix C-Space | |
bind C-Space send-prefix | |
# Reload on r | |
bind r source-file ~/.tmux.conf | |
# Panes and windows | |
unbind '"' # split window horizontally |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup LuaRocks Lua path | |
eval $(luarocks path) | |
# Get LuaRocks Lua version | |
LUA_VERSION=$([[ "$LUA_PATH" =~ /lua/([0-9]\.[0-9]) ]] && echo ${BASH_REMATCH[1]}) | |
# Include project local tree in Lua path | |
# Remember to run 'luarocks --tree .luarocks' | |
LUA_TREE='.luarocks' | |
LUA_PATH="./$LUA_TREE/share/lua/$LUA_VERSION/?.lua;./$LUA_TREE/share/lua/$LUA_VERSION/?/init.lua;$LUA_PATH" |