Author Archives: tompos

avatar

About tompos

Hungary, Budapest

optimize XFS for a RAID array

This script helps you to find the right mkfs.xfs command. Source: http://www.mythtv.org/wiki/Optimizing_Performance#Further_Information

Posted in IT, Linux | Leave a comment

MySQL: binary search without index

This is a flash of a genius: http://linxtrix.com/2007/09/19/tricking-mysql-to-use-index-on-binary-search/ Problem: you can’t search case insensitive words. This trick will “do” it for you. Make a test between this two ways: SELECT * FROM test WHERE binary login = ‘SomeCaseSensitiveLogin’ is million … Continue reading

Posted in IT | Leave a comment

Import Ingo (Horde) sieve rules into Roundcube

1. Replace the default managesieve plugin by sieverules 2. Copy the old ruleset to the place, where dovecot is looks for it. In case of cyrus-imapd it’s here by default: /var/spool/sieve/ 3. Rename it from ingo.script to ingo.sieve 4. Go … Continue reading

Posted in IT | Leave a comment

mdadm run existing array

mdadm -A /dev/md5 /dev/sd[dc]1

Posted in Uncategorized | Leave a comment

tcpdump+wireshark

This command can be used to make tcpdump output readable by wireshark: tcpdump -vv -s 0 -i eth0 -w tcpdump.out tcp and port 4880 with headers and data tcpdump -i eth0 -s 1024 -l -A ‘port 80 and host 1.2.3.4’

Posted in BSD, IT, Linux | Leave a comment

OS X + samba

unix extensions = on From this mail.

Posted in Uncategorized | Leave a comment

What is sed?

“Sed is a very powerful tool. A simple sed statement may turn a cat into cement. Observe: echo cat | sed statement“

Posted in Fun, IT, Quotes | Leave a comment

KVM: using a single partition [not ready]

The original howto can be found here: http://tips.at.gg3.net/2008/07/17/kvm-virtualize-a-single-partition/ . Actually it did not work for me out of the box. The main goal of this howto is the ability of using a single real partition as a single partition in … Continue reading

Posted in IT, Linux, Uncategorized | Leave a comment

tuning zsh

not expanding wildcards: $ setopt NOGLOB

Posted in Uncategorized | Leave a comment

dh-make-perl usage

$ apt-get install dh-make-perl $ dh-make-perl –build –cpan Mail-DeliveryStatus-BounceParser

Posted in Uncategorized | Leave a comment

grub text mode matrix table

From here: 320×200 640×400 640×480 800×500 800×600 896×672 1024×640 1024×768 1152×720 1280×1024 1440×900 1600×1200 4 bit 770 772 774 8 bit 768 769 879 771 815 874 773 869 775 864 796 15-bit 781 801 784 880 787 816 875 … Continue reading

Posted in Uncategorized | Leave a comment

ESET NOD32 + Debian/Ubuntu + paravirtualized guest

$ apt-get install ia32-libs $ dpkg -i –force-architecture esets-3.0.15.i386.deb dpkg – warning, overriding problem because –force enabled: package architecture (i386) does not match system (amd64) Selecting previously deselected package esets. (Reading database … 16356 files and directories currently installed.) Unpacking … Continue reading

Posted in IT, Linux, Ubuntu | Leave a comment

LXC on Ubuntu

This small howto describes a basic installation Linux Containers on Ubuntu 10.04 Lucid (or on Debian Sid). A good howto, which describes and explains many things, but Archlinux specific: http://wiki.archlinux.org/index.php/Linux_Containers#Host_device_access_settings

Posted in IT, Linux, Ubuntu | Leave a comment

Clapf+postfix install

Clapf is a powerful fast and simple spam- and virusfilter. It’s made in Hungary by Janos Suto. Official website: http://clapf.acts.hu I wrote a howto: http://clapf.acts.hu/wiki/doku.php/howto:ubuntu_clapf_mysql_libclamav

Posted in IT | Leave a comment

Clonezilla quick howto

This small howto describes, how to install and configure Clonezilla. Clonezilla is a bit similar to Norton Ghost. Its biggest disadvantage is, that it cannot clone a HDD or a device to a smaller one. It’s developed on Ubuntu, but … Continue reading

Posted in IT | Leave a comment

Thunderbird useful addons

keyconfig: http://mozilla.dorando.at/keyconfig.xpi functions for keyconfig: http://pqrs.org/firefox/extensions/functions_for_keyconfig/ QuickFolders: https://addons.mozilla.org/en-US/thunderbird/addon/3254 Lightning: https://addons.mozilla.org/en-US/thunderbird/addon/2313 Compatibility Reporter: https://addons.mozilla.org/hu/thunderbird/addon/15003

Posted in IT | Leave a comment

vim tuning

vim trick, tuning, tips, commands Continue reading

Posted in BSD, IT, Linux | Leave a comment

Ambrose Bierce

Lét: az öröklét általunk ismert része. – Ambrose Bierce

Posted in Fun, Quotes | Leave a comment

generate self-signed certificate in one command

DOMAIN= openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 -keyout $DOMAIN.pem -out $DOMAIN.pem

Posted in IT | Leave a comment

generate certificate request

openssl req -new -keyout DOMAIN.key -out DOMAIN.csr -config DOMAIN.cnf

Posted in IT | Leave a comment

crontab regular jobs: clapf, backup, apt-get, mysql

These crontab entries are for a common (email) server, they can be used in common on any server.

Posted in BSD, IT, Linux | Leave a comment

Apache SSL + proxy

SSLProxyEngine on ProxyPass       /                       https://192.168.1.1/ ProxyPreserveHost On

Posted in IT | Leave a comment

MLF listaarchívumok keresése

http://groups.google.com/group/hun.lists.mlf.linux/topics http://groups.google.com/group/hun.lists.mlf.linux-flame/topics http://groups.google.com/group/hun.lists.mlf.linux++/topics

Posted in IT, Linux, Uncategorized | Leave a comment

GRUB kiirasa az osszes meghajtora (SATA, SCSI)

grub> device (hd0) /dev/sda # /boot partition root (hd0,0) setup (hd0) device (hd0) /dev/sdb # /boot partition root (hd0,0) setup (hd0)

Posted in IT, Linux | Leave a comment

Nyomtatókat automatikusan felcsatolo vbs logon szkript (attach printer logon script)

This small vbs script automatically attach proper printers for users.

Posted in IT, Windows | Leave a comment

Redirect from html

Redirect the browser after some seconds to an URL. In this example in 5 seconds. <META HTTP-EQUIV="REFRESH" CONTENT="5 ; URL=http://rtfm.co.hu">

Posted in IT | Leave a comment

Urlapok

Egy teljes, magyar nyelvű leírás html űrlapok készítéséről. http://download.rtfm.co.hu/pub/urlapok.html Full html forms mini-howto, unfortanetely in Hungarian. http://download.rtfm.co.hu/pub/urlapok.html

Posted in IT, Uncategorized | Leave a comment

vi quick tutorial magyarul

Remek vi leírás sürgős esetekre: http://www.vajko.hu/vitutor.html

Posted in BSD, IT, Linux | Leave a comment

xorg.conf + wacom

A full example xorg.conf for using wacom.

Posted in BSD, IT, Linux, Uncategorized | Leave a comment

windows key shortcuts

Windows + D: Minimize or restore all windows Windows + E: Display Windows Explorer Windows + F: Display Search for files Windows + Ctrl + F: Display Search for computer Windows + F1: Display Help and Support Center Windows + … Continue reading

Posted in IT, Windows | Leave a comment