postjson (202B)
1 #!/usr/bin/env bash 2 3 [ -z "$1" ] && printf "usage: %s <url> [curl_opts...] < jsondata\n" $(basename $0) && exit 1 4 5 url="$1" 6 shift 7 8 curl -sL -X POST -H 'Content-Type: application/json' -d @- "$@" "$url"
citadelMy dotfiles, scripts and nix configs | |
git clone git://jb55.com/citadel | |
Log | Files | Refs | README | LICENSE |