пятница, 1 апреля 2011 г.

Kernel: boot time parameters

With this command you can see boot time parameters of running kernel.

cat /proc/cmdline

Output ll be like this:

root=/dev/disk/by-uuid/e2d77d8c-52e2-4a21-881a-c5bae4645a1c ro vga=775

четверг, 31 марта 2011 г.

Wine: run app in virtual desktop

Example:

wine explorer /desktop=fallout,640x480 fallout2.exe

Urxvt: open url with 1 click

Add this to .Xdefaults
URxvt.perl-ext-common:  default,matcher URxvt.urlLauncher:  firefox URxvt.matcher.button:   1 URxvt.colorUL:      #86a2be

вторник, 12 октября 2010 г.

Mplayer keyboard shortcuts

Mplayer keyboard shortcuts:

  • 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

среда, 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.

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 ;

среда, 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