Archive for linux

stunnel for mysql – server and client

We needed to set up an stunnel to the mysql server (mysql.example.com), so that the client (client.example.com) and the server can communicate over an encrypted tunnel.

Read the rest of this entry »

Comments

renaming multiple files (bash)

I had to rename many .phtml files, so that their extension will change to .php. This does the trick:


for i in *.phtml; do mv $i ${i%.phtml}.php; done

Comments