文章

顯示從 8月, 2022 起發佈的文章

win10 90 days command troubleshoot

 slmgr /upk go to windows activation > troubleshoot

「教學」建立試用結束後的 Google Cloud Platform 免費VPS(free vps)

圖片
    Victor Hung ,  3 年 前 Google 提供了 $300 美元的額度(在特定的配置下剛好可以使用一年)讓使用者免費試用 Google Cloud Platform 產品,但其實在免費試用期結束後,我們還是可以在限制的用量內免費使用特定產品。例如最常見的 Google Compute Engine 就提供了以下免費條件: 每月 1 個 f1-micro 執行個體 (僅限美國地區「us-central1」、「us-east1」和「us-west1」) 每月 30 GB 硬碟空間 在指定地區每月可儲存 5 GB 快照 每月 1 GB 網路輸出量 (從北美輸出至中國和澳洲以外的所有地區) 因此我們所建立的執行個體 (instance) 規格與使用量不超過上述的標準,就可以繼續免費使用 Google Compute Engine 服務。 相關文章: 「教學」使用 GCP 台灣主機五分鐘快速架設 WordPress 網站 建立符合「一律免費」方案的執行個體 首先我們在 Google Compute Engine 服務中選擇「建立執行個體」依照上面免費條件,我們區域可以選擇「us-west1 (俄勒岡州)」;機器類型選擇「微型」也就是 1vCPU + 0.6GB 記憶體的方案;此外可以選擇免費額度 30GB 內的標準永久磁碟。 建立好執行個體後,在 VM 執行個體列表中,點選連接 SSH 下拉選單中「查看 gcloud 指令」就可以透過指令快速登入執行個體,不過電腦上必須先安裝 Google Cloud SDK。 使用 gcloud 指令透過終端機登入後,就可以正常連線到剛建立好的執行個體了! 如果您也是安裝全新的 Ubuntu 作業系統並且想要架設小型網站的話,可以參考之前的文章: 「教學」Amazon EC2 Ubuntu 安裝 Apache2 + MySQL + PHP 更詳細的「一律免費」方案的用量限制 在  Google Cloud Platform 免費版 中,Compute Engine 提供指定用量限制的配額,供使用者免費使用。在免費試用期間或試用期過後,只要不超過用量限制,使用者皆可免費使用 Compute Engine 產品。 免費試用期過後,如果使用者超過用量限制,系統就會根據本頁列出的價格向使用...

[linux fix] Failed to initialized xfconf: /usr/bin/dbus-launch terminated abnormally without any error message

 use xfce4-appfinder in lxde Failed to initialized xfconf: /usr/bin/dbus-launch terminated abnormally without any error message solved: apt install dbus-x11

[linux] mouse scroll speed config

 1. install imwheel 2. gedit ~/.imwheelrc 3. ".*" None, Up, Button4, 3 None, Down, Button5, 3 4. set session and startup, run command at startup: imwheel

[win10] check product key with command

  wmic path softwarelicensingservice get OA3xOriginalProductKey

[docker bug fix] publish/port forward arg need to be before the image name

Correct:   docker run --detach --publish=80:80 --name=webserver nginx Wrong:   docker run --detach --name=webserver nginx  --publish=80:80

[docker] Run a Container Interactively

  docker container run -it [docker_image] /bin/bash

alpine on VM settings

display: vga (not vmvga) bios: UEFI

win10 official extend trial 90days command

 slmgr.vbs /rearm

very cheap vps/vm online

  https://www.vultr.com/pricing/#cloud-compute/

[docker] install visual studio code with 1-command

apt update && apt install software-properties-common apt-transport-https wget -y && wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | apt-key add - && add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" && apt install code -y

[Mac] double click sh execute (How to run a shell script in OS X by double-clicking?)

  First in terminal make the script executable by typing the following command:   chmod a+x yourscriptname Then, in Finder, right-click your file and select "Open with" and then "Other...". Here you select the application you want the file to execute into, in this case it would be Terminal. To be able to select terminal you need to switch from "Recommended Applications" to "All Applications". (The Terminal.app application can be found in the Utilities folder) NOTE that unless you don't want to associate all files with this extension to be run in terminal you should not have "Always Open With" checked. After clicking OK you should be able to execute you script by simply double-clicking it.