Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Thursday, July 10, 2014

windows - Sync left pane in Explorer with opened folder

Click on an empty space on the left pane, enable: "Show all folders" and "Expand to current folder"

Source

Wednesday, June 25, 2014

Windows - Track and kill the right process

If you try to delete a file/folder and Windows stop you, because there's alread an other process which lock it, then you can use Process Explorer to track and kill that process.

  1. Download & Install Process Exploerer
  2. Find -> Find Handle or DLL ...
  3. Insert the path of the file in "Handle or DLL substring:"
  4. Click the "Search" button

Tuesday, May 13, 2014

SVN - Credentials for corporate proxy

There a simple way to add the credentials to the svn client:

%appdata%\Subversion\servers 

http-proxy-host=proxy-corpo 
http-proxy-port=80 
http-proxy-username=username 
http-proxy-password=password

Linux - Dual boot Windows 7 / Ubuntu [external link]


Step by step tutorial to install a dual boot:
www.dedoimedo.com/computers/dual-boot-windows-7-ubuntu.html

Friday, April 11, 2014

Cygwin - Install (Windows)


www.cygwin.com

Add modules:
- dos2unix (Utils \ dos2unix)
- xsltproc (Libs \ libxslt)
- wget (Web \ wget)
- curl (Net \ curl)
- nc (Net \ nc)
- git (Devel \ git)
- svn (Devel \ subversion)
- ssh (Net \ openssh)
- scp (Net \ openssh)
- openssl (Net \ openssl)

Monday, March 17, 2014

Find path

Linux/UNIX/Mac OS X:
$ which java

Windows XP
for %i in (java.exe) do @echo.   %~$PATH:i

Windows since 2003
where java

Tuesday, February 4, 2014

Commit Monitor - Install (Windows)

Commit Monitor is doing monitoring on the SVN server, so you can be notified when others are committing new modifications.

http://stefanstools.sourceforge.net/CommitMonitor.html

Cntlm - Install (Windows)

