dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

ncp (271B)


      1 #!/bin/sh
      2 
      3 # Copies the given file over a server.
      4 # 0x0.st is used for copying.
      5 # WARNING: Don't use this for sensitive files.
      6 if [ $# -ne 1 ]; then
      7 	printf "Usage: %s <file_to_upload>\n" "$0"
      8 	exit 1
      9 fi
     10 file_to_upload="$1"
     11 curl -F "file=@$file_to_upload" https://0x0.st