For example, you have a website / git repository, etc. And you don’t want to use Let’s Encrypt to get certificates, or it is a purely internal service, so we are quite satisfied with a self-signed certificate. In any case, we need to add a self-signed certificate to the Mac OS certificate store. Otherwise, youContinue Reading
Category: 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 synchronize local Git with remote Git by overwriting local changes
Git is a distributed version control system / revision control system. It’s used for tracking changes in source code during software development. In general all the changes in the branches. So you need at least one brach for each feature. When feature is done it merges to master branch. And you may want to deleteContinue Reading
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
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 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
An error on sudo: «unable to resolve host»
As we already saw in “How to set hostname in Linux“, hostname is used to identify the device in network. If we have not hostname matched to our ip, we can’t resolve our host. Edit /etc/hosts: 127.0.0.1 localhost# HERE! 127.0.1.1 HOSTNAME # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnetContinue Reading
How to fix git push error: RPC failed; result=22, HTTP code = 411
This error may appears when you trying to push changes into remote git repository. Don’t panic! It’s really simple to fix. Error: $ git push origin master…error: RPC failed; result=22, HTTP code = 411 fatal:The remote end hung up unexpectedly fatal:The remote end hung up unexpectedly Everything up-to-date… This is caused by a Git configurationContinue Reading
How to rename a local Git branch
Git is a popular version control system. It’s distributed and good for tracking changes in source code. Mostly uses during software development. Most teams use branches to make changes in projects. Branches have a unique names, but if you select wrong name, you can change it. Rename the current local branch git branch -m new_nameContinue Reading
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