How to add publickey to Unix SSH when VNC like console lacks of copy/paste functionality
1. Copy Your publickey to a file and add it to some webpage (for ex. pubkey.txt and added to tomain example.com)
2. Log on to console as user needed
3. Get remote file to under Your account:
curl 'https://example.com/pubkey.txt' > tempfile
4. Add it to authorized_keys file:
cat tempfile >> .ssh/authorized_keys
Snippet for replacing certain code within PHP code Good snippet for when You have to revalidate page on every load (sportnews etc.)