Skip to content

Instantly share code, notes, and snippets.

View acklavidian's full-sized avatar

Eddie Stanley acklavidian

  • Brooklyn, New York
View GitHub Profile
@acklavidian
acklavidian / olkb.12h.sh
Created June 11, 2019 14:26
Bitbar Script for tracking OLKB
#!/usr/bin/env bash
order_number=100001111
orders=$(curl -s https://orders.olkb.com | grep -E '10000\d{4}')
order_count=$(echo "$orders" | wc -l)
order_line=$(echo "$orders" | grep -n $order_number)
order_position=$(echo "$order_line" | grep -o '^\d*')
echo olkb:$order_position
echo '---'
echo total:$order_count
echo "Order#:$order_number"
@acklavidian
acklavidian / olkb.12h.sh
Created June 11, 2019 14:26
Bitbar Script for tracking OLKB order...
#!/usr/bin/env bash
order_number=100001111
orders=$(curl -s https://orders.olkb.com | grep -E '10000\d{4}')
order_count=$(echo "$orders" | wc -l)
order_line=$(echo "$orders" | grep -n $order_number)
order_position=$(echo "$order_line" | grep -o '^\d*')
echo olkb:$order_position
echo '---'
echo total:$order_count
echo "Order#:$order_number"