Skip to main content

Posts

Zip based MySQL setup on Win10

Grab the zip file from https://dev.mysql.com/downloads/mysql/ and unzip Add the mysql bin folder into your PATH mysqld --initialize-insecure --console see https://dev.mysql.com/doc/refman/8.0/en/option-files.html if you need override the default config. mysqld --install (Run as Admin) net start MySQL mysql -u root to login without password mysql>set password='rootpassword'; mysql>create user 'dev'@'localhost' identified by 'somepassword'; mysql>grant all privileges on *.* to 'dev'@'localhost'; mysql>FLUSH PRIVILEGES;

javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate).

The recent IntelliJ IDEA 2021.1.2 (Ultimate Edition Build #IU-211.7442.40, built on June 1, 2021) has disabled TLS 1.0 for security reason, so you will not be able to connect to the remote database. As a workaround, set specifically TLSv1.2 in MySQL DB connection.

Add a network printer in Mac Big Sur

  You need know the IP address of that network printer, please check with your IT guy or check the IP addresss if you have it setup already in Windows (shown in Ports tab of Printer properties). In Mac Big Sur, add Printer by providing the IP address. select IPP as protocol. I have a FX DocuCentre-V C2265 PCL 6, so I selected Generic PCL Printer to use. Once printer is added, double click the printer to open up the queue, and print a test paper to verify. If you select Generic PostScript Printer, it could prints dozens of waste.

Cloud Shell and gcloud

gcloud auth list gcloud config list project gcloud config get-value compute/zone gcloud config get-value compute/region gcloud config list --all gcloud components list gcloud compute instances create gcelab2 --machine-type n1-standard-2 --zone $ZONE gcloud compute ssh gcelab2 --zone $ZONE

GKE Kubernetes Engine

gcloud config set compute/zone us-central1-a gcloud container clusters create [CLUSTER-NAME] gcloud container clusters get-credentials [CLUSTER-NAME] kubectl create deployment hello-server --image=gcr.io/google-samples/hello-app:1.0 kubectl expose deployment hello-server --type=LoadBalancer --port 8080 kubectl get service gcloud container clusters delete [CLUSTER-NAME]

The Tower of Koutoubia Mosque