When managing a website, you may encounter situations where you need to replace a specific word or domain across multiple files. This task can arise for various reasons, such as updating outdated content, rebranding, or correcting errors. Fortunately, you can achieve this efficiently by using command-line tools to recursively find …
Read More »SSH, FTP
How to find changed files in console
Relevant for Linux, macOS. This article lists commands that help you find files that have changed over a certain period. 1. Find all modified files in the current folder in order of freshness of changes. The most recent will be on top: find ./c -type f -printf '%TY-%Tm-%Td %TT %p\n' …
Read More »How to generate ssh key on mac
This instruction is small, obvious and simple. Open a terminal, enter the command: ssh-keygen -t rsa Hooray, the key is created! cat ~/.ssh/id_rsa.pub Thus, the contents of the public key are displayed. If you work with GitLab, then inside you just copy the contents to Account – Settings – SSH …
Read More »Invalid active developer path when trying to git clone
I had to spend some time on this problem. The description of this case – to the command git clone login@host . the terminal answered me: xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun Since I don’t need Xcode, the decision was made to remove it. Btw, …
Read More »Load key .ssh/id_rsa: bad permissions
I had a rather minor problem when trying to run the git clone command: Cloning into '.'... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/Users/meow/.ssh/id_rsa' are too open. It is required that your private key files are NOT accessible by others. This private key will …
Read More »Do you remember me? Let’s work!
I have about 1500 contacts on Skype, 99% of which are customers. From time to time, messages like “Remember me? We worked with you a year ago. I have a new issue, can we work again?”. It’s cool and pleasant to receive such messages, they amuse my vanity as a …
Read More »How to create a full backup of a WordPress site
I will not get tired of repeating how important it is to make backups of sites. This article describes 3 options for creating a backup – via ssh, via ftp, via the hosting provider’s panel, using a plugin. Option 1: backup via ssh 1. Connect to the server (you can …
Read More »