parsed.org

Popular tags

aliases analysis apache apt-get array authentication autocomplete awk background backup bash boot broken browser bsd buffer c capture characters cisco cmd commands compilation configuration connections conversion convert copy data database debian debugging diagnostic diff directory dns document dos dot-emacs download editors elisp emacs encryption enumeration escape ethereal ethernet extras filesystem filter find firefox firewall freebsd functions gnu gotcha gvim headers highlighting html http image imagemagick import indentation internals javascript key keystrokes languages latex line-endings loop lsof mail mailbox messages metadata microsoft modules monitoring mta mua mutt mysql neat network newline obscure oracle os output packet parsing password path performance perl permissions php pipe postgresql process programming psql python queries recovery redirect restore root router ruby schema screen screenrc security sed server session shell solaris sort split sql ssh startup subversion svn symlinks syntax system tagging tail tcpdump template terminal tex tips tunnel typesetting ui unix utilities vi vim vimrc virtualhost windows wireshark x11 xargs xml zsh

» Show all tags...

Most recent tips:

Shift-Delete Files in Windows by xinu on Jul 03, 2008 09:23 AM

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
Reset MSSQL Password by xinu on Jun 27, 2008 08:20 AM

To update the password on MS SQL Server 2005:

SP_PASSWORD @NEW = 'new_password', @loginame = 'sa'
microsoftpasswordresetsp_password
Rsync and SSH by xinu on Jun 19, 2008 05:55 PM

Copying a directory from one system to another is easy:

$ rsync -avz -e ssh directory/ user@systemB:directory/
rsyncssh
Windows PowerShell by xinu on Jun 16, 2008 04:33 PM

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
VIM Positioning by xinu on Jun 14, 2008 09:26 PM

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
RSS