Category Archives: Uncategorized

Wireless and Powerline adapter speed.

Yes, its noticeable. Compare the results below. WiFi With Tp-link powerline adapter If you have a NAS at home, and dont have an ethernet connection use powerline adapter. In my case 1 GB file was transferred with 2 min and … Continue reading

Posted in Uncategorized | Leave a comment

Integrate LDAP to ASP.NET Web Application

With VS 2017 its very simple, follow the steps. Create ASP.NET web app Select authentication with “Individual User Accounts” Change AccountController as below, [AllowAnonymous] [HttpGet] public ActionResult Login() { return View(); } [AllowAnonymous] [HttpPost] [ValidateAntiForgeryToken] public async Task<ActionResult> Login(LoginViewModel model, … Continue reading

Posted in Uncategorized | Leave a comment

Mirroring a Git repository

Cloning a repository locally and changing git remote didn’t work for me. Here is a clean way to achieve the same. git clone –bare https://bitbucket……/your-repo.git cd your-repo.git git push –mirror https://bitbucket……/mirror-repo.git cd ../ rm -rf  your-repo.git  

Posted in Uncategorized | Leave a comment

Mongo Aggregate query using date part of ISODate.

Most of the time we only need date part of  iso date in any document during an aggregation. Here is how to get the date part for aggregation, Project ( $project ) as a new filed, say “considered_date” Group with the … Continue reading

Posted in Uncategorized | Leave a comment

Remount without reboot

Mount with follwoign command : mount -t cifs //server/foldertomount  /mnt/mount_location -o username=xxx,password=yyyy,domain=yourdomain nano /etc/ftab add //server/foldertomount /mnt/mount_location cifs gid=users,file_mode=0777,dir_mode=0777,auto,username=xxx,password=yyy,domain=yourdomain 0 0 run mount -a Reference : Click to view

Posted in Uncategorized | Leave a comment

First Omega2+ project ( Hello World -blinking LED )

Refer below link for the complete tutorial , http://www.cnx-software.com/2017/01/16/getting-started-with-onion-omega2-lede-wifi-iot-board-and-expansion-dock/ Script File ========== Make sure Omega2+ firmware is updated. chmod +x  scriptfile.sh #!/bin/ash ## Simple script to blink a LED on the Onion Omega using gpioctl ## the variable that will … Continue reading

Posted in Uncategorized | Leave a comment

Pointing a domain to the Heroku app with Namecheap

Click this link to view

Posted in Uncategorized | Leave a comment