In Linux its quite easy to get the output of a command into a variable for future use. In Windows..., well, no quite so easy.
FOR /F %%B IN ('d:\utils\date +%%Y%%m%%d-%%H%%M') DO SET DATE=%%B
The 'date' command in this examples is the Win32 GNU port of the equivalent Linux command.
For use in CMD or BAT scripts in Windows.
Configs or settings that were hard to find, or messy in getting to... for future personal reference.
Friday, June 24, 2005
Thursday, February 24, 2005
Windows OpenSSH home directory
Look in your /etc/passwd file.
You should see entries that look something like this:
depriest::43363:513:DePriest, Jason R,U-:/home/depriest:/bin/bash
You can edit the file manually and change the '/home/' entry to be whatever you wish. For instance, if I created a directory called C:\MyDirectory and wanted that to be my home directory, the same line would now read:
depriest::43363:513:DePriest, Jason R,U-:/cygdrive/c/MyDirectory:/bin/bash
[ trackback ]
You should see entries that look something like this:
depriest::43363:513:DePriest, Jason R,U-
You can edit the file manually and change the '/home/
depriest::43363:513:DePriest, Jason R,U-
[ trackback ]
Tuesday, January 11, 2005
Change the Logon Screen Wallpaper (All Windows)
Change the Logon Screen Wallpaper (All Windows) at Registry Guide for Windows
- [HKEY_USERS\.DEFAULT\Control Panel\Desktop]
Tuesday, January 4, 2005
NTLM in Firefox
Integrated NTLM authentication in internal corporate sites with Firefox.
Go to "about:config", edit network.automatic-ntlm-auth.trusted-uris and type all the allowed sites to use integrated authentication, separated by comma.
[ trackback ]
Go to "about:config", edit network.automatic-ntlm-auth.trusted-uris and type all the allowed sites to use integrated authentication, separated by comma.
[ trackback ]
HTTP Pipelining in Firefox
Firefox flies into over drive
All you've got to do is type "about:config" into your address bar, wait for it to load, then alter the following entries:
All you've got to do is type "about:config" into your address bar, wait for it to load, then alter the following entries:
- network.http.pipelining : true
- network.http.proxy.pipelining : true
- network.http.pipelining.maxrequests : 30 (meaning it will be able to make 30 requests at once.)
Subscribe to:
Comments (Atom)