Notepad++ Regular Expression Find and Replace

When scripting or manipulating text data I prefer using notepad++. It’s easy to use, includes syntax coloring for just about anything, folds code nicely and even supports regular expression find and replace features. I have been using if for years but just recently have come to love the program even more. When using find and replace in the past I stuck mostly to the basics. From time to time I would use a regex to search and then replacing everything that was found. Notepad++ goes well past this. To explain I will show an example. I was working with tabular … Continue reading

Posted in Other Stuff | Tagged | Comments Off on Notepad++ Regular Expression Find and Replace

PHP Mac Address Validation and Formatting

I have been working on a small php app to perform a network scan and fill a database with the discovered information. The issue is that, depending on what you perform the scan with, the MAC addresses are in a number of different formats. This PHP functions validates a MAC and returns false if its not valid or a variety of formats depending on your needs! If anyone has any thoughts on improving this function feel free to let me know and I will post the updates.

Posted in PHP | Tagged | Leave a comment

Add a single user or multiple users to AD with a VB Script.

This is a VB Script that I have created to fit a scenario where you need to add a user to Active Directory and set attributes for that user. I have found it to be quite tedious to have to create each user and set the attributes manually. So I have searched the net to find information on how to create a script to do what I need. Here is my scenario… I need to create a user, set a password, set a location, create a user home folder(not roaming) and set the share permissions. I wanted to be able … Continue reading

Posted in VBS | Tagged , , | Leave a comment

Fluke Link Runner

When looking for a simple, easy to use and easy to carry network tool I decided on the Link Runner by Fluke Networks.  The device its self is about the size of a typically smart phone and about twice as thick.  There are only three buttons on the device; a power button and a pair of soft keys.  The top of the device has a pair of Ethernet ports that made to the typical RJ-45 connector. I found the device really easy to use.  It was as simple as plugging in to both ports and look at the screen to … Continue reading

Posted in Networking, Reviews | Tagged , | Leave a comment