Raspberry PI enable ssh without a monitor

I spent a dozens of minutes today to learn, how to enable ssh to Raspberry Pi without a monitor. SSH is disable by default after October 2016. Here is a one minute solution.

Attach the sd card to your computer and add an empty file SSH on the root of the sd card partition.

Ubuntu 16.04 – PhpStorm – configure xdebug with PHP 7.0

Today I spent a couple of hours to figure out that ONLY the following configuration works. It is not covered in any video/tutorial.

This is the settings that MUST be added to all the files:

[xDebug] zend_extension=/usr/lib/php/20160303/xdebug.so
xdebug.remote_autostart = on
xdebug.remote_start = on



The files are :



MySql change part of the field or column

If you have a table with column that contains eg file names with extension and want to replace the extension of all those file names.

Eg we have a table named menu with column icon. The icon column contains image file names with extension .png eg dress.png , shoes.png and we want to replace only .png by .svg leaving the filename (without extension) intact. we can use the following command in SQL:

UPDATE menus SET icon = replace(icon, RIGHT(icon, 3), ‘svg’)
WHERE id > 0 AND icon <> ”;

Change Widnows Password from Ubuntu in dual boot – chntpwd

Follow the following simple steps to change windows password from within ubunut.

1. Install chntpw

  sudo apt-get install chntpw

2. Mount your windows partition (change sda3)

  mkdir win7
  sudo mount /dev/sda3 win7/

3. Apply chntpw to change password. Change directory to win7/Windows/System32/config.
List windows users

  cd win7/Windows/System32/config
  sudo chntpw -l SAM

Change password

   sudo chntpw -u alex SAM

From the options select (1) Clear password and then save file (y). Now restart system and boot to windows with blank password.