Very often I need to replace a narrow widget, which for some reason is assigned to VKontakte with a fixed width of 300px, with a percentage, for example 100% – in order to be displayed on the entire width of the side column. The solution is simple, make changes to …
Read More »How to show hidden files in Finder?
By default, the Finder does not show any files or folders that begin with a dot. To allow Finder to show hidden files, run the following command in the console: defaults write com.apple.finder AppleShowAllFiles TRUE ; killall Finder To hide the display of hidden files again, use the command: defaults …
Read More »On_sent_ok not working in Contact Form 7
If your site uses the old version of WordPress and the Contact Form 7 plugin, it is enough to use the code in the Advanced settings tab: on_sent_ok: "yaCounterXXXXXXXX.reachGoal('mygoal');" Where XXXXXXXX is the counter ID in Yandex Metrika, mygoal is the name of the goal that was previously created in …
Read More »How to recursively replace a domain, word, or phrase in a database
I describe this task using the example of a transferred WordPress site to another folder of another domain. To implement it, you need to search the database by domain name, you will see in which tables there are records with this domain. Then make a SQL query in the format: …
Read More »How to host Wp site in a separate folder of the domain
This article is about moving a site to an internal folder of another site. 1. Transfer site files to a new folder. 2. Export the database, in the dump change the old domain to the new one (with the folder name). For example, newdomainname.com/folder (Important! Do not put a slash …
Read More »Service tags for Contact Form 7
The most common question is “How to find the Contact Form 7 url of the page from which the form was filled out?” Here is a list of service tags that can help you get data about the user who filled out the form: [_remote_ip] Sender's IP address [_user_agent] User …
Read More »Warning: include cfg/tables.inc.php в Shop Script
I am not a fan of Shop Script, but his glitches are easily fixed. An error was found on the site in the filter, in the admin panel when working with the removal of additions to the product, etc. The error is always the same: Warning: include(./cfg/tables.inc.php) [function.include]: failed to …
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 »