How to fix

Git: «Corrupt loose object»

Also you can see something like this in you terminal: error: object file .git/objects/03/9e5691db59686e2afce2da700853398c961b4a is empty After the computer crashes, git showed: $ git status error: object file .git/objects/03/9e5691db59686e2afce2da700853398c961b4a is empty error: object file .git/objects/03/9e5691db59686e2afce2da700853398c961b4a is empty fatal: loose object 039e5691db59686e2afce2da700853398c961b4a (stored in .git/objects/03/9e5691db59686e2afce2da700853398c961b4a) is corrupt Git is a control version system. So if weContinue Reading


How to fix

How to flush DNS cache in Ubuntu / Debian / Linux Mint

The Domain Name System (DNS) is a hierarchical decentralized naming system. It’s used for computers, services, or other resources connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. Most prominently, it translates more readily memorized domain names to the numerical IP addresses.Continue Reading


How to fix

ERROR 1372 (HY000): Password hash should be a 41-digit hexadecimal number in MySQL / MariaDB

MySQL is an open source relational database management system. MariaDB is a fork of MySQL. In MySQL / MariaDB you can create a user and he will be authenticated by password. But sometimes we all make mistakes… Error: mysql> GRANT USAGE ON *.* TO ‘user’@’localhost’ IDENTIFIED BY PASSWORD ‘s3cr3t’;ERROR 1372 (HY000): Password hash should beContinue Reading


How to fix

How to increase uwsgi + nginx timeout

uWSGI is a software application that “aims at developing a full stack for building hosting services”. Web server NGINX is a free, open-source, high-performance HTTP server. Add to niginx’s config proxy location section: proxy_connect_timeout 600;proxy_send_timeout 600;proxy_read_timeout 600;send_timeout 600;uwsgi_read_timeout 600; Also you should increase a harakiri timeout in uwsgi.ini harakiri = 600 And reload configurations for uwsgi and nginx systemctl restart uwsgi # or touch reloadContinue Reading


How to fix

How to set hostname in Linux

In computer networking, a hostname (archaically nodename) is a label. It’s assigned to a device connected to a computer network. That is used to identify the device in network. sudo hostname {{ new hostname }} – Will work till system restart. Define hostname permanently: For newer distributives, that uses SystemD init system: sudo hostnamectl set-hostname {{ new hostname }}Continue Reading