Https access with cURL from localserver

When using cURL to access Oauth2 enabled sites, you may have run into a common error:

curl_error SSL certificate problem: unable to get local issuer certificate, curl_errno 60

The Oauth standard requires you to provide https callback URLs, so you typically setup a self-signed certificate using a library like  OpenSSL. A quick way to avoid this error is to tell cURL to avoid verifying SSL authenticity using the following options:

// Initialize session and set URL.
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $URL);

// Tells curl not to bother with SSL Verification
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
// Get the response and close the channel.
$response = curl_exec($curl);

Similar Article

Untracking a File in Git

So I looked around the web for quite some time trying to figure out the best way to stop committing a file that has been tracked in the past. For example, you have done a

git add <path-to-your-file>

Then to reverse the effect of committing <path-to-your-file> every time, you can run:

git update-index --assume-unchanged <path-to-your-file>

In essence, this flag keeps git from applying the changes on <path-to-your-file>  every time you commit the file.

WordPress Tips

I am new to WordPress, but I quickly discovered why so many people use this platform for their blogs/websites. It is very easy to get started with if you want to quickly publish content online. Once you have played around for a little while inside the platform, you’ll want to learn the basics of plugins and how they work.

wordPress   .

Article Columns 
Here’s a good example of a layout you can accomplish inside WordPress without the need to know anything about HTML markup. The plugin I use here allows you to make newspaper style columns on your posts which in turn makes your content look more appealing.

Why Clean Script?

So, you may be asking yourself: what’s with the name “clean script” or what does it mean?And why the obsession with the color green?



Well let me explain…


We strive to write code/software that:

  • is highly pluggable
  • has a small learning curve
  • is well documented

Java Software Stack

Here is a list of some tools I found interesting to help write Java (full stack) applications:

  • Scalatra: a micro web-framework that is very easy to implement
  • Groovya dynamic language for the JVM that has a very small learning curve