Install Nginx
1 | yum install epel-release |
Start Nginx
1 | systemctl start nginx |
Install Nginx
1 | yum install epel-release |
Start Nginx
1 | systemctl start nginx |
1 | echo "# example" >> README.md |
Install acme.sh
1 | curl https://get.acme.sh | sh |
1 | #add in to file |
Reload enviroment
1 | source ~/.bashrc |
Install docker
1 | curl -fsSL https://get.docker.com -o get-docker.sh |
1 | sudo yum install golang -y |
1 | #Save credentials |
Here are the steps to restore a PostgreSQL dump to an Amazon RDS database:
Create an RDS instance with PostgreSQL compatibility, if you don’t have one.
Connect to your RDS instance using the psql command-line client or a PostgreSQL-compatible tool of your choice.
To restore an SQL dump to an Amazon RDS database, you can follow these steps:
First, you need to create an RDS instance with MySQL compatibility, if you don’t have one.
Connect to your RDS instance using the MySQL command-line client or a MySQL-compatible tool of your choice.
To export a database from Google Cloud SQL, you can use the gcloud command-line tool. Here are the steps:
1 | gcloud sql connect [INSTANCE_NAME] --user=[USERNAME] |
In Go-Gin, you can use the c.PostForm method to retrieve form variables from a POST request. The method takes the key of the form variable as its argument and returns the value of the variable as a string.
Here’s an example of how you can use the c.PostForm method to retrieve the value of a form variable named “name”: