Category: Programing

Port Test Tool

Port Test Tool

For all sysadmins / Network guys  who are sick and tired of testing connectivity between servers with telenet client here is the first public release of my port test tool. it has ability read list of host,ports from a CSV file, test TCP and UDP ports and output the results to a CSV file too. As…

Read More Read More

Demonstration of Reverse OpenSSL Reverse Heart Bleed Bug CVE-2014-0160

Demonstration of Reverse OpenSSL Reverse Heart Bleed Bug CVE-2014-0160

Heart Bleed is turning out to be one of the worst bugs to hit web. While sys admins every where have been rushing to fix the web facing servers. Worst of it was thought to be mitigated by patching the servers and loadbalancers that terminated the SSL connections. It has now been demonstrated that clients that…

Read More Read More

IGMH mobile/web app open for testing/usage

IGMH mobile/web app open for testing/usage

It was one of those rare quiet morning in office (touch wood) when Naail @kudanai (http://www.kudanai.com/) pinged me about a interesting problem he had. He asked me for suggestion on scraping IGMH doctors duty roster from this ancient looking aspx page. At the time he had google app engine app and  He was attempting at the time to use YQL to…

Read More Read More

How to list cron jobs of all the users

How to list cron jobs of all the users

while I was doing some server maintenance for a customer last night it required that i find out what cron jobs were in the cron tabs of all the users  on the machine. I found this handy script that will list out all the cron jobs for all the users [sourcecode language=’sh’] #!/bin/bash for user in…

Read More Read More

Reddit URL Harvester

Reddit URL Harvester

I was browsing Reddit and I stumbled  upon a small sub-reddit at /r/Earthporn this small conner of Reddit had higres pictures of earth scenery.  From there i was directed to  /r/CityPorn, /r/SpacePorn , /r/MachinePorn, /r/AnimalPorn and /r/BotanicalPorn all HD pic. This got me thinking since i am lazy as fuck i did not want to spend every day going…

Read More Read More

Printing 1 to 1000 without loop or conditionals

Printing 1 to 1000 without loop or conditionals

Print numbers from 1 to 1000 without using any loop or conditional statements. #include <iostream> template<int N> struct NumberGeneration{   static void out(std::ostream& os)   {     NumberGeneration<N-1>::out(os);     os << N << std::endl;   } }; template<> struct NumberGeneration<1>{   static void out(std::ostream& os)   {     os << 1 <<…

Read More Read More