picosh / pico

services that empower developers using ssh
https://pico.sh
MIT License
803 stars 27 forks source link

pico.sh - hacker labs

[!IMPORTANT]\ Read our docs at pico.sh.

Open source and managed web services leveraging SSH.

The secret ingredient to all our services is how we let users publish content without needing to install anything. We accomplish this with the SSH tools you already have installed on your system.

Want to publish a blog post? Use rsync, scp, or sftp. Want to publish a website? Use rsync, scp, or sftp. Want to share a code snippet with a colleague? Use rsync, scp, or sftp. Hopefully you see the trend.

Deploy a site with a single command

Upload your static site to us:

rsync -rv ./public/ pgs.sh:/mysite/

Now your site is available with TLS handled for you: https://{user}-mysite.pgs.sh We also automatically handle TLS for your custom domains!

Access localhost using https

if you have a local webserver on localhost:8000, activate an SSH tunnel to us:

ssh -R dev:80:localhost:8000 tuns.sh

Now your local dev server is availble on the web: https://dev.tuns.sh

Authenticated *nix pipes over ssh

Have one terminal listen for an event and another terminal send the event:

# term 1
ssh pipe.pico.sh sub mytopic
# term 2
echo "Hello world!" | ssh pipe.pico.sh pub mytopic

The sub will receive "Hello world!"

Publish blog articles with a single command

Create your first post, (e.g. hello-world.md):

# hello world!

This is my first blog post.

Cya!

Upload the post to us:

scp hello-world.md prose.sh:/

Congrats! You just published a blog article, accessible here: https://{user}.prose.sh/hello-world

Easily share code snippets

Pipe some stdout to us:

git diff | ssh pastes.sh changes.patch

And instantly share your code snippets: https://{user}.pastes.sh/changes.patch

Receive email notifications for your favorite rss feeds

Create a blogs.txt file:

=: email rss@myemail.com
=: digest_interval 1day
=> https://pico.prose.sh/rss
=> https://erock.prose.sh/rss

Then upload it to us:

scp blogs.txt feeds.pico.sh:/

After the daily interval has been reached, you will receive an email with your feeds!

Ready to join?

https://pico.sh/getting-started