Tag Archives: ruby

Default Route Ping and Failover Script [Solaris/Ruby]

Wrote this for my squid boxes. They’re built with lots of redundancy – I can fail over to a different NIC/IP address in the event of a connectivity failure. Written and tested on Solaris, runs as a Ruby daemon. #!/usr/local/bin/ruby … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Oracle Database Create Script, In Ruby

You can find this script anywhere written in bash. I decided to bang one out in Ruby. Most importantly, it’ll show a way to invoke sqlplus and pass in SQL as an argument. sid.conf ############################################################################################### $oracle_version="11.1.0"   $sid="orcl"   $oracle_base="/oracle/apps/oracle/oracle" … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Very Basic REST and the Google Provisioning API In Ruby

In this post, I’m walking the user through an app that talks to Google via their Provisioning API. I’ll be talking about the following: – Ruby/Rails – HTTP Basic Authorization – REST – Google GData and Google Provisioning API This … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment