Install SSL Certificate and Change To HTTPS

Summary In this post, I will introduce how to install the SSL certificate for WordPress. Conclusion I did some research and tried different methods. Now I will provide the simplest ways. Apply for an SSL certificate; Download the certificate and sent it to the server; Do the following command: sudo yum install mod_ssl; Add a…

Update PHP for WordPress on CentOS

Summary In this post, I will introduce how to update PHP for WordPress. Conclusion As usual, I present the following snippets first. sudo yum remove php-common mod_php php-cli sudo yum install epel-release sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm sudo yum install yum-utils sudo yum-config-manager –enable remi-php72 sudo yum install php php-mysql –y sudo systemctl restart httpd Details…

A Generic Project Structure in C++

Summary In this post, I will introduce a generic structure for C++ projects. Details A clean structure is the basis of a clean project. I simplify the full version and present a simpler but useful structure here. 1. bin: The output executables. 2. build: This folder contains all object files. 3. docs: Any notes, like…

Git Snippets

Summary In this post, I will introduce some useful snippets related to Git. I will update this post from time to time. Details Rename Local Branches Say you want to rename the branch old-name to new-name locally. git checkout old-name git branch -m new-name # -m: move/rename a branch and its reflog Rename Local &…