Skip to content

Instantly share code, notes, and snippets.

{
"irrelavant-property": {
"url": "example.com"
},
"irrelavant-property-2": {
"type": "int"
},
"my-channels": [
{
"locale": "de_DE",

Keybase proof

I hereby claim:

  • I am gregsen on github.
  • I am gregsen (https://keybase.io/gregsen) on keybase.
  • I have a public key whose fingerprint is 6A16 95B3 4A72 1F30 82DC C08D 9A86 987E D42F BD7D

To claim this, I am signing this object:

@Gregsen
Gregsen / dialog_progressbar.sh
Created December 6, 2013 11:40
A nice progressbar for downloads using wget and Dialog.
#!/bin/bash
# heavily inspired by http://fitnr.com/showing-file-download-progress-using-wget.html
URL=<YOUR DOWNLOAD URL>
wget --progress=dot "$URL" 2>&1 |\
grep "%" |\
sed -u -e "s,\.,,g" | awk '{print $2}' | sed -u -e "s,\%,,g" | dialog --gauge "Download Test" 10 100