Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bruceliator on github.
  • I am bruceliator (https://keybase.io/bruceliator) on keybase.
  • I have a public key ASDIGnjpHplcAwWycOQOVrvdfCXxlg1W0jgPQulmyBx7DQo

To claim this, I am signing this object:

@bruceliator
bruceliator / gist:a684212f169b9c883ba95a555ff7dcd9
Created April 2, 2019 08:20 — forked from nateberkopec/gist:5716233
round the world in seven whiskeys

round the world in seven whiskeys, if youve drank these seven you'll have an idea of what whiskeys can do. i've deliberately picked "extreme flavored" scotches rather than necessarily "good" ones, to ensure the maximum flavor range possible. there are better islays, speysides, ryes, etc, but my intention is to show the wide flavor of high end whiskies.

  1. islay - Laphroaig Triple Wood or Laphroaig cask strength
  2. speyside - glenlivet, glenfiddich, highland park, or macallan, aim for 15 year or above.
  3. wooded - Balvenie Caribbean Cask 14 year, or any scotch with wood in the name.
  4. rye - no good recommendation here, but try one.
  5. bourbon - heavily aged. Jefferson Select 18 year is avaiable in high-end bars in NYC.
  6. sherried - Bruichladdich Black Art or any of the Macallan sherries
  7. corn - essentially "double bourbon". not a lot of high end stuff, but try Hudson.
@bruceliator
bruceliator / .bashrc
Created October 11, 2016 09:02
colorized git ps1
#...
__git_color_ps1 ()
{
if [ -n "$(__git_ps1)" ]; then
local IS_CLEAN=`git status | grep -c "working directory clean"`;
if [ $IS_CLEAN -eq 0 ]; then
echo -e "\e[1;31m"
else
echo -e "\e[1;37m"
fi
@bruceliator
bruceliator / gist:f35f0e0ffc8d75b12121
Created September 29, 2015 09:22
Fix elastic problems
NODE="Glob" //Its the name of your node http://localhost:9200/_nodes
IFS=$'\n'
for line in $(curl -s 'localhost:9200/_cat/shards' | fgrep UNASSIGNED); do
INDEX=$(echo $line | (awk '{print $1}'))
SHARD=$(echo $line | (awk '{print $2}'))
curl -XPOST 'localhost:9200/_cluster/reroute' -d '{
"commands": [
{
"allocate": {