-
Open the Terminal
-
Use
mysqldumpto backup your databases -
Check for MySQL processes with:
ps -ax | grep mysql -
Stop and kill any MySQL processes
-
Analyze MySQL on HomeBrew:
brew remove mysql
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: Convey Test/Benchmark Environment | |
| Parameters: | |
| AmiId: | |
| Type: String | |
| Default: 'ami-03d5c68bab01f3496' |
| ●● | |
| 2 successes / 0 failures / 0 errors / 0 pending : 0.008108 seconds |
| // https://play.golang.org/p/UPn9o_AMpmr | |
| package main | |
| import ( | |
| "fmt" | |
| "golang.org/x/crypto/salsa20" | |
| ) | |
| var key = [32]byte{} |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: backend-config | |
| data: | |
| APP_DEBUG: "false" | |
| APP_ENV: production | |
| APP_KEY: changeme | |
| APP_LOG_LEVEL: debug | |
| APP_NAME: "Laravel K8s" |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
https://cloud.google.com/compute/docs/instances/enable-nested-virtualization-vm-instances?hl=en を参考に Compute Engine で nested VM を構築。
gcloud config set compute/zone us-central1-b
gcloud compute disks create disk1 --image-project debian-cloud --image-family debian-9
gcloud compute images create nested-vm-image --source-disk disk1 --licenses "https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"
gcloud compute instances create example-nested-vm --image nested-vm-image --min-cpu-platform="Intel Skylake"
| /** | |
| * Generates number of random geolocation points given a center and a radius. | |
| * @param {Object} center A JS object with lat and lng attributes. | |
| * @param {number} radius Radius in meters. | |
| * @param {number} count Number of points to generate. | |
| * @return {array} Array of Objects with lat and lng attributes. | |
| */ | |
| function generateRandomPoints(center, radius, count) { | |
| var points = []; | |
| for (var i=0; i<count; i++) { |