Archive for January, 2011

How to SSH to a server using Ruby – Part II

Welcome to Part II of how to SSH to a server using Ruby.  In Part I of this article, we gave you a simple example of how to SSH to a server and run a command. The hostname, username, password, and the command to execute were hardcoded in the example. In this article, we will [...]

Click here to read the full post

How to SSH to a server using Ruby – Part I

Welcome to Part I of how to SSH to a Linux, Windows, etc. server using Ruby. This post will give you a complete code example to get you up and running right away! The code below will connect to the server specific and run the ls -al command. Be sure to change the values in [...]

Click here to read the full post

Amazon.com $20 Gift Cards for only $10!! Today Only!!

Livingsocial is offering an unbelievable deal today, Buy a $20 Amazon.com gift card for only $10!! For those that are unfamiliar, Livingsocial is a daily deal site similar to Groupon. I have purchased deals from them in the past, so they are definitely legit! Don’t miss out on this once-in-a-blue-moon opportunity! Link

Click here to read the full post

Automatically bypass SSL Certificate warning/exception in Firefox

Have you ever gotten those pesky “This connection is untrusted” SSL certificate warnings in Firefox where you have to click on “Add Exception” to bypass the screen? Perhaps, you are trying to do some UI automation using Selenium or Watir and this message is getting in the way. Well, don’t waste anymore time looking for [...]

Click here to read the full post

Free Linux utility to convert PDF to Text file

Are you looking for a fast, easy, and free way to convert a PDF document to a plain-text .txt format? Luckily, there is a built-in program in most Linux distributions that can do this called pdftotext. To convert, simply do: pdftotext -layout filename.pdf filename.txt

Click here to read the full post

How to create a large number of files in Linux (thousands or millions)

Do you need an ultra fast way to create a large number of files in Linux? Perhaps, you are doing some load testing for an application and you need to create 1000 or even 1,000,000 files in the matter of seconds. Well, here is how to do it! There are two parts to creating these [...]

Click here to read the full post

PostgreSQL: How to reset the pg_stat statistics tables?

The Postgres pg_stat tables show a variety of statistical information regarding the database. In certain situations (such as after major updates to your application), you may want to clear out the gathered statistics and start from scratch. For instance, if you recently implemented numerous SQL query and indexing optimizations, and you want to see statistical [...]

Click here to read the full post

PostgreSQL: How to reload config settings without restarting database

If you are making modifications to the Postgres configuration file postgresql.conf (or similar), and you want to new settings to take effect without needing to restart the entire database, there are two ways to accomplish this. Option 1: From the command-line shell su – postgres /usr/bin/pg_ctl reload Option 2: Using SQL SELECT pg_reload_conf(); Using either [...]

Click here to read the full post

Codeigniter 2.0: How to Download & Install

Codeigniter 2.0, has not yet been officially released by Ellis Labs, but for a couple of months now, a stable version has been available to download. Follow these simple steps in order to do so! Visit the Codeigniter bitbucket (source code repository) site at https://bitbucket.org/ellislab/codeigniter/. Hover over the icon and choose .zip You will now [...]

Click here to read the full post