Skip to content

Instantly share code, notes, and snippets.

@noureddin
noureddin / pgist.sh
Last active March 12, 2019 17:40 — forked from rubo77/create-gist.sh
Post GIST
#!/bin/bash
GITHUB_USERNAME=noureddin # change this to your github username
# or see https://gist.github.com/s-leroux/7cb7424d33ba3753e907cc2553bcd1ba
if [ "$1" == "" ]; then
printf "Usage: %s [--public] filename [gistname]\n" $(basename "$0") >&2
exit 1 # exit with error
fi