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 »Macbook
Display: inline-block does not stretch to width, but sticks to the left In Safari
The problem is described in the title of this article. If elements that in normal browsers stretch across the width of the stage with active display: inline-block; in Safari ignore the width and stick together on the left, then for the parent to which this inline-block was assigned, try 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 »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 »How to take a screenshot on a Macbook
Most often, I use the Screenfly Chrome extension for screenshots if I need to save a screenshot of the page locally, or the Joxy extension if I need to send a screenshot to someone. But sometimes I have to take screenshots using the Macbook itself, and I persistently forget the …
Read More »How to find all screenshots on your Macbook
By default, on a Mac, screenshots taken with Shift Command 4 are saved to the desktop. Very often they are renamed there, very often copied to other folders and renamed. The Mac has a great way to find all the screenshots ever taken on that computer. Open Finder, In the …
Read More »