Skip to content

Instantly share code, notes, and snippets.

@hapr05
hapr05 / Bitcoincoid.5m.sh
Last active January 8, 2018 11:05
Bitcoin.co.id spot market prices plugin for bitbar
#!/bin/bash
# <bitbar.title>Bitcoin.co.id Spot Market Prices</bitbar.title>
# <bitbar.version>v1.0</bitbar.version>
# <bitbar.author>Hari Prasetyo</bitbar.author>
# <bitbar.author.github>hapr05</bitbar.author.github>
# <bitbar.desc>Display the spot IDR prices of cryptocurrencies from bitcoin.co.id</bitbar.desc>
# <bitbar.image>https://i.imgur.com/4uhAq0p.png</bitbar.image>
# Based on the Cryptocurrency Prices plugin by viiraj
@hapr05
hapr05 / grabreceiptpromousage.gs
Last active January 9, 2018 14:59
Grab promo usage report script
//inspired by https://gist.github.com/oshliaer/70e04a67f1f5fd96a708
var SHEET_ID = 'YOUR_SHEET_ID';
var CREDIT_LIMIT = 500000; //YOUR GRAB LIMIT
var WARNING_THRESHOLD = 50000; //Will send warning email if credit balance is less than this threshold
var email = Session.getEffectiveUser().getEmail();
// auto detect current period
var curDate = new Date();
// if date > cutoff date (25) after_date's month is current month, else previous month