Skip to content

Instantly share code, notes, and snippets.

Last active Mar 1, 2018
What would you like to do?
Script to upload a file to

How to use neoup script:

  1. copy neoup script to your $PATH, say $HOME/bin
  2. chmod +x neoup
  3. copy .neocities to your $HOME directory
  4. edit .neocities to to have the your NEO_USER and NEO_PASS credentials.

To upload a file, say ~/tmp/ff.html:

neoup ~/tmp/ff.html
fname=$(basename $1)
. ~/.neocities
curl -F $fname=@$1 https://$NEO_USER:$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment