Код отслеживания Google Analytics.
Sep 18, 2010
shell-framework debian package
A week ago I was asked about debian package with shell-framework. I've prepared the package and now it can be installed as standard package. Instruction can be found here
Ярлыки:
shell-framework
Jul 24, 2010
библиотека shell-framework
Вместо введения
Я пишу скрипты на bash. Это скорее ближе к хобби, хотя иногда нужно и по работе. Конечно, не каждый день, но довольно часто и уже довольно давно. Бывают ситуации, когда либо не хочется пользоваться другими script-языками или когда у заказчика нет специалиста который сможет поддержать ваши скрипты в будущем, если они написаны, например, на perl - в общем, у меня бывало много случаев, когда моими скриптами должен был пользоваться не только я, но и еще кто-то и написаны они должны были быть на bash, а не на чем-то ином. Проанализировав требования к command line interface (CLI) программе, я систематизировал их и написал библиотеку, о которой и пойдет речь ниже.
Я пишу скрипты на bash. Это скорее ближе к хобби, хотя иногда нужно и по работе. Конечно, не каждый день, но довольно часто и уже довольно давно. Бывают ситуации, когда либо не хочется пользоваться другими script-языками или когда у заказчика нет специалиста который сможет поддержать ваши скрипты в будущем, если они написаны, например, на perl - в общем, у меня бывало много случаев, когда моими скриптами должен был пользоваться не только я, но и еще кто-то и написаны они должны были быть на bash, а не на чем-то ином. Проанализировав требования к command line interface (CLI) программе, я систематизировал их и написал библиотеку, о которой и пойдет речь ниже.
Ярлыки:
shell-framework
Jul 23, 2010
blog was redesigned
Well, as you can see my blog was redesigned. New template approach impress me, but after all changes I've made some corrections.
Ярлыки:
blogger
Apr 2, 2010
One more note - sort, uniq and merging to the string
It is just one more note to myself. We have list of string - for example like this:
I need the same list without repeating of items and sorted.
bg, cal, cat, cd, chmod, clear, cmp, cp, date, df, diff, du, echo, exit, fg, file, find, grep, groups, gzip, head, history, id, info, jobs, kill, ln, locate, ls, man , mc, mkdir, more, mv, passwd, ps, pwd, rm, rmdir, scp, sed, set, sleep, slogin, sort, ssh, tail, tar, touch, uname, vi, wc, which, whoami.
I need the same list without repeating of items and sorted.
Feb 28, 2010
protection from brute force on ssh
When I've tired from brute force attacks on my computer at 22 port I create simple protection.
Feb 21, 2010
Cell-phone file system access
Just short note about how we can explorer file system of cell phone (in my case it was Nokia 3120 classic). The main idea can be found at http://dev.zuckschwerdt.org/openobex/wiki/ObexFs.
Ярлыки:
bluetooth,
cell-phone
Feb 13, 2010
mencoder ignore bitrate (1000 fps file)
Today I found my mencoder ignore bitrate option when I try to recode some file. After research I want to save here two links - http://lists.mplayerhq.hu/pipermail/mencoder-users/2006-April/003102.html and http://www.mplayerhq.hu/DOCS/HTML-single/en/MPlayer.html#id2910636 which show me to obligatory using "-ofps" option in case we have variable framerate in source file and fixed one in destination.
Feb 12, 2010
bash associative arrays(map, hash or how you them calls). part II
This is second part of story about associative arrays in bash. You will find first one here.
Well after very serious criticism about variable approach we have to look at second way. It is very simple - two arrays - keys and values.
Well after very serious criticism about variable approach we have to look at second way. It is very simple - two arrays - keys and values.
Ярлыки:
shell
bash associative arrays(map, hash or how you them calls). part I
There are a lot of programming languages where you can use associative arrays. Some times it has different name - map or hash for example, but the fact is bash had nothing like this before version 4.0 And if you use bash with version lesser then 4.0 you probably try to find some kind of solution.
Ярлыки:
shell
Oct 15, 2009
mplayer32 on debian amd64
Well actually mplayer on 64bit debian is good enough. But today evening I could not play old movie from old CD. After investigating it was clear mplayer cannot find an audio codec:
...
Requested audio codec family [voxware] (afm=dshow) not available.
Enable it at compilation.
Cannot find codec for audio format 0x75.
Read DOCS/HTML/en/codecs.html!
Audio: no sound
...But I was absolutely sure everything was nice in the past. The investigation of the issue showed the codec was accessible only for 32-bit version. Therefore I've found fast way to install mplayer32.
Subscribe to:
Posts (Atom)