Use %1 in windows and $1 in unix
Convert to 3gp
C:\mplayer\ffmpeg -i %1 -s qcif -vcodec h263 -acodec libfaac -ac 1 -ar 8000 -r 25 -ab 32 -y %1.3gp
Use %1 in windows and $1 in unix
Convert to 3gp
C:\mplayer\ffmpeg -i %1 -s qcif -vcodec h263 -acodec libfaac -ac 1 -ar 8000 -r 25 -ab 32 -y %1.3gp
Amavis is an antivirus scanner for email but it can be modified to scan for spam. Many command line spam scanner like BMF QSF and Bogofilter can be used as scanners and set to quarantine email based on the outcome of the test. The input parameter will always be the full file path of the message email.txt. To write a custom scanner based on exit code 0 or 1 you can put something like this in your amavis.conf
['SpamFilter v1 / Linux', 'spamfilter',
'-c {}', [0], [1],
qr/(?i).* virus in .* -> \'(.+)\'/ ],
and have your script output something like this
Here is a list of hand server commands.
Free Memory
#free -m
Disable Disk Check
#tune2fs -c 0 /dev/hda1
Disable Hard Disk Spin Down
# hdparm -S 0 /dev/hda
Find Big Files
# /usr/bin/find / -type f -size +100000 -exec /usr/bin/du --megabytes {} \;
If you need to scan for jpegs with overflow vulnerabilities, amavis-new has one. The file name is JpegTester.pm. It is a perl library and with a few modifications it can become a powerful jpeg vulnerability scanner.
Simply follow this steps:
1. Change the first lines to
#!/usr/bin/perl -w
use strict;
###use re 'taint';
2. Add
if ($r[1] ne "jpeg ok"){
print "$fn $r[1]\n";
}
berfore
close($fh) or die "jpeg: Can't close $fn: $!";
3. Add this line at the end of the script
test_jpeg("@ARGV");
4. Scan all jpegs with this commands
Bandwidth control is a good idea if you are hosting your on webserver. It very simple to set up using mod_bandwidth. Here is a link to a detail setup guide.
http://www.dedicated-resources.com/guide/58/How-To-Install-mod_bandwidth...
There are many setup guides out there for mod_bandwidth but the trickiest part is to limit bandwidth to a set amount for all hosts. You can do this simply by adding this lines to any of your virtual hosts.
BandWidthModule On
Bandwidth all 131072
Minbandwidth all -1