I recently had the need to upload some backup files in a cron job to an ownCloud server via bash. Since I couldn’t find any good solutions to do that on the web, I crafted my own script which I open sourced on GitHub:
Mella – ownCloud upload via WebDAV using curl
Questions, comments and pull-requests are very welcome.
I’ve recently formalized the hosting packages of my company 42dev.
If you are ever in need of professional website– or domain hosting, want to set up some email accounts or need a fully managed server, customized for your application or service, I’d be thrilled to talk to you.
Just head over to my contact page and tell me about your requirements.
My configuration for bash, vim, git, tmux and a few other tools can be found on GitHub now.
I have spent a considerable amount of time to get them working on OS X and Linux.
(Tested on Mac OS X Yosemite 10.10.3 and Debian 7.8 – YMMV!)
I am frequently connecting to several servers over SSH at once and like to use tmux to organize those different sessions. To be able to keep track which pane is which server I am using the following function in my
.bashrc file to display the machine name in tmux’s pane title.
Today two of my servers went down. It turned out, that the datacenter they are hosted in had a slight connectivity hiccup – nothing serious. While I was battling my monitoring system and frantically typed support tickets, I wanted an audible alert if the hosts where reachable again in the meantime.
That’s when I thought of OS X’s text to speech system and devised the following little shell script.
It will announce that the host is back up with your configured standard voice as soon as there is a ping response and then quit. Just copy it in your
.bashrc file call it with the desired hostname or IP address, leave it running in a Terminal window in the background and turn up your speakers.