Neelkanth Ram



22 Stories by Neelkanth Ram

Rotate and Compress pm2 logs Elegantly

pm2 logs can grow big overtime. As big as 50GB or more in a month time based on your application usage. Eventually you may...
3 36 sec read

Fastest way to download large files from AWS S3 to Local machine

Install aria2. If you are on Ubuntu, you can try apt install aria2. run aria2c -x 16 -s 16 aws_https_file_url -x, –max-connection-per-server=NUM The maximum...
0 10 sec read

How To Draw Circle In CSS With Text In The Middle?

If you want to see the quick demo, see this link which shows the total vote count and comment count inside a css circle.
0 24 sec read

Tips: Job for apache2.service failed. Use sudo apache2ctl configtest to fix it.

If you get Job for apache2.service failed. See “systemctl status apache2.service” and “journalctl -xe” for details, then use “sudo apache2ctl configtest” to see the...
0 7 sec read

MongoDB Indexes

In this blog I am going to share my experience and learnings with MongoDb indexes.
0 4 min read

Tips: Empty A File in Unix Using >

If you want to empty a file’s content in a Unix based system then simply use > like so: $ > /var/log/foo.txt ...
0 8 sec read

Integrating Facebook Login with Apache Cordova

In this blog post, lets learn how to integrate Apache Cordova’s official Facebook plugin in to a project.
0 1 min read

Install Ruby 2.0 and Rails 4.0 on Mac OS Mountain Lion

The easiest way is to install XCode Command Line tools and then install ruby 2 via rvm then install rails 4 via gem. Install...
0 1 min read

Tip: Curl JSON Output formatting

If you use curl | python -mjson.tool you will see fantastic formatting of json result. Let’s see the “before” and “after” effects.
2 1 min read

Simple Tip for GitHub, Gems

GIT: To list the remote repo a git repo is pointing Try git remote -v or git remote show origin GEM: gem list rhodes...
0 6 sec read

How To Start/stop Nginx on Mac OS 10.7.4

Install it using sudo brew install nginx Start: sudo /usr/local/Cellar/nginx/1.2.3/sbin/nginx Stop: sudo /usr/local/Cellar/nginx/1.2.3/sbin/nginx -s stop Help: sudo /usr/local/Cellar/nginx/1.2.3/sbin/nginx -h
0 7 sec read

Run RhoConnect On Two Different Ports

RhoConnect uses Thin Ruby server, so the simple way to run it on two different ports is bundle exec thin start -e development -p...
0 47 sec read