23 Jun 2013

Using git on a shared hosting

As most of the shared hosting companies out there mine doesn’t grants you root access, that’s ok, but it does gives you SSH access using a weird control panel where you need to enter you current IP and then they let you in. Said that I wanted to use git on that server, to then simply do a git pull origin staging and get all the fancy thing I’m working on to the stating server.

To do so we need:

  1. SSH access
  2. Git installed (without root access compiling one won’t be easy/feasible)
  3. A published repo. I’ve done it with Github and Bitbucket’s

Too easy to be true

First attempt:

git clone https://github.com/[REPO_URL]
error: error setting certificate verify locations:
  CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
 while accessing https://github.com/[REPO_URL]

As you can see this is simple chiming you don’t have any certificates or you don’t have access to the path specified, at this point you may want to get in touch with your hosting support guy… or you can disable the check for SSL certificates, after all you are accessing a ‘public’ repo for read-only proposes.

The DIY way

Need to grab the https address of the repo to clone and then on the server do the following:

git init
git remote add origin https://github.com/[REPO_URL]
git config --local -l #You should see the repo url here
git config --add http.sslVerify false
git pull origin master

That worked for me and I hope it saves you some time.

Read More

20 Jun 2013

Making a simple web data monitor with Arduino + NodeJs

The idea behind this project was to have some almost-real-time website information available at glance on of my desk in a sort of a really simplified dashboard. At it turned out pretty straight forward using NodeJs to fetch the website and do all the data parsing needed and then sending the data thru USB to an Arduino board with a LCD shield on it.

Read More

17 Jun 2013

Hello Jekyll

Hey, this is my first post on this site, my new blog. The last one, well… was kind of abandoned but that’s history. Now I’m writing on my brand new shining jekyll powered static blog, and it’s hosted on Github so that makes it double special. Yay!!

Read More