a blog about nothing
Backup VPS
Here are simple steps to backup your VPS.
Backup MySQL database
Create a directory to store the backup files. Then run mysqldump command to backup your database.
mysqldump -u your_mysql_user -pyour_mysql_password your_database_name > /path/to/dump_$(date +\%Y\%m\%d\%H\%M\%S).sql
Or you run it as supersuer and backup all databases in once.
sudo mysqldump --all-databases > /path/to/dump_$(date +\%Y\%m\%d\%H\%M\%S).sql
To automate this, schedule a cron job that will run this command on a daily basis.
crontab -e
Insert the following line to execute the mysqldump command every day at midnight.
…A quick script to build and deploy hugo site on VPS
I had been using GitHub and Netlify for this site but lack of some features such as access to server logs finally got too much. So I decided to move this blog to my VPS.
One thing I really love about using Github is CI/CD and Github Actions. But I wanted something even simpler with less dependencies. So I decided to use a simple bash script to build and deploy the site.
…Those with ADHD. What's a hobby that never gets boring? | Hacker News
Ask HN: Those with ADHD. What’s a hobby that never gets boring? | Hacker News — Read on news.ycombinator.com/item
…Why I don't want to grow my freelance design studio into an agency | Nela Dunato Art & Design
I’m often asked if I plan to hire more people and grow my own design agency? I don’t, and in this article I explain why. — Read on neladunato.com/blog/why-wont-grow-freelance-studio-into-agency/
…What's your favourite hobby and how did it start? | Hacker News
Ask HN: What’s your favourite hobby and how did it start? | Hacker News — Read on news.ycombinator.com/item
…Ask HN: Why did Python win? | Hacker News
Ask HN: Why did Python win? | Hacker News — Read on news.ycombinator.com/item
…The Hidden Brain Connections Between Our Hands and Tongues | Quanta Magazine
Sticking out your tongue while doing delicate work with your hands reveals a history of evolutionary relationships. — Read on www.quantamagazine.org/the-hidden-brain-connections-between-our-hands-and-tongues-20230828/
…Ask HN: What are some captivating fair play mystery books that you've read | Hacker News
Ask HN: What are some captivating fair play mystery books that you’ve read | Hacker News — Read on news.ycombinator.com/item
…Ask HN: What's the coolest physical thing you've made? | Hacker News
Ask HN: What’s the coolest physical thing you’ve made? | Hacker News — Read on news.ycombinator.com/item
…Past Performance Does Not Guarantee Future Results: A Reflection on Human Nature and Trading Strategies
It’s both intriguing and somewhat disheartening to observe how trading concepts often mirror human behavior. Here’s how:
Follow the Trend
In the investment world, the saying “past performance does not guarantee future results” is well-known. Despite this warning, many successful trend followers have found that stocks moving up generally continue to do so, and vice versa.
Interestingly, this concept applies to humans as well. Those who are happy and kind often continue in the same manner or even improve, while those who are miserable tend to spiral downward.
…