- q = quit
- r = sub position -
- t = sub position +y
- T = enable/disable stay on top mode
- y = sub delay reset to 0
- o/O = toggle on-screen display (enabled, disabled, time lapsed, time lapsed/remaining)
- p = play/pause
- [ = speed -10%
- ] = speed +10%
- { = speed x 1/2
- } = speed x 2
All that we are is the result of what we have thought. The mind is everything. - Buddha
вторник, 12 октября 2010 г.
Mplayer keyboard shortcuts
Mplayer keyboard shortcuts:
среда, 22 сентября 2010 г.
how to set mplayer play repeatedly?
Just add 'loop =0' in your user mplayer config.
user@host> echo 'loop = 0' >> ~/.mplayer/config
понедельник, 31 мая 2010 г.
Postfix rsyslog
Im using rsyslog with postfix.
Here some confs.
Here some confs.
DROP TABLE IF EXISTS `Smtpd`;
CREATE TABLE IF NOT EXISTS `Smtpd` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ReportedTime` datetime NOT NULL,
`MessageTime` varchar(40) NOT NULL,
`Host` text NOT NULL,
`Process` varchar(40) NOT NULL,
`ProcessID` int(11) NOT NULL,
`Message` text NOT NULL,
`ClientHost` varchar(255) NOT NULL,
`ClientIP` varchar(15) NOT NULL,
`MailFrom` varchar(255) NOT NULL,
`MailTo` varchar(255) NOT NULL,
`MessageID` varchar(40) NOT NULL,
`Status` varchar(255) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1453 ;
CREATE TABLE IF NOT EXISTS `Smtpd` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ReportedTime` datetime NOT NULL,
`MessageTime` varchar(40) NOT NULL,
`Host` text NOT NULL,
`Process` varchar(40) NOT NULL,
`ProcessID` int(11) NOT NULL,
`Message` text NOT NULL,
`ClientHost` varchar(255) NOT NULL,
`ClientIP` varchar(15) NOT NULL,
`MailFrom` varchar(255) NOT NULL,
`MailTo` varchar(255) NOT NULL,
`MessageID` varchar(40) NOT NULL,
`Status` varchar(255) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1453 ;
среда, 5 мая 2010 г.
Postfix config
My postfix config.
#---------------------------------------------#
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
четверг, 15 апреля 2010 г.
Crontab problem
I have a problem with working crontab.
With this, cron didnt work.
'man crontab'
Now, i escaped percent character:
Its work.
With this, cron didnt work.
root@# crontab -l
mysqldump -u user --password='password' -R --lock-tables db | gzip -c > "/home/bak/db_$(date +%F).sql.gz"
mysqldump -u user --password='password' -R --lock-tables db | gzip -c > "/home/bak/db_$(date +%F).sql.gz"
'man crontab'
The sixth field of a line in a crontab file is a string that
is executed by the shell at the specified times. A percent
character in this field (unless escaped by \) is translated
to a NEWLINE character.
is executed by the shell at the specified times. A percent
character in this field (unless escaped by \) is translated
to a NEWLINE character.
Now, i escaped percent character:
root@# crontab -l
mysqldump -u user --password='password' -R --lock-tables db | gzip -c > "/home/bak/db_$(date +\%F).sql.gz"
mysqldump -u user --password='password' -R --lock-tables db | gzip -c > "/home/bak/db_$(date +\%F).sql.gz"
Its work.
четверг, 25 марта 2010 г.
mysql Ruby
I've tired to install mysql Ruby libraries.
With this option, gem'll install mysql in /tmp directory.
Before run this, make sure u've install development tools like make,gcc, etc.
If u've problems after this installation, try to add
/usr/local/mysql/lib to /etc/ld.so.conf and run ldconfig.
This works fine for me.
With this option, gem'll install mysql in /tmp directory.
Before run this, make sure u've install development tools like make,gcc, etc.
- root: gem install mysql -i /tmp/ruby-mysql/ -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/mysql/bin/mysql_config
If u've problems after this installation, try to add
/usr/local/mysql/lib to /etc/ld.so.conf and run ldconfig.
This works fine for me.
Подписаться на:
Сообщения (Atom)