Pages

Saturday 28 November 2015

clearing screen & pasting using "CTRL + v" in windows command prompt.

Things become quite frustating when you just migrated from linux desktop world to windows world!
Specially tasks which uses terminal or command prompt(in windows) ... So, today i found these two awesome script's of autohotkey.. todo these tasks same as we do in linux world.
Simply download autohotkey from https://autohotkey.com and make two scripts with .ahk extension for example for pasting in terminal make copypaste.ahk and for clearing screen make clearingscreen.ahk and add the following code in both the file

;-----------------------------------------------------------------------------------------------------------------
;for pasting data

#IfWinActive ahk_class ConsoleWindowClass
^V::
SendInput {Raw}%clipboard%
return
#IfWinActive.
;-----------------------------------------------------------------------------------------------------------------

;for clearing screen in command prompt
; -------------------------------------------------------------------------
; Cntr-L should clear screen
; -------------------------------------------------------------------------
#IfWinActive ahk_class ConsoleWindowClass
^L::
Send cls{Enter}
return

#IfWinActive
;---------------------------------------------------------------------------------------------------------------------

After making these two files just double click and run 'em! thats it.
WARNING:- Things will easily break and become serious pain in head if you run vagrant ... so tip is suspend them from the arrow(in TASKBAR). Thanks!

Thursday 19 November 2015

[Solution] Vagrant can't mount shared folder in VirtualBox in Windows 8.1 OS!

                                    So to fix this problem all you need to do is install a plugin vagrant-vbguest using vagrant and the problem will be fixed. If you face troubles will installing vagrant-vbguest then go to this LINK=>[Solution of Vagrant plugin installation failure problem] and then just run the following command in command prompt as shown in the pic below.


after installation halt the vagrant using command vagrant halt and then run vagrant up and after that shared folder will mount in both windows and linux, fixed!

[SOLUTION] Vagrant Plugin Installation failure in Windows 8.1 OS

                                             The problem exist in ruby for windows ... it has some issues related to space in folder names and by default vagrant home is the C:/users/your user name/.vagrant.d all you need to do is to set the environment variable VAGRANT_HOME to something like C:/Vagrant/Home .... so to do it first make the folder Vagrant in C drive and then make another folder in Vagrant directory i.e. Home ... So you have something like this C:/Vagrant/Home
                                                                                   After making the folder run the following command in windows command prompt as shown in the pic below


After running this command RESTART windows and then vagrant plugins will install and the problem is fixed!