Skip to content

Instantly share code, notes, and snippets.

View tylerkerr's full-sized avatar

Tyler Kerr tylerkerr

View GitHub Profile

dhal tarka

ingredients

  • 2 cups green lentils - the big kind (split pea sized)
  • 1 large onion
  • 6 cloves garlic
  • a little ginger (2 tsp when grated)
  • a couple small fresh hot peppers, or cayenne pepper powder
  • brown sugar, 2 pinches

1v1

  • last refuge
  • nomad isles
  • concealed hill
  • northern isles
  • amazonia
  • dalaran
  • swamped temple
  • turtle rock
ngol -- Gold Mine
ntav -- Tavern
ngme -- Goblin Merchant
ngad -- Goblin Laboratory
nmrk -- Marketplace
nfoh -- Fountain of Health
nmoo -- Fountain of Mana
nwgt -- Way Gate
nshp -- Goblin Shipyard
@tylerkerr
tylerkerr / tft-map-list.md
Created January 24, 2020 03:58
Non-dupe TFT melee maps (no non-LV maps where LV exists, no ROC w3ms, no scenarios) included with War3 version 1.32.0.6 (Reforged beta build 6103)
(2)Amazonia.w3x
(2)AncientIsles.w3x
(2)BanditRidge.w3x
(2)Circumvention.w3x
(2)ConcealedHill.w3x
(2)Dalaran.w3x
(2)EchoIsles.w3x
(2)GlacialThaw.w3x
(2)Justice.w3x

1v1

  • last refuge
  • nomad isles
  • concealed hill
  • northern isles
  • amazonia
  • dalaran
  • swamped temple
  • turtle rock
@tylerkerr
tylerkerr / hibp.py
Created January 22, 2019 15:21
check haveibeenpwned's API for passwords
#!/usr/bin/env python3
import hashlib
from getpass import getpass
from requests import get
'''troy hunt runs haveibeenpwned.com. he collects huge dumps of breached passwords,
and has made them available. you can download the entire dump of hashes (annoying),
or you can query his API directly. doing this on his website involves typing in the
actual candidate password you want to check and assuming nothing untoward happens.
function battime()
{
minutes=$(/usr/sbin/ioreg -r -n AppleSmartBattery | grep InstantTimeToEmpty | \grep -Eo "\d+")
hours=$(echo "$minutes / 60" | bc)
remainder=$(echo "$minutes - (60 * $hours)" | bc)
echo "[+] battery time remaining : ${hours}h ${remainder}m"
}

Lentils My Wife

Ingredients

  • 2 cups red lentils
  • 4 cups water
  • 1.5 veggie bouillon cubes
  • 1.5 cups chopped sauteed onion
  • 1 tablespoon butter
  • 2 tablespoons yellow curry powder
  • 0.5 tablespoon dried hot pepper flakes
@tylerkerr
tylerkerr / print.c
Created February 15, 2018 18:04
normal printing to stdout
#include <stdlib.h>
int main(void)
{
char toprint[56] = "python -c 'import os; os.system(\"echo $(printf howdy)\")'";
system(toprint);
}