YAML, better for configuration files than JSON

Many projects use JSON as a configuration file , the most obvious example is the npm and yarn use the package.json file . Of course, this is more because JSON and JS are inextricably linked. However, JSON is actually a * * * very bad * * * configur...

on DEV

Google Drive download page with Nginx and rclone

After writing using rclone to mount services such as Google Drive on Linux, it occurred to me that there are a lot of ways to play around with the ability to mount Google Drive and other netbooks. One of the ways to do this is to combine it with a we...

Issuing Let's Encrypt Certificates with acme.sh

I’ve been having problems issuing Let’s Encrypt certificates with certbot for the last few days, Python version issues and pip source issues. It’s all kinds of stupid. For a user like me, Python creates more problems than it solves. So they started...

Stop DHCP From Changing resolv.conf

For DHCP users, there may be times when you need to edit /etc/resolv.conf to use other nameservers. Then, after a period of time (or after a system reboot), you discover that your changes to /etc/resolv.conf have been reverted. This tutorial shows ...

Github acquired by Microsoft

Congratulations to GitHub on their acquisition by Microsoft! said-to-have-agreed-to-acquire-coding-site-github) This is validation of the growing influence of software developers in the world The software community owes a lot to GitHub, and that incl...

What is the GDPR?

I’ve received at least a couple dozen emails from services about privacy protocols in the last few days (if you haven’t received or even heard of GDPR, you barely use any of the major web services on the planet). So what exactly is this GDPR? Intro...

Rewriting Github webhook backend services with Golang

Causes I wrote a while back [continuous integration using Github’s Webhook feature] (https://moonagic.com/continuous-integration-with-github-webhook/), At the time using nodejs to write a webhook backend service . The program has been running steadily f...

What is the difference between ++i and i++ in a for loop?

i++ and ++i are classic topics in C-system languages, We know that the apparent difference between i++ and +++i is that the return value of +++i is i+1, while i++ is i, and their low-level implementations are: ++i implementation: ``c’’ int operator...

on Code

Continuous Integration with Github's Webhook Feature

Webhook](https://developer.github.com/webhooks/), also known as a hook, is a very useful tool. You can customize your Webhook to monitor your Github.com posts for various events, the most common of which are push events. If you set up a webhook to mo...

on VPS

How to buy VPS

What is a VPS? The full name of VPS is Virtual Private Server (VPS). In fact, it is the physical machine on the open virtual machine. Many IDC service providers like to give their VPS a silly-sounding name such as Aliyun’s ECS, such as Tencent’s CVM an...

on VPS