Paintball

That is my team I have played paintball with. There are two girls one of them Is blond. Guess who?

Linux Tutorials for Newbies

When you learn something using practical approach, you can miss small fundamental bits of information. The bits can be useful or useless, but it’s always good to know them. That is the reason I scroll through many Linux tutorials every now and then. Most of them are casual, but I have to highlight a gem I recently found: the Linux basics from Daniel Robbins. They are perfectly structured and there were some points I missed during my self-education.

The articles in Linux Fundamentals series are focused on Linux basics and position themselves as tutorial for preparation to LPI exams. I wouldn’t consider the tutorials as robust exam preparation guide – exam topics are wider than the ones discussed in tutorial. But tutorials are still very good. They are written in a very good easy language with nice input of nerd humour.

http://www.funtoo.org/en/articles/linux/lpi/1

http://www.funtoo.org/en/articles/linux/lpi/2

http://www.funtoo.org/en/articles/linux/lpi/3

http://www.funtoo.org/en/articles/linux/lpi/4

There are few more topic oriented tutorials written by Daniel, like BASH, SED, AWK guides. There is a file system guide for the ones who does not know which file system to choose . I’m too lazy to publish all direct link to the articles here. Just open http://www.funtoo.org/ page and scroll down. You’ll find all you need.

В Воронеже даже собаки улыбаются

Счастливая воронежская собака

Lingvo dictionaries in Linux. Stardict way.

There is a version of Lingvo dictionaries for Stardict available on the net. I do not think it’s legal, so do not forget to purchase you Lingvo license before proceeding with the following instructions.

At first, install stardict and archiver:

yum -y install stardict p7zip

At second, download the dictionaries. Beware that original Lingvo dictionaries shipped with product will not work. You have to use special ones“.
Copy downloaded folders to /usr/share/stardict/dic. Now unpack them:

 cd /usr/share/stardict/dic; 7za e \*.7Z;

You’ll get a list of files and dirs. dirs are not needed, delete them:

for dir in *; do if [ -d $dir ]; then rm -rf $dir; fi  done

At last, kill all instances of Stardict and star one up. Go to “Manage dictionaries”: you shall see a list of added dictionaries there. If you see no any new dictionary, it means you have done something wrong. Go to the second tab (Manage Dict), choose query dict group, press [+] button, select all available (needed to you) dictionaries and press enter. Now you have to have the full list of dictionaries searchable.
Test it. Enjoy.

Linux random passwords generation

This post is more a note to myself than a message I want to deliver to me struggling readers. There are two utilities for generating random passwords and one hack-around.

pwgen

Generates MANY passwords simultaneously. Very handy if somebody is behind your back watching you.

[root@hp ~]# pwgen
OVo4jiev Cohkah0r Iesev0ec thefuz0F asho6Zai em3tok5I Quoogh2k leeRuhi1
Eica7gie aew1ieTh Ukeewie3 Tee3aesa zasiCie7 iey9Ugho Eex5phae aip2ohHe
uL8AGee2 bux8rohX Aiv1voo2 AeS5thie uli1Shai aeWee0ai sha6aeV2 ni2Oong4
ahji7AiW rei0za9A uK1eih8a phoo4Aih taiGh0ab uod2ho8I tooX9coh jeeC5pie
ohxiCh7u oluif8Co OhTieC7e Phuro0sh eeca7Atu yee3Aeve Iwi1nige aiyu3Ein
AiCee0ba eC5Saehi voa2Aina ge4eiWee che8EeD2 Ait5ohth aQuahp4o oosou2Si
wa3aitiZ fah2oGhu do8oor5A Ied9Erob Caizei5a meeFai6b roh8WooW Lah8ieph
Eixoh6zi Cee8eidi eeChah6I eMohrij7 Zeisu0ha oech6Ae9 cioreT6p ee2Ohsha
Uu6yae5V zohShea8 Eizubo9r Reek2eiv Aak0veb7 phei3Ife onaeh7Oo jaiMopi9
Phohm9vi Ai3EeYie aequeeN8 eCiug9ei keiRee6I Aikei9wo tugh5Pae yie4maTu
eiH5Jei4 aeChia4I ahs3seeS eeg6Pa7M pei8Jooy ih1phiDu jee1ai4U uuY6eRai
wee5si4I ui2AhSoa Shee9EeB ahV4oof9 cei3pheZ iB5daw3u saegh4Lo Waroo1ah
aeth1Loo ohReesh4 Saidae7o meB7tha6 Eetae9Oh meiyiR5e AeTooc3c Bu0ou0se
Ahree5Of eiwuJie9 Cuogh7ae eekeeB8V ruu0Yoqu angie1Ki Oang3eeb Oobe9jiP
Loo3Oova yieNee0n moo2aiSh aem6ooD3 Paehoh2w xee6Ooph acahph2A kooGu5Ie
hag2Buon chah4Bii xaequ4In Ooy9Lohk oophoh4N Oo5Roh4a Phe8choo xa2Thoo4
XahBoo4j eeHah2ai Quaico6D Lauh0eiF Eiv9ga9c ih9pooPh aedeLaS3 ohleiGo2
aPh7wivi le4Xah9d lahl4Hei shu2Kuch OhfeDi7z Aengaej7 Phie4oom eige6Fae
Xaesh2Ju iN7Coh3S The8Ij4z kae0OGhi Shei6ohp RooReim6 Pheih3Ai Aikah8sh
taiph4Ei kaoRoh1f om0moh3S uaphee7E lab4Xu9k kahh3saZ ain8Zeic Uu1fohvo

