The bunny theory of code

An interesting article that someone at work posted. I thought I would share it here. I truely agree with what the author said. Detect it early and resolve it early before it gets messed up!

Anyone who’s ever worked with me knows that I place a very high value on what ends up checked-in to a source code repository. The reason for this is very simple: once code gets checked-in, it takes on a life of its own. Checking in is akin to sharing your code with others, and once out in the world, it’s hard to predict what that code will do. Hard, but not impossible, as there is one thing I can virtually guarantee will happen.

Read more at The bunny theory of code | NCZOnline.

How to Enable EPEL Repository for RHEL/CentOS

EPEL (Extra Packages for Enterprise Linux) is a Fedora Special Interest Group that creates, maintains and manages a high quality set of additional packages for Enterprise Linux, including but not limited to Red Hat Enterprise Linux (RHEL), CentOS and Scietific Linux (SL), Oracle Enterprise Linux(OEL).”
Fedora EPEL wiki page

Why use EPEL repository?

  • Easily install lots of open source packages via Yum
  • Maintained by Fedora

Enabling EPEL Repository in RHEL/Centos
Read More

Reliably copy files from a folder

A simple bash script that uses rsync to copy files from a folder. The advantage of this script is when you have a brief network timeout or connection issue, it will still resume until MAX_RESTARTS is exhausted.

Log viewer

A simple log viewer which will be used in conjuction with sudo command to allow users with limited priviledges to view/read log files.

Twitter OAuth API package via Composer

I had been wanting to implement twitter’s follower count, statuses count on my website. Being a bit more familiar with composer, I went through and created a packagist which is avaiable via composer to be used on any site.

The packagist is rather simple at the moment and allows only getting User Info at the moment but will be adding more features to it later on.

If you are using composer, all you have to do is add the following to the require section of your composer.json file.

"rabinshr/php-twitter-oauth-api": "dev-master"

Twitter counts

Showing follower count, friend count, status count in Twitter


Read More

Happy Nepali New Year 2071

Today is the 1st day of the year 2071, yes 2071. Its Nepali new year. Nepal follows a different calendar than Gregorian calendar. The number of days in a month are also not predetermined meaning they keep changing every year unlike the Gregorian calendar.

One of the fun times I have is when I am showing paper with my Nepali date of birth. Everyone seems to think I am from future :D

Once again,

Happy New Year 2071!!