Kote - My kote blog - Page 2

Возвращение в Небывальщину

Получил огромное удовольствие от старой игры – компьютерного квеста из 90-х!  Та сама Небывальщина – горы глины и пластилина. Continue reading “Возвращение в Небывальщину”

Польская весна и SLAWOMIR в Брисбене

В Брисбен приходит весна! По такому случаю польское сообщество организовало фестиваль: “Весна, весенний польский фестиваль”.
Мы направились туда посмотреть на выступления и отведать польской кухни. Continue reading “Польская весна и SLAWOMIR в Брисбене”

Фестиваль красок в школе – School fun run

В нашей начальной школе прошло веселое красочное событие – фестиваль красок или, как его тут называют, School Fun Run. Для детей это большое веселье, а для школы отличный повод запустить кампанию по сбору средств. Рассказываю, как это работает. Continue reading “Фестиваль красок в школе – School fun run”

Remove old files in bash using ‘find’

How to quickly remove old files or likely old log files using bash? Just a few lines in bash can solve it.
Firstly, list all files older than 7 days for required directory:

find /home/my-user/my-logs -type f -mtime +7

After that, delete all those files:

find /home/my-user/my-logs -type f -mtime +7 -delete

Here are the man page for the find command in arch manual page.

Choosing the best editor for log search

Logs, logs, logs… they are everywhere! While scanning another endless log file, I wondered if there is any difference in the speed and performance of popular text editors when working with large log files. It turns out there is! Let’s compare Notepad, Notepad++, TextPad, and Atom in the speed of text search in log files.

Let’s focus on the following:

  • Startup time
  • Memory consumption at startup
  • Time to open an editor and a file (100 MB and 1 GB)
  • The amount of RAM used
  • Searchin for a line of text
  • Regular expression search

Continue reading “Choosing the best editor for log search”

Выбираем лучший редактор для поиска текста

Логов становится все больше и больше, а времени на их анализ и поиск всё меньше. Мне стало интересно, а есть ли разница в скорости и производительности популярных программ при работе с большими объемами текста. Оказывается есть! Будем сравнивать Notepad, Notepad++, TextPad и Atom в скорости поиска текста в лог-файлах.

Что будем измерять:

  • Время запуска
  • Потребление памяти при старте
  • Скорость открытия редактора и файла (100 Мб и 1 Гб)
  • Количество используемой оперативной памяти
  • Поиск строки текста
  • Поиск регулярного выражения

Continue reading “Выбираем лучший редактор для поиска текста”

Working with SSH keys for remote sessions in Linux

SSH keys can be used as an excellent choice for authenticating remote hosts. Using keys instead of simple usernames and passwords have many advantages, however, what is more, essential for me to – use an ssh key helps establish a connection faster and more secure. Let’s review how to create, share and use keys. Continue reading “Working with SSH keys for remote sessions in Linux”

Ревью: Hoa

Я открыл для себя замечательный платформер “Hoa”, который отлично подошёл для неторопливых зимних вечеров. Приятная рисованная графика и умиротворяющая музыка – самое лучшее лекарство от холодных тёмных вечеров. Continue reading “Ревью: Hoa”

HSTR (HiSToRy) – Advanced console history search

HSTR or HH is a great tool that speeds up console usage due to the intelligent search for recent and favorite commands. Before that, I used to have a few hacks like running grep for history ($ history | grep {my-search-request}), but with a new HH help, I feel like I can focus on tasks and not worry about recent commands entered as they can be accessed fast and convenient.

Continue reading “HSTR (HiSToRy) – Advanced console history search”