SecureCube.com

9Jan/110

Resize Images

The ability to resize images is an essential tool when working with the web. Here are some tools for Linux and Microsoft OS's.

Image Resizer from Microsoft PowerToys is your best bet when looking to resize images in a Windows environment.

When looking for a utility in Linux there are a slew of options. Ones I have found are from within ImageMagick:

sudo apt-get install imagemagick

Once you have this you can use one of many tools, but I find I use mogrify more often:

mogrify -resize 640 *.png

This will resize and overwrite all png images in the current directory to a scaled with of 640px. If you don't want the images to be overwritten you can use the equivalent command convert.

Filed under: Linux, Microsoft No Comments
1Jan/110

Firewall Stopped Logging

Your Checkpoint firewall may stop logging to the management server for any number of reasons, to restart use the following commands:

Stop fwd:

cpwd_admin stop -name FWD -path "$FWDIR/bin/fw" -command "fw kill fwd"

Start fwd:

cpwd_admin start -name FWD -path "$FWDIR/bin/fw" -command "fwd"

If successful you should see an information message in the management tracker similar to stating "sys_message: started logging".

You may also want to verify masters is pointing to a valid DNS/IP of your log server:

cat $FWDIR/conf/masters
Tagged as: , , No Comments