Categories

Our Sponsors

Grep command for Windows

Something that I have needed for a while while working with Windows.  Most of the systems I have include cygwin so  until now I had not really needed a windows grep equivalent.

The built in windows command FindStr mirrors the capabilities of the Unix command Grep.

Findstr /? FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [...]

Share

Setting up CYGWIN SSH

This article is assuming that you have installed CYGWIN on your Winders environment already.

I had troubles getting SSHD to run on the system and as with SSH it ended up being dumb file and/or directory permissions.

Make sure you have an /etc/password file. #  mkpasswd   -cl   >   /etc/passwd Make sure you have [...]

Share

Notepad++ Keyboard Shortcuts

Notepad++ has become my favorite editor when coding PHP or XML. It just has so many useful little features. You can have all of the documents you need opened in one window and separated with tabs. You can have a 2nd workspace hidden within the same window, which is great when you are updating some [...]

Share

Open Source Alternatives

There is a ton of software a new business sometimes feels that they must purchase right when they are starting off a new business.

There Word, Excel, and Powerpoint from Micro$soft that are usually very expensive.

There is also money management software, project planning software, and graphic software.

Well there is a solution for small [...]

Share

Sync Web Servers Script

Here is a script I wrote to keep 2 or more web sites in sync.  The data files can be anything under the data tree. The database is MySQL.

The script works by pulling the latest data and database backup from the production server.  The script can be placed in a cron. The DR server [...]

Share

Funny Unix commands

Handy command for those users that are most annoying.

# fuser -uck /you

Find all the processes running under the mount point /you and kill them all ungracefully.

About as much fun to read as

# sort -n ass | uniq -c

Unix can tell you all.

Login and type /bin/csh then type the [...]

Share

Helpful Unix commands

A thread dedicated to those useful Unix commands we all know and love.  Ya right.

I need a really tricky find command the other day so I came up with the following.  I wanted to save the command some where as it really shows the power of find

Find all files that are not [...]

Share

Pass a Shell variable to a SED command

I just helped a friend out with placing a shell variable into a sed command and thought it would be prudent to document it.

This set of commands was to be used to change directory names inside a samba share, hense the directory names of \ and the unix escape needed making a bunch of [...]

Share

Overcoming the dreaded SCP/SFTP message errors

If you have ever used scp or sftp you may have encountered the dreaded ( ”Received message too long” or “Bad packet length” ”) errors.

This is typically due to something being echo’d or sent back to your login attempt.

Usually, it’s something you have in your .profile or .bashrc login files.

Just add the [...]

Share

Procedure to swap ZFS pools Solaris

Procedure to add a new ZFS pool to a system, copy the data from an old pool, switch the mounts and remove the old pool.

Sorry there isn’t much in the way of comments or coloring.  It was just copied from the terminal window.  The procedure below does create the ZFS filesystem, clone it, move [...]

Share
Get Adobe Flash playerPlugin by wpburn.com wordpress themes