Code snippet to print out a go app memory status

Helps to trace memory leaks in a Golang application.

Golang – Debug a unit test manually

I ran into a tricky issue where all unit tests passed when executed from the IDE, but one test consistently failed when run from the command line. I won’t go into the details of the root cause (it was related to how the IDE handles the /dev/tty device), but I will provide instructions on how to manually debug a failing test.  …

Find all files which contain specific text and print these file names to the console

If a file contains either word “some” or word “text” then print its name

Restore UNIX acess permissions for all subfolders and files of the specified directory

How to compare two folders in UNIX using diff

Генерируем SSL сертификат с помощью Let’s Encrypt

Здесь описан процесс получения сертификатов letsencrypt в ручном режиме(это когда мы переносим сертификат на сервер вручную)

  • Клонируем репо letsencrypt’а
  • Запускаем генерацию командой:
 …

Анимация загрузки страницы без JavaScript

Если у Вас есть приложение, загрузка которого занимает значительное количество времени, то было бы здорово установить заставку, чтобы немного оживить страницу и не дать загрустить пользователю. Часто, анимацию делают с помощью JavaScript, забывая, что CSS дает нам весьма широкие и более легковесные решения.

 …