I’ve always been a lover of the command line and for some weird reason whatever environment I am in, I like to boot up applications from terminal.
This goes from the simplest of tasks, such as opening a Finder window from the current directory:
To opening my text editor:
However, in order to do the previous one, you actually need to set up your Mac with this command. You might think that it is difficult but it is not. It’s as simple as running the following command:
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
This will make a symbolic link between the Sublime Text app (their command which is built-in) and a folder which you normally have on your path.
Posted in tools
Lots of times when I talk to site owners, one of my first question that I ask them is "what is your backup strategy?" And shockingly enough I've seen so many with strategies that would make me not want to sleep at night.
I've seen people who are so sure in their code that they decide that they don't actually need to make backups. Which just tells me how immature they are. They really think the only thing that could affect their code's well-being is the code itself? How about the thing that it runs on (i.e. the server)? They crash from time to time and you lose data.
The next "backup strategy" that I've seen is people use cPanel or some other tool in order to make a local backup of the site and just leave it there. That's great if your database gets hacked or messed upend you have to revert it. However, what happens if your server goes into an unrecoverable state? Well then, you are out of luck because you put all of your eggs in one basket. The funny thing is, sometimes these peoples backup requires them to manually go in and click a button. I personally would at least look for a somewhat automated approach to doing this because the last thing you would want to do is have to revert your site's content back 1-2 months because you "forgot to take a backup".
Now that we have gone through two of the most common backup "strategies" that I have seen, let me talk about some that I would prefer to see people having.
If you don't take much away from this article, there are two key points that I want you to take away.
I hope you found this informative!
Thanks for reading.
Posted in tools