share
github-auth3
share | github-auth3 | |
---|---|---|
1 | 1 | |
114 | 12 | |
- | - | |
0.0 | 0.0 | |
about 1 year ago | over 1 year ago | |
Go | Go | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
share
-
X0.at: upload files from cURL (free)
I'll tack on mine as well, which you can self-host: https://github.com/schollz/share
Also there is a cute alias you can do to easily 'share' files:
alias share='f() { curl --progress-bar --upload-file "$1" https://share.schollz.com | tee /dev/null; echo };f'
github-auth3
-
X0.at: upload files from cURL (free)
This is incompatible with using curl as your client, but one “hacker-friendly way to do auth” is to use Github’s public SSH keys API.
You can stand up an (SCP/SFTP-subprotocol-only) SSH server, and then configure it to call[1] a check on GitHub’s API to map the user’s SSH key to a GitHub username.
From there, you can do whatever you like to continue the auth process: let any GitHub user in; only let GitHub users in from a specific GitHub org; keep an LDAP directory of GitHub usernames such that you can attach metadata to them like “is banned” or “has used up their upload credits for the day” or “is on plan tier X”; etc.
Then, set up automatic local user instantiation per remote user; populate /etc/skel with just the right set of limited files to allow the user to upload into one “spool” directory; and then have an inotify-like daemon that watches for files to be closed in that directory and handles them from there (e.g. uploading them to an S3 bucket, etc.)
[1] As it happens, I wrote an OpenSSHD plugin for exactly this: https://github.com/tsutsu/github-auth3
What are some alternatives?
0x0 - No-bullshit file hosting and URL shortening service. Mirror of https://git.0x0.st/mia/0x0
PictShare - :camera: PictShare is an open source image, mp4, pastebin hosting service with a simple resizing and upload API that you can host yourself. :rice_scene:
curldrop - :arrow_double_up: web app for for easy file uploads via curl