nodejs Upgrade Nodejs 10 on Ubuntu 16.04 LTS 原先只是要更新 Ghost 卻發現升級 Nodejs 到 10 版以上需要踩這麼多雷,在此紀錄一些關鍵破關的技巧 正常來說升級很簡單,只要兩行指令 // Add the NodeSource APT repository for Node 10: $ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash // Install nodejs $ apt-get install -y nodejs No module named 'apt_pkg' Traceback (most recent
Using RClone sync data between cloud storages Rclone is a command line program to sync files and directories to and from different cloud storages such as Google Drive, Dropbox and so on. Lets see how easy rclone helps copying data for you: rclone copy dropbox:web_projects gdrive:web_projects -P
how to install protobuf with specific version 不管是因為什麼原因需要,整合第三方套件總是要面對一些 breaking change,甚至在大的工程團隊中,每個專案的版本不一致導致連環狀況發生。要裝 protobuf 特定版本其實不難,將以 3.5.1 版本為例: 安裝該版本原始碼首先可以在 protobuf 的 github 專案中找到不同版本的原始碼載點,找到自己的需求後下載: https://github.com/protocolbuffers/protobuf/releases 解壓縮後,在編譯 protobuf 時可能需要以下幾個套件,可以用 homebrew 做安裝: $ brew install autoconf $ brew install automake $ brew install libtool接下來就是對這份原始碼作 compile 與安裝(