Posted by Tim Galyean in bash, Code
on Sep 26th, 2010
So I figured I would write this article as a response to some questions and feedback I received from my earlier post “CloudFiles curl example” which outline’s some example usage to interact with the CloudFiles public API as well as some example code.
Ryan over at http://www.ryanuber.com/ brought up some interesting questions that I left out in my original post based off of the assumption that the reading audience was already familiar with CloudFiles.
Here are two very important and relevant questions that he asked:
“What kind of output do you get?”
“What kinds of...
Posted by Tim Galyean in bash
on Sep 25th, 2010
I wrote the following script to simplify accessing CloudFiles container’s by utilizing cURL. This example will show you how to list your containers as well as their contents, via the command line without having to login to your control panel. This can also be a useful example to provide you with a sample code base to implement within your own infrastructure.
CloudFiles uses a a “ReST” API which allow’s you to interact with it in a variety of ways by using curl, PHP, Python, and Ruby. This particular script was written in bash so that I could utilize it from a shell, however the...
Posted by Tim Galyean in Code, ruby
on Sep 4th, 2010
While there are plenty of URL monitor’s available to verify if your site is working or not, many of them cost money. I was recently debugging a monitoring issue and found that I needed a simple URL monitor which would return the HTTP response code only, and provide some basic logging as well so that I wouldn’t have to sift through two day’s worth of shell output. Long story short this was a temporary solution and not one that I had any desire to spend money on so I threw together the following script.
I wrote it in ruby because I like its logger library which gives enough options and...