Cntlm is an NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy


  1. Downdload from the official website : cntlm.sourceforge.net
  2. Unzip to the destination folder, we will call it CNTLM_HOME, ex.: C:\dev\Cntlm
  3. Create an environment variable (if you don't know how, click here)Name: CNTLM_HOME
    Value: C:\dev\Cntlm (it's only an example, choose your destination's folder)
  4. Add to the PATH this new variable CNTLM_HOME (if you don't know how, click here)
  5. Take a backup of the original configuration file %CNTLM_HOME%\cntlm.ini => cntlm.ini.default
  6. Remplace the content of the file in %CNTLM_HOME%\cntlm.ini by...
    # Cntlm Authentication Proxy Configuration
    Username testuser
    Domain corp-uk

    # List of parent proxies to use. More proxies can be defined
    # one per line in format <proxy_ip>:<proxy_port>
    Proxy proxy-name:8080

    # List addresses you do not want to pass to parent proxies
    # * and ? wildcards can be used
    NoProxy localhost, 127.0.0.*, 10.*, 192.168.*

    # Specify the port cntlm will listen on
    # You can bind cntlm to specific interface by specifying
    # the appropriate IP address also in format <local_ip>:<local_port>
    # Cntlm listens on 127.0.0.1:3128 by default
    Listen 3128

    Auth       NTLMv2
    PassNTLMv2 
  7. Replace by your own personal informations:
    Username testuser
    Domain corp-uk
    Proxy proxy-name:8080
  8. In commande line type this command and enter your password :
    >cntlm -I -M http://test.com  -c C:\dev\Cntlm\cntlm.ini
    [PASSWORD]
    Password:
    Config profile  1/4... OK (HTTP code: 200)
    ----------------------------[ Profile  0 ]------
    Auth            NTLMv2
    PassNTLMv2      AA1A11AAA11AAAA1AA11A1AAAA11A11A
    ------------------------------------------------
    Notice: If you get an HTTP code 302, it's fine too.
  9. Copy the value of PassNTLMv2 from the output AA1A11AAA11AAAA1AA11A1AAAA11A11A to the file cntlm.ini, on the same line as PassNTLMv2 
  10. In commande line:
    > cntlm -f -c C:\dev\Cntlm\cntlm.ini
    cntlm: PID 15264: Cntlm ready, staying in the foreground

Adding a folder to the PATH (Windows)

The PATH variable in Windows is the list of the folders you can have directly access to their files in command line.  They are separated by a semicolon (;) and actually you can have to PATH variables, one for the user and an other for the system, but in the end they are merged.


  1. Press [Windows] + [Pause] keys
  2. Click on the "Advanced" tab
  3. Click on the "Environment Variables" button
  4. Choose the scope's level : "User variables for xyz" or "System variables" and select the PATH variable
  5. Click on "Edit" button
  6. In the value's field, go to the end of the current value and add a semicolon if there's not already one, then add the path to the folder you want to add, ex.: "%SystemRoot%\system32;C:\dev\Java\jdk1.7.0_51\bin".  If you want to use an other environment variable's value, simply specify the name of the value surrounded by the percent character (%), ex.: "%SystemRoot%\system32;%JAVA_HOME%\bin" would have the same result if the JAVA_HOME variable contain the value "C:\dev\Java\jdk1.7.0_51".
  7. Click on the "OK" button
  8. Click on the "OK" button
  9. Click on the "OK" button

The path "C:\dev\Java\jdk1.7.0_51\bin" is now declared in the PATH.

Creating an environment variable (Windows)

An environment variable is a variable you can have access from anywhere in the Operating System, for example in command line:
> echo %USERNAME%
elenigen

Some are already available in Windows, like USERNAME, USERPROFILE, PATH, etc.  Some can be created by the user.  You can even choose the scope of the variable, by creating it in the user or system's level.

  1. Press [Windows] + [Pause] keys
  2. Click on the "Advanced" tab
  3. Click on the "Environment Variables" button
  4. Choose the scope's level : "User variables for xyz" or "System variables"
  5. Click on the "New" button
  6. Enter variable's name and value.
  7. Click on the "OK" button
  8. Click on the "OK" button
  9. Click on the "OK" button
The new variable has been created!  The tricky part now is, all current command line windows which were already opened before the creation of this new variable, they don't have access to it, so you need to close and reopen the command line.

See also:
ss64.com/nt/syntax-variables.html

Monday, February 3, 2014

Port already in use (Windows)

If you have difficulty to start a server on Windows, verify first that the port of the server is still free (ex.: 80).

In command line:

> netstat -aon | find /i "listening"
 TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       13036
 TCP    0.0.0.0:135            0.0.0.0:0              LISTENING       740
 TCP    0.0.0.0:443            0.0.0.0:0              LISTENING       13036
 TCP    0.0.0.0:445            0.0.0.0:0              LISTENING       4
 TCP    0.0.0.0:1025           0.0.0.0:0              LISTENING       488
 TCP    0.0.0.0:3389           0.0.0.0:0              LISTENING       784
 TCP    0.0.0.0:5000           0.0.0.0:0              LISTENING       1116
 TCP    0.0.0.0:5631           0.0.0.0:0              LISTENING       1188
 TCP    0.0.0.0:8008           0.0.0.0:0              LISTENING       1380
 TCP    127.0.0.1:1075         0.0.0.0:0              LISTENING       4980
 TCP    127.0.0.1:5152         0.0.0.0:0              LISTENING       1468
 TCP    172.26.156.30:139      0.0.0.0:0              LISTENING       4
 TCP    172.26.156.30:52028    0.0.0.0:0              LISTENING       1116

And then, you just need to find what is this process for:

> tasklist | find /i "13036" 
httpd.exe                    13036 Console                    0      1,024 K