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
git config --global credential.helper cache
This is essentially a bookmark post. Many awesome people out there create wonderful visualizations, often about sorting; and they are very pleasing to stare at. This is from a redditor, morolin: This famous one is from Timo Bingmann, a doctoral student at Karlsruhe Institute of Technology:
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
It is easy to use Node.js on a CentOS VM running on Azure, or any other linux VM on Azure. You can simply yum (with EPEL) install Node.js. Then an easy way to check if everything is working fine, a good idea is to test running a server from node. I am using this simple … Continue reading Node.js server on Azure
I'm using a Centos 7.1 on Azure. Node.js is not there in default repo for CentOS via yum. But you can get it using EPEL. After you install EPEL you can get nodejs. And don't forget npm!
Cygwin officially gives a vague answer about where there is a command-line installer for it or not. A quick search gave two options: cyg-apt (last updated in 2009) and apt-cyg (currently maintained). I'd try apt-cyg. And you are all set. If you do not have wget, install it. Cheers!
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
Set NODE_PATH to %USERPROFILE%\AppData\Roaming\npm\node_modules
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
SOPA in the US might affect internet all over the world, even my this blog. So I also share the voice... "stop SOPA". if you are wondering, remember most of the web-services we use are either US based or hosted on a server in US, so US acts affect us all. Even for my this … Continue reading SOPA protest