Skip to content

Instantly share code, notes, and snippets.

View Cr4ck3r's full-sized avatar

Cr4ck3r Cr4ck3r

  • uuuuuuuuhhh
  • Barrow Alaska
View GitHub Profile
@Cr4ck3r
Cr4ck3r / kscow.sh
Last active May 28, 2016 00:06 — forked from lrvick/kscow.sh
Cow contemplating the current total pledged value of a given Kickstarter.
#!/bin/bash
api_url='https://www.kickstarter.com/projects/597507018/pebble-2-time-2-and-core-an-entirely-new-3g-ultra/stats.json'
while sleep 1; do
ks_json=$(curl $api_url -s)
[ $? -ne 0 ] && continue
old_total=$total
total=$(echo $ks_json | jq -r '.project.pledged')
[[ "$total" == "$old_total" ]] && continue