Легко перебрать кодировки
При помощи данного цикла:for e in `iconv -l`; do echo $e; iconv -f $e <<< 'образец'; echo; done 2>/dev/null | less
View ArticleПолезные комманды
dmidecode -- is a tool for dumping a computer's DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the system's hardware components, as well as other...
View ArticleАнонимность в сети
Torэто программный проект, который поможет вам защититься от "анализа потока данных"— разновидности сетевого надзора, который угрожает персональной свободе и приватности, конфиденциальности бизнес...
View ArticleУдобная утилита для генерации паролей
pwgen - generate pronounceable passwordsПример использования:pwgen -A1 13A - использовать small case1 - вывести один пароль на строку13 - количество символов в пароле
View ArticleКонтролировать пропеллеры просто (DELL)
1. Download the tar zipped file from dellfand's site(http://dellfand.dinglisch.net), unzip it , cd into the folder and run 'make'. This produces the executable. You have done this already.2. As root,...
View ArticleЗабавно
Когда компьютер заражён вендой, другие вирусы и черви уже не представляют опасности.Заставить "разговаривать" винчестер (Linux way):cat /dev/sda | aplay -fdat
View ArticleВремя, создание образа директории
Use the date command with the -d parameter, and pass in a number of date increments in the future in days, minutes, years, months, or even weeks. For instance, to find the date 3 weeks in the future,...
View ArticleПоказывать прогресс при запущеной dd
dd is a generic command-line tool for copying files from 1 location to another. It is often used to copy entire disk images.Like many Linux command line tools, it operates silently unless something...
View ArticleGet Directory Path of an executing Batch file (win)
Most people probably know that can use the variable %0 in a batch file to get the name of the executing batch file. However if you use that in conjunction with some batch parameter modifiers you can...
View Articlersync usage
rsync --include-from=/tmp/include.txt --exclude-from=/tmp/exclude.txt -aRv ./src /tmp/destinclude.txt>>*.pdfexclude.txt>>*.*команда копирует из источника все файлы с расширением pdf.
View ArticleЛегко прибить процесс (win)
taskkill /F /IM прога /T/F Принудительное завершение процесса./IM <образ>Имя образа процесса, который требуетсязавершить. Для указания всех процессовможно использовать символ шаблона '*'./T...
View ArticleQuickest way to send files on local network
On the receiving end:Code:nc -vv -l -p 1234 > filenameon the sending machine:Code:cat myfile | nc -c 192.168.1.22 1234Change IP and port (1234) if needed.
View ArticleRestore files by grep
Шустро восстановить удаленные/потерянные/случайно_измененные текстовые файлы можно и грепомgrep -i -a -B10 -A100 'Строка или текст из файла, который потерпел катастрофу' /dev/sda1 > result.txt...
View ArticleКак погасить питание на USB программно?
echo "suspend" > /sys/bus/usb/devices/usb2/power/levelecho "auto" > /sys/bus/usb/devices/usb2/power/level
View Articleandroid vibrator
To make vibrator works you need make few steps:1. in sources:Vibrator vb = ( Vibrator )getApplication().getSystemService( Service.VIBRATOR_SERVICE );vb.vibrate( 1000 );2. in application manifest:...
View ArticleПереименовать группу файлов
Often over time, we will want to reorganize a group of files by renaming them.To rename *.txt to *.bak (e.g. to rename ham.txt to ham.bak)for f in *.txt; do mv "$f" "${f%.txt}.bak"; doneTo remove...
View ArticleSplit large file
Have you ever want to split a large file into several small files? I’ve face this problem few days ago. I need to split a large file (3GB log file) into several smaller file where i can read it using...
View ArticleCreate bootable USB key with Windows 7 from Linux
1. dd if=/w7.iso of=/dev/sdx2. ms-sys -7 /dev/sdxLink to ms-sys in AUR (archlinux)
View Article