apg

Generates few random passwords.

[root@hp ~]# apg
johebud6
VuwejThig1
TegtuIdNi
FlabEpNeec
bytjeewk
voyHatadd5

Unix hacker’s way.

This way is considered to be insecure, but Jesus! Who would know you have used this freaking way!

for ((n=0;n<10;n++)); do dd if=/dev/urandom count=1 2> /dev/null | base64 | sed -ne 2p | cut -c-8; done

Тату

Истина

Fregimus приводит перечень вещей, носящих имя “истина”.

1. Истина соответствия: истинно то, и только то, что соответствует фактической реальности. Установление истины в этом смысле требует учета возможных различий реальных и модельных фактов.

2. Истина когерентности: истинно то и только то, что находится в согласии с существующей системой знания. Установление такой истины зависит он возможности принять во внимание все существующее знание — или, по самой крайней мере, релевантное. К этой группе, как мне видится, относится большинство научных знаний.

3. Прагматическая, или прикладная истина: истинно то и только то, что используется удовлетворительным образом. Как я понимаю, сюда относятся традиционные истины, принимаемые некритически.

4. Наивный эпистемологический идеализм: мы соглашаемся считать нечто истинным, не требуя свидетельств в подкрепление факта. Например, геометрические аксиомы.

5. Наивный онтологический реализм: истинность утверждений об отношениях явлений не зависит от ни наших наблюдений или фактических знаний, ни даже от нашей возможности о них когда-либо узнать.

Большие секреты маленьких провайдеров.

Интересные признания маленьких интернет-провайдеров:

Добрый день!
вопрос есть.
Фирма является мелким провайдером, 600 портов диалапа на базе lucent, и с пару десятков портов АДСЛ на зикселях+локалка в офисе.
сейчас это всё дело тянет маршрутизатор на базе PC. Квадракор,4 гига памяти, сквид для офисных нужд. используемые необходимые сервисы на этом маршрутизаторе: bgp, openvpn, pppoe, vlan.
подумываем полностью заменить на циску, т.к. есть возможность заказать на ebay.com и привезти из америки железо.
начальство выделяет не большую сумму – от 700-1300у.е. в зависимости от модели.
посоветуйте какой маршрутизатор циско можно было бы взять для замены нынешнего PC маршрутизатора?

В комментах:

>Ключевой вопрос: а нахрена?
там где стоит писюк – тяжёлые условия работы – пыль, жара. а это враг убийства кулеров :)
останавливать писюк для профилактики (замена БП и кулеров) категорически нельзя.
насколько показывает практика – циски в этом плане надёжнее в 1000 раз.
когда здание ломали частично, в помещении стояла пыль как в тумане. все 2950 выдержали на ура.
у писюков БП повыходили из строя.. вот и все сравнение.

>если производительность заканчивается
нет, производительности данного писюка хватает выше крыши.

В комментах советуют: “работает – не трогай”.

From cisco_ru

Fast appending files to tar archive is impossible.

Eventually, tar is very slow for appending files to the existing tarball. I’m particularly talking about following options:

-r – append files to the end of an archive
-u – only append files newer than copy in archive

Logically thinking, for -u to work, it should accomplish linear search through the archive. Than bigger the archive, than slower the search. Moreover, if you’ll try to append in the loop, it will accomplish search as many times as many iterations you loop has. I would advice to use in the most exceptional case ONLY. Try avoiding

# -u. slow inefficient approach of taring multiple files
for file in $(ls -A)
do
    tar -uf tarball.tar $file;		#traverses all archive to append the file.
done

You’d think that -r option usage forces tar application to append files to the end of the archive, getting the position of the archive’s end from archive’s index. It doesn’t. Tar format is designed in a way that it has no index.

# -r approach is also slow and inefficient
for file in $(ls -A)
do
    tar -rf tarball.tar $file;		#traverses all archive to append the file.
done

However, TAR supports several formats for its archive. But they are not well-documented. I had a brief overview of them, and looks like
–format=gnu is the most recent and featured one. And It still has no index. I no longer understand why tar is even used. Despite of that, below is a workaround, allowing for packing unlimited amounts of files right instant. I recommend to never use append function with tar format. Instead, get to know what are you going to archive, prepare necessary files, and archive them all.

# faster approach for taring multiple files. No appending
ls -A >> list.txt
tar -cT list.txt -f backup.tar

Mobile phone design

There are people who follows mainstream and like it. There are ones, who follows mainstream and dislikes it. There is somebody trying to change mainstream. That guy came up with a brilliant idea. I was really impressed by simplicity of the idea. Really, why nobody developed mobile with design like that?

Author, source.