Xamarin + Google Play App Signing 步驟

以往我係自己 Gen 張 Cert 嚟 sign 我寫嘅 Apps,手續又唔算太麻煩,不過哩張 Cert 就係你個 App 嘅出世紙,唔見咗就大鑊! Google 喺 I/O 2017 推出一個新服務叫 Google Play App Signing,佢會幫你 keep 張 Cert,保證安全,你改用一個叫 Upload Key 嘅嘢嚟 sign 你個 App,萬一你唔見咗張 Key,又或者你張 Key 俾人 hack 咗,你可以叫 Google 取消張 Key,俾過張新嘅你,唔影響你個 App,不過,如果你個 Google account 俾人 hack 咗,咁仲大鑊,😂,所以 Google 建議你用 2-Step Verification。咁即係點?

Continue reading “Xamarin + Google Play App Signing 步驟”

用 Google Drive 嚟 Backup 啲 GCE Linux Instance 檔案

GCE (Google Compute Engine) Linux Instance 支持 SSH,不過如果想用佢嚟 backup 少少 files 都算幾麻煩㗎,要搞 SSH Security Key,我比較懶,於是上網搵下有冇容易啲嘅辦法,俾我喺 GitHub 搵到一個叫 gdrive 嘅 open sources 軟件(哩度仲有人講添),可以用 bash command line 嚟抄啲檔案上 Google Drive,用喺我啲 GCE Linux instances 剛剛好,正!👻

Continue reading “用 Google Drive 嚟 Backup 啲 GCE Linux Instance 檔案”

Xamarin Push Notification (用 Firebase 經 APN 發至 iPhone)

蘋果一向都唔係咁歡迎人哋答順風車嘅,所以,要 send notification 俾 iPhone 就較為複雜:

  1. 首先,你要俾錢做 developer
  2. 去 Developer Console 整張 APN Cert(APN 係 Apple Push Notification)
  3. 留意,張 Cert 有分 Development 同 Production,兩張 Certs 唔互通
  4. 下載張 Cert
  5. 轉成 .p12 格式
  6. 上載到 Firebase Console

Continue reading “Xamarin Push Notification (用 Firebase 經 APN 發至 iPhone)”

Visual Studio for Mac 開唔倒 GoogleService-Info.plist

首先重複一次張圖:

哩張圖係另外一個網友上載嘅,我順手拎嚟,反正問題相同。:)

你估唔倒係咩問題?咪又係 Microsoft 嘅 Visual Studio for Mac 囉!

我用 Visual Studio Code 打開佢:

有幾段咁嘅 codes,完全冇錯嘅 syntax,不過,不過,如果你改成咁:

你就可以順利用 Visual Studio for Mac 打開個檔案!

死未!

pfsense IKEv2 Mobile Client(macOS/iOS/Android/Windows 10)

整咗 pfSense server 要玩 Mobile Client 當然要整 client side 嘅 VPN 設定。我常用嘅 devices 包括 Windows、macOS、iOS、android,因為有四種唔同嘅 OS,每種有佢自己嘅發展步伐,有佢對 VPN security level 嘅要求,都幾複雜。為咗減少麻煩,我自己自設嘅唯一條件就係要盡可能用番部機原生嘅 VPN client。

Continue reading “pfsense IKEv2 Mobile Client(macOS/iOS/Android/Windows 10)”

pfSense IKEv2 Mobile Clients

張大圖 (Featured Image)差不多說明咗今次嘅 lab,唯一嘅差別係:我用一隻 VPN Hub 將兩個 branch networks 接駁,兩個 networks 互通,然後我再由個 Mobile User 以 IKEv2 駁去隻 VPN Hub,於是 Mobile Users 就可以 access 兩個 networks。VPN Hub 喺上一篇講咗,今篇講用 Windows 10 同 macOS 經 IKEv2 駁去隻 pfSense VPN Hub。

Continue reading “pfSense IKEv2 Mobile Clients”

喺 Google Cloud 安裝 pfSense

Google Cloud 自己有 Firewall、VPN,所以唔係咁歡迎你自己搞同樣嘅嘢,仲有多一層麻煩,就係 Google Cloud 啲 Compute Engine 唔支持 FreeBSD,咁啱 pfSense 個 Installer ISO 就係用 FreeBSD,啱啱遇著剛剛,你想用 pfSense 就要花多啲功夫先得。咁多 open source 嘅 choices 又點解一定要揀 pfSense 呀?自尋煩惱囉,阿甲用 m0n0wall,阿乙就話用 Endian,阿丙就唔執輸佢揀 pfSense,😝

Continue reading “喺 Google Cloud 安裝 pfSense”

安裝 nextcloud 12

nextcloud 係由 owncloud 滋生出嚟,事源有份參與開發 owncloud 的工程師不滿 owncloud 嘅原碼開放政策,一同離隊,另外成立公司再搞過,由於開源所以很快就聚集咗一群有心有力人士,搞得有聲有色,特別係 WebDAV API 方面做得比較好,仲有 C# 嘅 library 可以用,可以上 Xamarin 添,於是,我又學人跳槽。😀

Continue reading “安裝 nextcloud 12”