I came across a handy little application called DiffMerge that allows you to compare multiple files and make changes while open.  This is extremely useful when comparing multiple MikroTik configuration files.  Previously I used sdiff, but I think this is much easier to use.




DiffMerge is a free application and can be used on OSX, Windows, and Linux.  The download can be found here.



Sometimes working with a directory full of subdirectories and files you need to compare the directories and files to another version of the files.  This comes in extremely useful when restoring a hacked website.  To do this you need to have the old copy and the current copy in two different directories on your system.  Then run the command below replacing DIR1 and DIR2 with the directoires you would like to compare.  This works through the entire directory because of the -r option which stand for recursive.  The -q option suppresses the entire output and only outputs the files the differ.

Continue reading

1.  SSH to your machine.

2.  Enable Remote Sharing (VNC) via:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypass -restart -agent -privs -all

3.  Login using your VNC client.  I used Chicken of the VNC.

4.  You can disable Remote Sharing by:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off