Git on Windows

In Git Bash if you try to clone a repository from a linux machine you get the following error
“FATAL ERROR: Disconnected: No supported authentication methods available (server sent:publickey)

This is a head scratcher. Your server is setup for private key authentication. You can connect to the server from the GitBash MINGW64 terminal using ssh username@linuxserver while the corresponding key information is in the file .ssh/config and the key is stored in the .ssh folder.

Then you use the “git clone ssh://username@linuxserver:/path_to_repo” then you get the above error.

That is because it depends on what your GIT_SSH environment variable is set to. If you use some corporate git servers and the required method of communication is putty and paegant for authentication and key management then the GIT_SSH should point to plink.exe. But if your git repository is a linux machine and you supply the privatekey then the GIT_SSH should be ssh.exe

More information on this link

Posted in Uncategorized

Python Startup

Setup a new python

I used the information from this link

Install Python

First find out where the Python is installed. In my computer i installed it here

C:\Users\<user name>\AppData\Local\Programs\Python\Python36-32\Scripts

Add this to the PATH variable so that it will be helpful in setting up the virtual environment.

Open the command prompt and go to the folder where you want to start a python projects. For example i was working on mywebproj. It will be located in D:\Projects

So from the command prompt, i go to D:\Projects and then create a folder called mywebproj.
Now I have to create a virtualenv in that folder, so that all the python libraries that i’m going to install for this project are local to that project

If the path is already set, then from the command line issue the following command
virtualenv mywebproj

it will create all the structure for a project and related libraries will be copied into that folder. Now if you use pip to install new libraries then it will be installed in that folder local to that project.
First we need to activate the virtualenv, by calling the command
This is how it is in my windows machine.
Now the command line will look like this

If you already installed Pycharm then open it and then open the project D:\Projects\mywebproj.
After that we need to select the interpreter properly(if it doesn’t automatically find out)
File->Settings->Project mywebproj->Project Intepreter. Now select the Gear Icon and Select Add Local.
Then browse to the project folder and find python.exe D:\Projects\mywebproj\Scripts\python.exe
Once you select the exe, then the Pycharm displays all the libraries installed for that virtual environment.

Mac OS Setup

The assumption is python 3.6 is already setup with pip3 and everything.
First create the project folder where it will be setup and in this case is mywebproj.
it will be set in /Users/<user_name>/Documents/Projects/mywebproj

Now issue the following command from the location /Users/<user_name>/Documents/Projects

pyvenv mywebproj

This will create the virtualenv in the folder mywebproj. Now activate the virtual environment by issuing the following command

source mywebproj/bin/activate

now you are in the virtual environment. You can check the version of the python and pip by issuing the following command

python –version

Python 3.6.2

That tells you that the virtual environment is set to use Python 3.6.2. To make sure that the pycharm is using the correct interpreter, once you open the pycharm and selected the correct project, now

Pycharm Community Edition -> Preferences -> Project Interpreter(mywebproj). Here you can select the correct interpreter if it is not already setup

Now install the required libraries by issuing the command pip. to install the library requests

pip install requests



Posted in python

Find the recent git branch

Find all the commits to the git repo

You have a git repo but don’t have any idea what the most recent git branch. You can find it from the git repo.
In my case i have access to the git repo in my linux machine as follows


Once you are in the folder issue the following command

git for-each-ref --sort=-committerdate refs/heads

the output will look like this

093ae543bf40e3394c95b75074d1c87f1ccd248a commit	refs/heads/br_11_20_2013
10d8be135e15b40cdf62dbf212c4768c2b4b2cab commit	refs/heads/master
e9e0cb4ac232207c970d660e08ca7214db21efd8 commit	refs/heads/br_5_17_2013
3c123ae255e9b4ec9850a889de9f3dfbb6766c1f commit	refs/heads/br_4_24_2013
ea16d0a376c125aa1a47647a562ec74212801923 commit	refs/heads/br_11_24_2012
427ad84f7f9dbef690bd875550045f02b6344736 commit	refs/heads/br_10_25_2012
35aba3460091b7d4bad8a6ca102061e21d2cb404 commit	refs/heads/br_8_19_2012
15c2db0c9289db380127d54c9ad341ece86532c7 commit	refs/heads/br_5_18_2012

Now based on the output, the most recent branch is br_11_20_2013

Posted in git

GitBash XMing on Windows

GitBash and XMing are the easiest way to have X11 forwarded from your linux machine to your windows machine. Gone are the days when you install cygwin and related items just so that you can have linux functionalities in the windows machine.


  1. First install GitBash
  2. Then install XMing
  3. open GitBash and make sure that the DISPLAY is setup

How to setup display

To forward X11 you call

