This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # ssh-host.sh — 一行式 SSH 公鑰登入設定腳本 | |
| # 用法:curl -fsSL <gist_url> -o /tmp/ssh-host.sh && sudo bash /tmp/ssh-host.sh | |
| set -Eeuo pipefail | |
| # ── 全域變數 ────────────────────────────────── | |
| distro="" | |
| pm="" | |
| pkg="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # recover.sh — 新機器一行式還原 wrapper | |
| # 用法:curl -fsSL <gist_url> -o /tmp/recover.sh && bash /tmp/recover.sh | |
| # 亦可直接 bash recover.sh 在本機測試 | |
| set -Eeuo pipefail | |
| # ── Global variables ────────────────────────── | |
| system_type=$(uname -s) | |
| SSH_KEY_PATH="$HOME/.ssh/id_rsa" | |
| DOTFILES_REPO="git@github.com:BibbyChung/dotfiles.git" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Subscription } from 'rxjs'; | |
| declare module 'rxjs/internal/Subscription' { | |
| interface Subscription { | |
| toUnsubscription( | |
| this: Subscription, | |
| sub: Subscription | |
| ): void; | |
| } | |
| } |