CloudFiles curl example

CloudFiles curl example
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...
read more

monitoring url’s using ruby

monitoring url’s using ruby
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...
read more

clipboard hacks – social copypasta

clipboard hacks – social copypasta
Have you ever had someone post you a code snippet, error, log data or some other type of long formatted text via an instant message or otherwise? It usually comes out all jacked up, formatting is off and its hard to read. If you have experienced this and find it annoying, then this script may be what you are looking for. Pastebin is a great alternative, however if you need privacy or security of the data you are sending is a concern, then that is not the best option. So what does it do? Its pretty simple really. You highlight text, hit your hot key and paste a link that’s hidden away from the...
read more

libcloud Python example – kick.py

libcloud Python example – kick.py
So here is an example python script that you can use to build new CloudServers and then deploy software on them. This particular example is pretty basic and only installs either a LAMP stack or just a simple installation of MySQL. Don’t let the limitations of this particular script fool you into thinking that is all libcloud or python can do because that is not the case. You can do something pretty basic like this one, extend the script to utilize threading which will allow you to deploy multiple instances at a time, or simply have more complex software installations. Before you run the script...
read more

« Previous Entries Next Entries »