Disable Visual Studio Attach to Process Warning

The purpose of this post is to remove the annoying security warning while attach to process. PLEASE ALWAYS ATTACH!!


To remove the warning, all that needed to be done:

  1. Close all windows of Visual Studio 2013!! (the registry value won’t be set if it a window remains opened)
  2. Open regedit (just type it in from Win menu)
  3. Set the following key to 1 HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\Debugger\DisableAttachSecurityWarningCapture
  4. Restart computer

Hope this helps! Bye


Remap Resharper shortcut in Visual Studio

The problem for me was when I installed resharper and opened it for the first time, I selected default to Resharper shortcut which I later found that I had to press Ctrl + Shift + N to do the file search instead of traditional Ctrl + T.

Below answer is retrieved from StackOverflow (Not the selected answer, but has most upvotes and works for my case)

  1. Go to Tools -> Options -> Environment -> Keyboard -> Press the (RESET) button
  2. Go to ReSharper – > Options -> Keyboard & Menus -> Select the “Visual Studio” scheme -> Press “Apply Scheme”
  3. Press “Save”
  4. Press “CTRL-T”. Since this shortcut is mapped in both VS and Resharper, you will be presented with the “Shortcut Conflict”-window. Here you select “Use ReSharper (Ultimate) command” and make sure to check the box “Apply to all ReSharper (Ultimate) shortscuts”.



[Lubuntu] Change Brightness

I’m using Lubuntu 14.04 and I found that you will have to make sure “Power Manager” is running for the brightness fn-keys to work.

To start Power Manager, go to Menu > Preferences > Power Manager

Once this is started, you should be able to adjust screen brightness with fn-keys.

Alternatively, you can read off my other post on autostart power manager so you can adjust your screen brightness without going through all the manual-clicking.


SSH Key on Unbuntu

First generate the key from the terminal:


Then, copy the key from the following command:

cat ~/.ssh/id_rsa.pub

Finally, paste the key you have into the git service that you are using (I’m using bit bucket in this case). It should looks something like below:


Ubuntu 14.04 – Change Apache DocumentRoot

This answer is taken from StackOverflow by the community wiki: http://stackoverflow.com/questions/5891802/how-do-i-change-the-root-directory-of-an-apache-server

Please note, that this only applies for Ubuntu 14.04 LTS and newer releases.

In my Ubuntu 14.04 LTS, the document root was set to /var/www/html. It was configured in the following file:


So just do a

sudo nano /etc/apache2/sites-available/000-default.conf

and change the following line to what you want:

DocumentRoot /var/www/html

Also do a

sudo nano /etc/apache2/apache2.conf

and find this

<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted

and change /var/www/html to your preferred directory

and save it.

After you saved your changes, just restart the apache2 webserver and you’ll be done 🙂

sudo service apache2 restart

If you prefer a graphical text editor, you can just replace the sudo nano by a gksu gedit.