Skip to content

Instantly share code, notes, and snippets.

@ds0nt
Created July 20, 2015 15:15
Show Gist options
  • Save ds0nt/a30bbc242167fb8f0202 to your computer and use it in GitHub Desktop.
Save ds0nt/a30bbc242167fb8f0202 to your computer and use it in GitHub Desktop.
#!/bin/bash
NAME=$(zenity --entry --text="Gist package name:")
EMBED=$(gist --filename $NAME --paste --embed --copy) || exit
cd /code/scratch/gist/
echo "<div><h4>$NAME</h4>$EMBED</div>" >> index.html;
http-server -p 9090 -o -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment