Category Archives: Technology

technomony

Find Base DN with Powershell

PS C:\Users> dsquery user -name bind*
“CN=Bind\, UCS,OU=Service Accounts,DC=med,DC=subd,DC=dom,DC=edu”
“CN=Bind\, cloud,OU=Service Accounts,DC=med,DC=subd,DC=dom,DC=edu”
“CN=bind\, ise,OU=Service Accounts,DC=med,DC=subd,DC=dom,DC=edu”
“CN=Bind\, NS,OU=Service Accounts,DC=med,DC=subd,DC=dom,DC=edu”
PS C:\Users>

AstroGrep, grep for Windows

An excellent tool for those in Windows. http://astrogrep.sourceforge.net

Standalone executable too. =)

– Regular expressions
– Concurrent multiple file types
– Recursive directory searching
– A “context” feature that selects the lines above and below your search expression
– Most Recently Used list for search paths
– Somewhat versatile printing options
– Double click to open file with editor of your choice
– Store Most Recently Used file names and search expressions
– Match Whole Word Only
– Syntax highlighing
– Free of charge and Open Source

 

 

gvim survival tip, visual block mode

Thanks to jerald got around the frustrating CTRL+v doing the normal GUI pasting within gvim when I was really wanting to enter vi “visual mode”

Control q to the rescue :)

I used it for commenting block of code:
CTRL-q  (Go in visual mode)

jjjjj  (move cursor)

I   (shift eye to insert)

#   (comment character)

ESC (Escape, writes out)

Awesome, thanks jerald!