ssh -Y username@server

Also you have to call

export DISPLAY=localhost:0.0

You can also set that in the .bashrc file so that everytime you open the gitbash that file is executed and the variable is set

Posted in Uncategorized

Privacy Policy

Privacy Policy
Last updated: 02/08/2017
SuriyaSuneel Inc created this app Remote for Roku with Voice (the
“App”). This page informs you of our policies regarding the collection, use and disclosure of
Personal Information we receive from users of the Site.
I do not collect any personal information while you are using the App. The use of RECORD_AUDIO permission is only to convert your voice into a command for the device it is controlling. No information is transferred to any outsider or any information is stored in the device.

Changes To This Privacy Policy
This Privacy Policy is effective as of 02/08/2017 and will remain in effect except with respect to any
changes in its provisions in the future, which will be in effect immediately after being posted on this
We reserve the right to update or change our Privacy Policy at any time and you should check this
Privacy Policy periodically. Your continued use of the Service after we post any modifications to the
Privacy Policy on this page will constitute your acknowledgment of the modifications and your
consent to abide and be bound by the modified Privacy Policy.
Contact Us
If you have any questions about this Privacy Policy, please contact us at

Posted in Uncategorized

php 5.6 on ubuntu

PHP 5.6 on Ubuntu 14

To install PHP 5.6 or to upgrade from PHP 5.5 on Ubuntu 14:

  1. Enter the following commands in the order shown:
    apt-get -y update
    add-apt-repository ppa:ondrej/php
    apt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip
    apt-get -y update
  2. Enter the following command to verify PHP 5.6 installed properly:
    php -v

    Following is a sample response that indicates PHP 5.6 is installed:

    PHP (cli)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

    The preceding message confirms that the Zend OPcache is installed. We strongly recommend using the OPcache for performance reasons. If your PHP distribution does not come with the OPcache, see the PHP OPcache documentation.

Posted in Uncategorized

Breaker Config

My Breaker Config



Switch Rooms Affected
7 Prayer Room, Hall,Suneels Bedroom,Suriya’s room,Master Bedroom
10 Main Dining Room
19 Water Softener, tool room, Server


Posted in Uncategorized

Reset mysql root password if forgotten

How can I reset my MySQL password?

IconsPage/warning.png Following this procedure, you will disable access control on the MySQL server. All connexions will have a root access. It is a good thing to unplug your server from the network or at least disable remote access.

To reset your mysqld password just follow these instructions :

  • Stop the mysql demon process using this command :
    •    sudo /etc/init.d/mysql stop

  • Start the mysqld demon process using the –skip-grant-tables option with this command
    •    sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking &

Because you are not checking user privs at this point, it’s safest to disable networking. In Dapper, /usr/bin/mysqld… did not work. However, mysqld --skip-grant-tables did.

  • start the mysql client process using this command
    •    mysql -u root

  • from the mysql prompt execute this command to be able to change any password

  • Then reset/update your password
    •    SET PASSWORD FOR root@'localhost' = PASSWORD('password');

  • If you have a mysql root account that can connect from everywhere, you should also do:
    •    UPDATE mysql.user SET Password=PASSWORD('newpwd') WHERE User='root';

  • Alternate Method:
    •    USE mysql
         UPDATE user SET Password = PASSWORD('newpwd')
         WHERE Host = 'localhost' AND User = 'root';

  • And if you have a root account that can access from everywhere:
    •    USE mysql
         UPDATE user SET Password = PASSWORD('newpwd')
         WHERE Host = '%' AND User = 'root';

For either method, once have received a message indicating a successful query (one or more rows affected), flush privileges:


Then stop the mysqld process and relaunch it with the classical way:

sudo /etc/init.d/mysql stop
sudo /etc/init.d/mysql start
Posted in mysql

Remove a google account from Samsung

I added a google account to my Galaxy Note 4. There was this main gmail account and then a secondary account that i use for my kids for them to watch youtube. I added this to my phone and the nightmare started. Once my trial is finished i wanted to remove it from my phone. The proper way is to go to Settings->General->Accounts and then select Google and it should show the list of Google accounts that are linked to the phone and i can select the one that i want to remove.

Once i click Google, the Settings will crash. After some research I found that all you have to do is open Gallery and then from the Menu you can go to the accounts associated and from there you can remove that account

Posted in Uncategorized

lg e 970 apn

From Setting Select the network tab


Select the Tethering & Network

Now select the mobile networks

Now Select Access Point names

Once you get that blank screen, click the menu button on the right, right next to the home button, and select “New APN”

Select each item and enter the data as given by your service provider

Once it is all done, now hit the menu button again and hit save.

Posted in Uncategorized