Disqus + GitHub pages

Today I was trying to add a comment section in one of my GitHub pages site. Turns out it is very easy. All you have to do is sign up a disqus account and head here. Then add the following text in _layouts/default.html: https://gist.github.com/nafSadh/75a614b5b7583f1650e528a6bbd880a0 Use the following front material on the page you want the … Continue reading Disqus + GitHub pages

Running Node.js app as a service forever

When you start a Node.js server simply using node app.js, the server stops as soon as the shell session is killed. But if you want to keep you server running, as a server would naturally should, you need some way to keep the server proc alive. Forever is seemingly a popular choice for running a … Continue reading Running Node.js app as a service forever

(Failed attempt to) Set up Flow (Static typechecker for JS) on Windows 8.1

Flow is not officially supported on Windows. So I'm trying to set it up on my machine. Flow uses OCaml; it is easy to get OCaml on Windows with Cygwin. Even the Cygwin setup has option to select OCaml. First git clone flow from their source: https://github.com/facebook/flow using Failed with error: 'i686-w64-mingw32-gcc' is not recognized … Continue reading (Failed attempt to) Set up Flow (Static typechecker for JS) on Windows 8.1

git push heroku master; server sent publickey

Recently I have been having some trouble with heroku git push from my Windows PC. Whenever I run, I an stung with this message: PuTTY Fatal Error No supported authentication methods available (server sent: publickey) I have tried several things like adding keys with heroku keys:add etc. Finally, following helped: Apparently, meta about remote was … Continue reading git push heroku master; server sent publickey