Il blog di Gas

No comment

Take screenshots with mplayer

without comments

mplayer -vo jpeg -sstep 5 -ss 105 -endpos 235 file.avi

  • -sstep: time step of screenshot
  • -ss: starting position in seconds
  • -endpos: ending position in seconds

Written by gas_admin

ottobre 16th, 2014 at 10:14 am

Posted in Senza categoria

Audio Test (flac)

without comments

These are some flac files to test an hi-fi equipment. Some of them are very low and high frequency, don’t turn up the volume too much with these frequencies, maybe you can’t hear them because your equipment cannot render those frequencies. If the filename is a number that is the sound frequency.

HIFI-TEST.zip

Written by gas_admin

settembre 27th, 2013 at 6:21 pm

Posted in English

Tagged with

Logcheck rules for dropbear (Debian7.1 – wheezy)

without comments

^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dropbear\[[[:digit:]]+\]: Child connection from [.:[:xdigit:]]+:[[:digit:]]+$
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dropbear\[[[:digit:]]+\]: Pubkey auth succeeded for '[[:alnum:]-]+' with key md5 ([[:xdigit:]]{2}:){15}[[:xdigit:]]{2} from [.:[:xdigit:]]+:[[:digit:]]+$
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dropbear\[[[:digit:]]+\]: password auth succeeded for '[[:alnum:]-]+' from [.:[:xdigit:]]+:[[:digit:]]+$
^[[:alpha:]]{3} [ :[:digit:]]{11} [._[:alnum:]-]+ dropbear\[[[:digit:]]+\]: Exit \([[:alnum:]-]+\): Disconnect received$

Written by gas

settembre 27th, 2013 at 1:45 pm

Posted in English,Linux

Tagged with

Logcheck rules for rddcached (Debian7.1 – wheezy)

without comments

^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ rrdcached\[[[:digit:]]+\]: flushing old values|rotating journals
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ rrdcached\[[[:digit:]]+\]: (started new|removing old) journal /var/lib/rrdcached/journal/rrd\.journal.[\.[:digit:]]{17}

To much the following in /var/log/syslog

Sep 20 18:50:28 XXXX rrdcached[24700]: flushing old values
Sep 20 18:50:28 XXXX rrdcached[24700]: rotating journals
Sep 20 18:50:28 XXXX rrdcached[24700]: started new journal /var/lib/rrdcached/journal/rrd.journal.1379695828.566583
Sep 20 18:50:28 XXXX rrdcached[24700]: removing old journal /var/lib/rrdcached/journal/rrd.journal.1379688628.566927

Written by gas

settembre 20th, 2013 at 6:15 pm

Posted in English,Linux

Tagged with

OVH vs Prometeus VPS

without comments

I tested two vps, one from ovh the other from an italian company that advertised a coupon on lowendbox.com. Both servers have two cores and 512 MB of RAM, OVH cloud vps is about 10 € a month while Prometeus BIZ Xen 5 is 7€.

dd bs=1M count=512 if=/dev/zero of=test conv=fdatasync

OVH: 536870912 bytes (537 MB) copied, 81.8946 s, 6.6 MB/s

Prometeus: 536870912 bytes (537 MB) copied, 1.92747 s, 279 MB/s

sysbench –test=cpu –cpu-max-prime=20000 run

OVH: 26s

Prometeus: 44s

sysbench –test=memory –memory-total-size=1G run

OVH:1286.34 MB/sec

Prometeus: 238.80 MB/sec

 

OVH server had a very bad I/O…really rally bad while the CPU and RAM were faster than Prometeus

I think I’ll stick with Prometeus for a wordpress blog, the feeling I had is that it’s quicker. Regardless of the good rates I had by downloading and uploading files, OVH vps was much slower in serving images for some reasons. Slower means “some seconds” more in loading a standard home page with 5-6 locally stored images. With OVH I had a couple of reboots in 3 weeks

Prometeus also gives you a small backup space on a different data center, while with OVH there is no backup included in their plans.

Written by gas

settembre 12th, 2013 at 7:04 pm

Posted in English

Tagged with , , ,