Hacker News new | ask | show | jobs
by utopiah 47 days ago
PS : echo "blabla" > index.html is actually becoming my new World reaching publishing method. I do have a home server with a Web server. I connect to it via ssh keys... so

ssh homeserver 'echo hi >> /var/www/self-published/index.html' and voila. I'll probably share my gist this way from the CLI.

ssh homeserver "echo '$(ls)' >> /var/www/self-published/index.html" if I want to run a command locally first, not on homeserver (notice the " vs ').

1 comments

Bonus : ssh homeserver -t 'vi /var/www/self-published/index.html' for manual adjustments.