I had 232,000 small text files to delete and they were going to take upward of 50 minutes to push them to the recycle bin by selecting them all and smacking the delete key. I canceled it and tried to shift-delete (delete the files, don't put them in the recycle bin). They were gone in 2-3 seconds.
Warning: When you delete files like this they're gone. The only way to get them back is to run an undelete utility.
deleterecycleshift-deletewindows
To update the password on MS SQL Server 2005:
SP_PASSWORD @NEW = 'new_password', @loginame = 'sa'
microsoftpasswordresetsp_password
Copying a directory from one system to another is easy:
$ rsync -avz -e ssh directory/ user@systemB:directory/
rsyncssh
My first foray into Windows PowerShell hasn't been too painful. It looks a lot like shell scripting and a bit like SQL with the 'where' cmdlets:
PS C:\WINDOWS> ps | where {$_.handles -ge 200 -and $_.name -ne 'svchost'} | sort -Descending handles
Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName
------- ------ ----- ----- ----- ------ -- -----------
4575 70 147404 87676 642 783.97 10888 OUTLOOK
2452 3 2720 3984 35 4.20 700 LVPrcSrv
1670 47 67200 40188 207 59.39 5964 iTunes
1659 13 150800 58608 1245 44.03 8720 javaw
...
powershellwindowswpsh
If you've got a file open in vim, try the following shortcuts in command mode:
z. = center on current line zt = make current line the top line zb = make current line the bottom line
gvimvim