# # Licensed under the GPL-3 License # # Author: Mohamed Mustapha Tahrioui aka. ransomware aka. 4thel00z (4thel00z@gmail.com) # # The intention of this software is to provide a script to upload encrypted data to gist for myself # and others who are interested in using my software non-commercially or commercialy. # # The requirements for this script are : # - base64 # - curl # - gpg # - hub -> https://github.com/github/hub # - env # #! /usr/bin/zsh set -x which hub if [ $! -nq 0 ]; then failure=$! echo "You need to install hub!" >&2 return $failure fi if [ $# -eq 3 ] then cat $1 | gpg --encrypt -r $2 | base64 | env GITHUB_TOKEN=$3 hub gist create else cat $1 | gpg --encrypt -r $2 | base64 | hub gist create fi