paulcoding810 revised this gist 3 weeks ago. Go to revision
1 file changed, 1 deletion
backup.sh
| @@ -63,7 +63,6 @@ function backup_specific_items() { | |||
| 63 | 63 | tar -rpf "$FILENAME" --exclude=".git" --exclude="local.zsh" "$HOME/.zsh" | |
| 64 | 64 | tar -rpf "$FILENAME" --exclude="agent" --exclude="known_hosts" "$HOME/.ssh" | |
| 65 | 65 | tar -rpf "$FILENAME" $HOME/Library/LaunchAgents/local.* | |
| 66 | - | tar -rpf "$FILENAME" $HOME/Data/launchd/*/*.sh | |
| 67 | 66 | # tar -rpf "$FILENAME" "$HOME/Library/Developer/Xcode/UserData/KeyBindings" | |
| 68 | 67 | tar -rpf "$FILENAME" /etc/hosts /etc/paths | |
| 69 | 68 | } | |
paulcoding810 revised this gist 1 month ago. Go to revision
1 file changed, 1 insertion
config.md
| @@ -3,6 +3,7 @@ | |||
| 3 | 3 | - settings -> keyboard shortuts -> services -> disable searching | |
| 4 | 4 | - settings -> keyboard shortuts -> mission control -> mission control {swtich to desktop nth} | |
| 5 | 5 | - settings -> keyboard shortuts -> keyboards -> disable move focus to next window | |
| 6 | + | - settings -> keyboard -> text input -> Edit -> disable "Use smart quotes and dashes" | |
| 6 | 7 | - settings -> display -> {reduce motion,increase contrast} | |
| 7 | 8 | - settings -> desktop & dock -> Mission control -> {diable rerrangement,separate spaces} | |
| 8 | 9 | - settings -> desktop & dock -> Desktop & dock -> {diable animate application,recent apps} | |
paulcoding810 revised this gist 1 month ago. Go to revision
1 file changed, 1 insertion
config.md
| @@ -28,6 +28,7 @@ | |||
| 28 | 28 | ||
| 29 | 29 | - about:preferences#privacy -> Firefox Data Collection and Use -> disable | |
| 30 | 30 | - about:preferences#privacy -> Custom history -> Uncheck all | |
| 31 | + | - about:config -> network.lna.enable -> FALSE | |
| 31 | 32 | ||
| 32 | 33 | ## mate | |
| 33 | 34 | ||
paulcoding810 revised this gist 1 month ago. Go to revision
1 file changed, 1 insertion
config.md
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | 3 | - settings -> keyboard shortuts -> services -> disable searching | |
| 4 | 4 | - settings -> keyboard shortuts -> mission control -> mission control {swtich to desktop nth} | |
| 5 | + | - settings -> keyboard shortuts -> keyboards -> disable move focus to next window | |
| 5 | 6 | - settings -> display -> {reduce motion,increase contrast} | |
| 6 | 7 | - settings -> desktop & dock -> Mission control -> {diable rerrangement,separate spaces} | |
| 7 | 8 | - settings -> desktop & dock -> Desktop & dock -> {diable animate application,recent apps} | |
paulcoding810 revised this gist 1 month ago. Go to revision
1 file changed, 4 insertions, 5 deletions
backup.sh
| @@ -49,19 +49,18 @@ function backup_dotfiles() { | |||
| 49 | 49 | # Exclude large config dirs and create gzipped archive of .config | |
| 50 | 50 | function backup_config_gz() { | |
| 51 | 51 | tar -rpf "$FILENAME" "$HOME/.config/git" | |
| 52 | - | tar -rpf "$FILENAME" "$HOME/.config/rclone" | |
| 52 | + | tar -rpf "$FILENAME" "$HOME/.config/rclone/*.conf" | |
| 53 | 53 | tar -rpf "$FILENAME" "$HOME/.config/telebit" | |
| 54 | - | tar -rpf "$FILENAME" "$HOME/.config/yarn/global/package.json" | |
| 55 | - | ||
| 54 | + | tar -rpf "$FILENAME" "$HOME/.config/omniwm/settings.toml" | |
| 56 | 55 | tar -rpf "$FILENAME" "$HOME/.gnupg/*.gpg" | |
| 57 | 56 | tar -rpf "$FILENAME" "$HOME/.gradle/gradle.properties" | |
| 58 | - | tar -rpf "$FILENAME" "$HOME/.android/debug.keystore" | |
| 57 | + | tar -rpf "$FILENAME" "$HOME/.claude/settings.json" | |
| 59 | 58 | } | |
| 60 | 59 | ||
| 61 | 60 | # Append selected items to tar archive | |
| 62 | 61 | function backup_specific_items() { | |
| 63 | 62 | green "Backing up specific items..." | |
| 64 | - | tar -rpf "$FILENAME" --exclude=".git" "$HOME/.zsh" | |
| 63 | + | tar -rpf "$FILENAME" --exclude=".git" --exclude="local.zsh" "$HOME/.zsh" | |
| 65 | 64 | tar -rpf "$FILENAME" --exclude="agent" --exclude="known_hosts" "$HOME/.ssh" | |
| 66 | 65 | tar -rpf "$FILENAME" $HOME/Library/LaunchAgents/local.* | |
| 67 | 66 | tar -rpf "$FILENAME" $HOME/Data/launchd/*/*.sh | |
paulcoding810 revised this gist 5 months ago. Go to revision
2 files changed, 174 insertions, 219 deletions
brew.sh(file created)
| @@ -0,0 +1,165 @@ | |||
| 1 | + | ### Input / pointing devices | |
| 2 | + | brew install mos | |
| 3 | + | brew install asciinema | |
| 4 | + | brew install --cask alt-tab | |
| 5 | + | brew install --cask keycastr | |
| 6 | + | brew install --cask middleclick | |
| 7 | + | brew install --cask rectangle | |
| 8 | + | brew install --cask linearmouse | |
| 9 | + | ||
| 10 | + | ### macOS / Xcode / iOS tooling | |
| 11 | + | ||
| 12 | + | brew install swiftformat | |
| 13 | + | brew install --cask xcodes | |
| 14 | + | brew install --cask swiftformat-for-xcode | |
| 15 | + | brew install fastlane | |
| 16 | + | brew install carthage | |
| 17 | + | brew tap robotsandpencils/made && brew install robotsandpencils/made/xcodes | |
| 18 | + | brew tap majd/repo && brew install ipatool | |
| 19 | + | brew install mackup # backup app settings | |
| 20 | + | brew install pngpaste | |
| 21 | + | ||
| 22 | + | ### Development & VCS | |
| 23 | + | brew install git | |
| 24 | + | brew install git-gui | |
| 25 | + | brew install git-lfs | |
| 26 | + | git lfs install | |
| 27 | + | git lfs install --system | |
| 28 | + | brew install gitui | |
| 29 | + | brew install git-delta | |
| 30 | + | brew install gitleaks | |
| 31 | + | brew install source-highlight | |
| 32 | + | ||
| 33 | + | ### Languages, formatters & build tools | |
| 34 | + | brew install php | |
| 35 | + | brew install rbenv | |
| 36 | + | brew install rustfmt | |
| 37 | + | brew install swiftlint | |
| 38 | + | brew install rustup && rustup-init | |
| 39 | + | ||
| 40 | + | ### Editors & terminal tools | |
| 41 | + | brew install micro | |
| 42 | + | brew install lesspipe | |
| 43 | + | brew install vhs | |
| 44 | + | brew install bat | |
| 45 | + | brew install tree | |
| 46 | + | ||
| 47 | + | ### Search / find / file utils | |
| 48 | + | brew install fzf | |
| 49 | + | brew install ripgrep | |
| 50 | + | brew install fd | |
| 51 | + | brew install jq | |
| 52 | + | brew install yq | |
| 53 | + | brew install rsync | |
| 54 | + | brew install grep | |
| 55 | + | ||
| 56 | + | ### Media & multimedia | |
| 57 | + | brew install ffmpeg | |
| 58 | + | brew install imagemagick | |
| 59 | + | brew install yt-dlp | |
| 60 | + | brew install pngpaste | |
| 61 | + | brew install vlc --cask | |
| 62 | + | ||
| 63 | + | ### Android / reverse-engineering / mobile | |
| 64 | + | brew install apktool | |
| 65 | + | brew install jadx | |
| 66 | + | brew install scrcpy | |
| 67 | + | curl https://raw.githubusercontent.com/ax/apk.sh/main/apk.sh -o /usr/local/bin/apk.sh && chmod +x /usr/local/bin/apk.sh | |
| 68 | + | ||
| 69 | + | ### Networking, proxies & transfer | |
| 70 | + | brew install aria2 | |
| 71 | + | brew install rclone | |
| 72 | + | brew install ngrok/ngrok/ngrok | |
| 73 | + | brew install mitmproxy | |
| 74 | + | brew install --cask localsend | |
| 75 | + | ||
| 76 | + | ### Productivity & system utilities (GUI) | |
| 77 | + | brew install --cask maccy | |
| 78 | + | brew install --cask lunar | |
| 79 | + | brew install --cask ghostty | |
| 80 | + | brew install stats | |
| 81 | + | brew install neofetch | |
| 82 | + | brew install glances | |
| 83 | + | brew install lolcat | |
| 84 | + | ||
| 85 | + | ### Disk | |
| 86 | + | brew install dua-cli | |
| 87 | + | curl https://download.nektony.com/download/diskexpert/disk-space-analyzer.dmg -O && open disk-space-analyzer.dmg 2 >/dev/null &>1 & | |
| 88 | + | ||
| 89 | + | ### Screenshot | |
| 90 | + | brew install --cask flameshot | |
| 91 | + | brew install --cask kap | |
| 92 | + | brew tap duongductrong/snapzy https://github.com/duongductrong/Snapzy && brew install --cask snapzy | |
| 93 | + | ||
| 94 | + | ### Misc / convenience | |
| 95 | + | brew install lima | |
| 96 | + | brew install ipatool | |
| 97 | + | brew install yt-dlp | |
| 98 | + | brew install jesseduffield/lazygit/lazygit | |
| 99 | + | ||
| 100 | + | ### Menu Bars | |
| 101 | + | brew install --cask hiddenbar | |
| 102 | + | brew install --cask swiftbar | |
| 103 | + | brew install --cask steipete/tap/codexbar | |
| 104 | + | brew install --cask pakerwreah/calendr/calendr | |
| 105 | + | brew install --cask simsim | |
| 106 | + | brew install thaw | |
| 107 | + | ||
| 108 | + | ### Database | |
| 109 | + | brew install --cask sequel-ace | |
| 110 | + | ||
| 111 | + | ## Extra | |
| 112 | + | [vscode xcode] https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line | |
| 113 | + | [storage] https://nektony.com/disk-expert | |
| 114 | + | [cliboard] flycut/cutbox | |
| 115 | + | [editor] textmate coteditor | |
| 116 | + | [vpn] warp 1.1.1.1 | |
| 117 | + | [player] https://github.com/iina/iina/releases/tag/v1.3.0 | |
| 118 | + | [extension] https://github.com/quoid/userscripts | |
| 119 | + | [wiget] https://github.com/leits/MeetingBar | |
| 120 | + | [ci] https://github.com/cirruslabs/tart | |
| 121 | + | [vm] https://github.com/utmapp/UTM | |
| 122 | + | [ipa] https://github.com/majd/ipatool | |
| 123 | + | [xcode] https://github.com/RobotsAndPencils/XcodesApp | |
| 124 | + | [emulator] https://github.com/PlayCover/PlayCover | |
| 125 | + | [annotate, cite, and share research] https://www.zotero.org/ | |
| 126 | + | [terminal] https://iterm2.com/downloads.html | |
| 127 | + | [keyboard] https://github.com/pqrs-org/Karabiner-Elements | |
| 128 | + | [realm] https://studio-releases.realm.io/latest/download/mac-dmg https://github.com/dsmelov/simsim | |
| 129 | + | [sketch] https://github.com/duraki/SketchCrapp | |
| 130 | + | [record] https://github.com/onmyway133/GifCapture/releases/tag/1.1.0 | |
| 131 | + | [note] https://github.com/glushchenko/fsnotes | |
| 132 | + | [convert video2gif] https://github.com/sindresorhus/Gifski | |
| 133 | + | [download manager] https://github.com/agalwood/Motrix/releases | |
| 134 | + | [wallpaper] https://github.com/rlxone/Equinox | |
| 135 | + | [php] https://github.com/nicoverbruggen/phpmon | |
| 136 | + | [firmware] https://github.com/ninxsoft/mist-cli | |
| 137 | + | [xcodeproject] https://github.com/yonaskolb/XcodeGen | |
| 138 | + | [java] https://www.oracle.com/java/technologies/downloads/#jdk19-mac | |
| 139 | + | [automation] https://www.hammerspoon.org/go/ | |
| 140 | + | [video] https://github.com/mltframework/shotcut/releases | |
| 141 | + | [xcode] https://github.com/Serchinastico/Kin | |
| 142 | + | [database] https://github.com/dbeaver/dbeaver/releases | |
| 143 | + | [default app] https://www.rubicode.com/Downloads/RCDefaultApp-2.1.X.dmg | |
| 144 | + | [wasm] https://github.com/WebAssembly/wabt/releases/w | |
| 145 | + | [launchctl] launchcontrol | |
| 146 | + | [file-explorer] https://github.com/sayanarijit/xplr/releases | https://github.com/ranger/ranger | https://github.com/kamiyaa/joshuto | nnn | https://github.com/sxyazi/yazi | |
| 147 | + | [file server] https://github.com/sigoden/dufs # webdav | |
| 148 | + | [localsend] https://localsend.org/#/download # file sharing, airdrop | |
| 149 | + | [teamview] https://github.com/rustdesk/rustdesk/releases # teamviewer alternative | |
| 150 | + | [sql] drawsql.app | |
| 151 | + | [monitor brightness] https://github.com/alin23/Lunar | |
| 152 | + | [export photo library ios] https://github.com/RhetTbull/osxphotos | |
| 153 | + | [music lyric] buzz | |
| 154 | + | [image compressor, blog] caesium image compressor | |
| 155 | + | [vpn] tunelblick | |
| 156 | + | [bloatware] uad-ng-macos | |
| 157 | + | [window manager] https://github.com/MrKai77/Loop/releases/ | |
| 158 | + | [editor] https://zed.dev/download | |
| 159 | + | [software] https://github.com/objective-see/KnockKnock | |
| 160 | + | [server] https://github.com/lollipopkit/flutter_server_box | |
| 161 | + | [network monitor] https://github.com/GyulyVGC/sniffnet | |
| 162 | + | [slideshow] https://github.com/gobbledegook/creevey | |
| 163 | + | [editor]https://github.com/sinelaw/fresh | |
| 164 | + | [window managers] https://www.raycast.com/ | https://github.com/nikitabobko/AeroSpace | |
| 165 | + | [video] https://github.com/HandBrake/HandBrake | |
install.sh
| @@ -1,9 +1,3 @@ | |||
| 1 | - | sudo echo | |
| 2 | - | ||
| 3 | - | ## reboot your mac and press ⌘+R | |
| 4 | - | ## csrutil disable | |
| 5 | - | ## reboot | |
| 6 | - | ||
| 7 | 1 | ## colors | |
| 8 | 2 | red() { printf "\033[31m${1}\033[0m\n\n"; } | |
| 9 | 3 | green() { printf "\033[32m${1}\033[0m\n\n"; } | |
| @@ -13,123 +7,20 @@ purple() { printf "\033[35m${1}\033[0m\n\n"; } | |||
| 13 | 7 | ## show hidden files | |
| 14 | 8 | defaults write com.apple.Finder AppleShowAllFiles true | |
| 15 | 9 | ||
| 16 | - | # xcode | |
| 17 | - | blue "Installing xcode" | |
| 18 | - | xcode-select --install | |
| 19 | - | ||
| 20 | 10 | # brew | |
| 21 | 11 | blue "Installing brew" | |
| 22 | 12 | bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| 23 | - | brew update --auto-update | |
| 24 | 13 | brew analytics off | |
| 14 | + | brew bundle install | |
| 25 | 15 | ||
| 26 | - | # git | |
| 27 | - | blue "Installing git" | |
| 28 | - | brew install gh | |
| 29 | - | gh auth login | |
| 30 | - | ||
| 31 | - | ## zsh | |
| 16 | + | ## zinit | |
| 17 | + | blue "Installing zinit" | |
| 32 | 18 | bash -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)" | |
| 33 | 19 | ||
| 34 | - | ## brew | |
| 35 | - | blue "Installing apps" | |
| 36 | - | ||
| 37 | - | brew install git git-gui | |
| 38 | - | brew install mos ffmpeg | |
| 39 | - | brew install fastlane | |
| 40 | - | brew install stats | |
| 41 | - | brew install carthage | |
| 42 | - | brew install lima | |
| 43 | - | brew install swiftformat | |
| 44 | - | brew install robotsandpencils/made/xcodes | |
| 45 | - | brew install swiftlint | |
| 46 | - | brew install mos asciinema | |
| 47 | - | brew install imagemagick | |
| 48 | - | brew install aria2 | |
| 49 | - | brew install mackup # backup | |
| 50 | - | brew install jq | |
| 51 | - | brew install swiftlint | |
| 52 | - | brew install rsync | |
| 53 | - | brew tap majd/repo | |
| 54 | - | brew install ipatool | |
| 55 | - | brew install jadx | |
| 56 | - | brew install apktool | |
| 57 | - | brew install grep ## ggrep (gnu-unix) | |
| 58 | - | brew install ccat ## cat with format. | |
| 59 | - | brew install duti ## set default app. | |
| 60 | - | brew install ripgrep ## grep like, + recursive | |
| 61 | - | brew install ngrok/ngrok/ngrok | |
| 62 | - | brew install imagemagick | |
| 63 | - | brew install rclone | |
| 64 | - | brew install fd ## find alt | |
| 65 | - | brew install bat | |
| 66 | - | brew install tree | |
| 67 | - | brew install gitui | |
| 68 | - | brew install git-delta | |
| 69 | - | brew install neofetch | |
| 70 | - | brew install lolcat | |
| 71 | - | brew install lesspipe ## advance less | |
| 72 | - | brew install yt-dlp ## as youtube-dl weirdo | |
| 73 | - | brew install imagemagick | |
| 74 | - | brew install pngpaste | |
| 75 | - | brew install micro ## editor | |
| 76 | - | brew install vhs ## terminal recorder | |
| 77 | - | brew install rustfmt | |
| 78 | - | brew install jesseduffield/lazygit/lazygit | |
| 79 | - | brew install glances ## htop | |
| 80 | - | brew install mitmproxy | |
| 81 | - | brew install php | |
| 82 | - | brew install gitleaks | |
| 83 | - | brew install source-highlight | |
| 84 | - | brew install rbenv | |
| 85 | - | brew install jq | |
| 86 | - | brew install yq | |
| 87 | - | brew install scrcpy | |
| 88 | - | # brew install dua-cli mole # clean disk | |
| 89 | - | ||
| 90 | - | brew install git-lfs | |
| 91 | - | git lfs install | |
| 92 | - | git lfs install --system | |
| 93 | - | ||
| 94 | - | brew install --cask swiftformat-for-xcode | |
| 95 | - | brew install --cask maccy | |
| 96 | - | brew install --cask flameshot | |
| 97 | - | brew install --cask vlc | |
| 98 | - | brew install --cask localsend | |
| 99 | - | brew install --cask lunar # brightness | |
| 100 | - | brew install --cask ghostty | |
| 101 | - | ||
| 102 | - | # brew install --cask jurplel/tap/instant-space-switcher # spaces | |
| 103 | - | # brew install --cask xcodes | |
| 104 | - | # brew install --cask devtoys | |
| 105 | - | # brew install --cask hiddenbar | |
| 106 | - | # brew install --cask swiftbar trex multi // create web application | |
| 107 | - | # brew install --cask alt-tab | |
| 108 | - | # brew install --cask pusher | |
| 109 | - | # brew install --cask sequel-ace | |
| 110 | - | # brew install --cask keycastr # keystroke visualizer | |
| 111 | - | # brew install --cask linearmouse | |
| 112 | - | # brew install --cask iconizer | |
| 113 | - | # brew install --cask kap | |
| 114 | - | # brew install --cask --no-quarantine middleclick | |
| 115 | - | # brew install --cask amethyst rectangle // tiling window | |
| 116 | - | # brew tap duongductrong/snapzy https://github.com/duongductrong/Snapzy && brew install --cask snapzy # screenshot | |
| 117 | - | ||
| 118 | - | # https://caddy.community/t/caddy-on-mac-os-as-homebrew-service-autostart-on-system-startup/16940/2 | |
| 119 | - | brew install caddy | |
| 120 | - | ||
| 121 | 20 | ## vim | |
| 21 | + | blue "Installing vim plug" | |
| 122 | 22 | curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
| 123 | - | https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #plugin | |
| 124 | - | ||
| 125 | - | # rust | |
| 126 | - | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | |
| 127 | - | ||
| 128 | - | ## services | |
| 129 | - | brew services start caddy | |
| 130 | - | # /usr/local/etc/Caddyfile | |
| 131 | - | ||
| 132 | - | curl -fsSL https://raw.githubusercontent.com/onmyway133/FinderGo/master/install.sh | sh | |
| 23 | + | https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| 133 | 24 | ||
| 134 | 25 | ## font | |
| 135 | 26 | blue "Installing fonts" | |
| @@ -139,115 +30,14 @@ brew install --cask font-fira-code | |||
| 139 | 30 | brew install font-hack-nerd-font | |
| 140 | 31 | echo -e "\xee\x82\xa0" | |
| 141 | 32 | ||
| 142 | - | # cli | |
| 143 | - | curl -sL https://firebase.tools | bash | |
| 144 | - | curl -fsSL https://d2lang.com/install.sh | sh -s -- # d2 for diagrams, arrows.... | |
| 145 | - | sh -c "$(curl -fsSL https://raw.githubusercontent.com/guarinogabriel/mac-cli/master/mac-cli/tools/install)" | |
| 146 | - | ||
| 147 | - | curl https://raw.githubusercontent.com/ax/apk.sh/main/apk.sh -o /usr/local/bin/apk.sh | |
| 148 | - | chmod +x /usr/local/bin/apk.sh | |
| 149 | - | ||
| 150 | - | # node | |
| 151 | - | brew install node | |
| 152 | - | brew install watchman | |
| 153 | - | brew install cocoapods | |
| 154 | - | ||
| 155 | - | npm install --global web-ext | |
| 156 | - | npm install --global git-format-staged | |
| 157 | - | npm install -g react-native-cli | |
| 158 | - | npm install -g yarn | |
| 159 | - | npm install -g eslint | |
| 160 | - | npm install -g terminalizer | |
| 161 | - | ||
| 162 | - | # disk-space-analyzer | |
| 163 | - | curl https://download.nektony.com/download/diskexpert/disk-space-analyzer.dmg -O | |
| 164 | - | open disk-space-analyzer.dmg > /dev/null 2&>1 & | |
| 165 | - | ||
| 166 | - | ## sublime text | |
| 167 | - | ||
| 168 | - | ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl | |
| 169 | - | ||
| 170 | - | ## fzf | |
| 171 | - | brew install fzf | |
| 172 | - | ||
| 173 | - | ## dotfiles | |
| 174 | - | blue "Config dotfiles https://www.atlassian.com/git/tutorials/dotfiles" | |
| 175 | - | git init --bare $HOME/.cfg | |
| 176 | - | alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' | |
| 177 | - | config config --local status.showUntrackedFiles no | |
| 178 | - | ||
| 179 | - | ## vim | |
| 180 | - | curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
| 181 | - | https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #plugin | |
| 33 | + | # xcode | |
| 34 | + | blue "Installing xcode" | |
| 35 | + | xcode-select --install | |
| 182 | 36 | ||
| 183 | 37 | # sudo part | |
| 184 | - | ## Enable install from anywhere | |
| 185 | - | # https://www.reddit.com/r/MacOS/comments/pquuc4/comment/hdds9g0/ | |
| 186 | - | # https://maclife.io/huong-dan-tat-gatekeeper-bat-tuy-chon-anywhere-tren-macos-sierra-10-12-de-cai-ung-dung-ben-ngoai-app-store.html | |
| 187 | 38 | sudo spctl --master-disable | |
| 188 | - | ||
| 189 | - | sudo gem install cocoapods | |
| 190 | - | sudo gem install screengrab | |
| 39 | + | sudo csrutil disable | |
| 191 | 40 | ||
| 192 | 41 | # exit | |
| 193 | 42 | green "Install successfully, enjoy this awsome machine ❤️" | |
| 194 | 43 | exit | |
| 195 | - | ||
| 196 | - | ## addition | |
| 197 | - | [vscode xcode] https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line | |
| 198 | - | [storage] https://nektony.com/disk-expert | |
| 199 | - | [cliboard] flycut/cutbox | |
| 200 | - | [editor] textmate coteditor | |
| 201 | - | [vpn] warp 1.1.1.1 | |
| 202 | - | [player] https://github.com/iina/iina/releases/tag/v1.3.0 | |
| 203 | - | [extension] https://github.com/quoid/userscripts | |
| 204 | - | [wiget] https://github.com/leits/MeetingBar | |
| 205 | - | [ci] https://github.com/cirruslabs/tart | |
| 206 | - | [vm] https://github.com/utmapp/UTM | |
| 207 | - | [ipa] https://github.com/majd/ipatool | |
| 208 | - | [xcode] https://github.com/RobotsAndPencils/XcodesApp | |
| 209 | - | [emulator] https://github.com/PlayCover/PlayCover | |
| 210 | - | [annotate, cite, and share research] https://www.zotero.org/ | |
| 211 | - | [terminal] https://iterm2.com/downloads.html | |
| 212 | - | [keyboard] https://github.com/pqrs-org/Karabiner-Elements | |
| 213 | - | [realm] https://studio-releases.realm.io/latest/download/mac-dmg https://github.com/dsmelov/simsim | |
| 214 | - | [sketch] https://github.com/duraki/SketchCrapp | |
| 215 | - | [record] https://github.com/onmyway133/GifCapture/releases/tag/1.1.0 | |
| 216 | - | [note] https://github.com/glushchenko/fsnotes | |
| 217 | - | [convert video2gif] https://github.com/sindresorhus/Gifski | |
| 218 | - | [download manager] https://github.com/agalwood/Motrix/releases | |
| 219 | - | [wallpaper] https://github.com/rlxone/Equinox | |
| 220 | - | [php] https://github.com/nicoverbruggen/phpmon | |
| 221 | - | [firmware] https://github.com/ninxsoft/mist-cli | |
| 222 | - | [xcodeproject] https://github.com/yonaskolb/XcodeGen | |
| 223 | - | [calender] https://github.com/pakerwreah/Calendr | |
| 224 | - | [java] https://www.oracle.com/java/technologies/downloads/#jdk19-mac | |
| 225 | - | [automation] https://www.hammerspoon.org/go/ | |
| 226 | - | [video] https://github.com/mltframework/shotcut/releases | |
| 227 | - | [xcode] https://github.com/Serchinastico/Kin | |
| 228 | - | [database] https://github.com/dbeaver/dbeaver/releases | |
| 229 | - | [default app] https://www.rubicode.com/Downloads/RCDefaultApp-2.1.X.dmg | |
| 230 | - | [wasm] https://github.com/WebAssembly/wabt/releases/w | |
| 231 | - | [launchctl] launchcontrol | |
| 232 | - | [file-explorer] https://github.com/sayanarijit/xplr/releases | https://github.com/ranger/ranger | https://github.com/kamiyaa/joshuto | nnn | https://github.com/sxyazi/yazi | |
| 233 | - | [file server] https://github.com/sigoden/dufs # webdav | |
| 234 | - | [localsend] https://localsend.org/#/download # file sharing, airdrop | |
| 235 | - | [teamview] https://github.com/rustdesk/rustdesk/releases # teamviewer alternative | |
| 236 | - | [sql] drawsql.app | |
| 237 | - | [disk] https://github.com/Byron/dua-cli?tab=readme-ov-file | |
| 238 | - | [monitor brightness] https://github.com/alin23/Lunar | |
| 239 | - | [export photo library ios] https://github.com/RhetTbull/osxphotos | |
| 240 | - | [music lyric] buzz | |
| 241 | - | [image compressor, blog] caesium image compressor | |
| 242 | - | [vpn] tunelblick | |
| 243 | - | [bloatware] uad-ng-macos | |
| 244 | - | [window manager] https://github.com/MrKai77/Loop/releases/ | |
| 245 | - | [editor] https://zed.dev/download | |
| 246 | - | [software] https://github.com/objective-see/KnockKnock | |
| 247 | - | [server] https://github.com/lollipopkit/flutter_server_box | |
| 248 | - | [network monitor] https://github.com/GyulyVGC/sniffnet | |
| 249 | - | [slideshow] https://github.com/gobbledegook/creevey | |
| 250 | - | [editor]https://github.com/sinelaw/fresh | |
| 251 | - | [window managers] https://www.raycast.com/ | https://github.com/nikitabobko/AeroSpace | |
| 252 | - | [video] https://github.com/HandBrake/HandBrake | |
| 253 | - | [stats, monitor] https://github.com/exelban/stats | |
paulcoding810 revised this gist 5 months ago. Go to revision
1 file changed, 13 insertions, 35 deletions
backup.sh
| @@ -27,35 +27,23 @@ function check_existing_backup() { | |||
| 27 | 27 | fi | |
| 28 | 28 | } | |
| 29 | 29 | ||
| 30 | + | # Brew | |
| 30 | 31 | function generate_config_files() { | |
| 31 | - | green "Preparing iterm2 & brew config ..." | |
| 32 | - | ||
| 32 | + | green "Preparing brew ..." | |
| 33 | 33 | local brew_file="$HOME/Brewfile" | |
| 34 | - | local iterm2_file="$HOME/iterm.itermexport" | |
| 35 | - | ||
| 36 | - | brew bundle dump --force --file="$brew_file" | |
| 37 | - | ||
| 38 | - | if [[ ! -f "$brew_file" ]]; then | |
| 39 | - | orange "$brew_file doesn't exist!" | |
| 40 | - | read -rp "Do you want to continue? (y/n): " answer | |
| 41 | - | [[ "$answer" == "y" ]] || exit 1 | |
| 42 | - | fi | |
| 34 | + | brew bundle dump --force --no-go --no-cargo --no-uv --no-npm --file="$brew_file" | |
| 43 | 35 | ||
| 44 | 36 | tar -rpf "$FILENAME" "$brew_file" | |
| 45 | - | ||
| 46 | - | if [[ ! -f "$iterm2_file" ]]; then | |
| 47 | - | orange "$iterm2_file doesn't exist!" | |
| 48 | - | read -rp "Do you want to continue? (y/n): " answer | |
| 49 | - | [[ "$answer" == "y" ]] || exit 1 | |
| 50 | - | fi | |
| 51 | - | ||
| 52 | - | tar -rpf "$FILENAME" "$iterm2_file" && rm "$iterm2_file" | |
| 53 | 37 | } | |
| 54 | 38 | ||
| 55 | 39 | # Backup dotfiles | |
| 56 | 40 | function backup_dotfiles() { | |
| 57 | 41 | green "Backing up dotfiles..." | |
| 58 | - | find "$HOME"/.* -maxdepth 0 -type f -exec tar -rpf "$FILENAME" {} + | |
| 42 | + | find "$HOME"/.* -maxdepth 0 -type f \ | |
| 43 | + | -not -name ".claude.json" \ | |
| 44 | + | -not -name ".CFUserTextEncoding" \ | |
| 45 | + | -not -name ".DS_Store" \ | |
| 46 | + | -exec tar -rpf "$FILENAME" {} + | |
| 59 | 47 | } | |
| 60 | 48 | ||
| 61 | 49 | # Exclude large config dirs and create gzipped archive of .config | |
| @@ -74,31 +62,22 @@ function backup_config_gz() { | |||
| 74 | 62 | function backup_specific_items() { | |
| 75 | 63 | green "Backing up specific items..." | |
| 76 | 64 | tar -rpf "$FILENAME" --exclude=".git" "$HOME/.zsh" | |
| 77 | - | tar -rpf "$FILENAME" "$HOME/.ssh" | |
| 65 | + | tar -rpf "$FILENAME" --exclude="agent" --exclude="known_hosts" "$HOME/.ssh" | |
| 78 | 66 | tar -rpf "$FILENAME" $HOME/Library/LaunchAgents/local.* | |
| 79 | 67 | tar -rpf "$FILENAME" $HOME/Data/launchd/*/*.sh | |
| 80 | - | tar -rpf "$FILENAME" "$HOME/Library/Developer/Xcode/UserData/KeyBindings" | |
| 81 | - | tar -rpf "$FILENAME" --exclude="*.log" "$HOME/.aria2" | |
| 68 | + | # tar -rpf "$FILENAME" "$HOME/Library/Developer/Xcode/UserData/KeyBindings" | |
| 82 | 69 | tar -rpf "$FILENAME" /etc/hosts /etc/paths | |
| 83 | - | # tar -rpf "$FILENAME" /etc/postfix | |
| 84 | - | # tar -rpf "$FILENAME" /etc/apache2/**/*.conf | |
| 85 | - | } | |
| 86 | - | ||
| 87 | - | # Backup command output (defaults, crontab, brew list) | |
| 88 | - | function backup_system_state() { | |
| 89 | - | crontab -l >crontab.txt && tar -rpf "$FILENAME" crontab.txt && rm crontab.txt | |
| 90 | - | defaults read >defaults.txt && tar -rpf "$FILENAME" defaults.txt && rm defaults.txt | |
| 91 | - | brew list >homebrew.txt && tar -rpf "$FILENAME" homebrew.txt && rm homebrew.txt | |
| 92 | 70 | } | |
| 93 | 71 | ||
| 94 | 72 | # Append list of backed-up files | |
| 95 | 73 | function add_backup_log() { | |
| 96 | 74 | { | |
| 97 | - | echo "Save location: https://onedrive.live.com/?id=5FC8AF0024B02AE9%2118898&cid=5FC8AF0024B02AE9" | |
| 98 | 75 | echo -e "\n\nBackup List:\n" | |
| 99 | - | tar -tvf "$FILENAME" | |
| 76 | + | tar -tvf "$FILENAME" | sort -k5 -rn | |
| 100 | 77 | } >backup_log.txt | |
| 101 | 78 | tar -rpf "$FILENAME" backup_log.txt | |
| 79 | + | blue backup log | |
| 80 | + | cat backup_log.txt | |
| 102 | 81 | rm backup_log.txt | |
| 103 | 82 | } | |
| 104 | 83 | ||
| @@ -125,7 +104,6 @@ generate_config_files | |||
| 125 | 104 | backup_dotfiles | |
| 126 | 105 | backup_config_gz | |
| 127 | 106 | backup_specific_items | |
| 128 | - | backup_system_state | |
| 129 | 107 | add_backup_log | |
| 130 | 108 | validate_backup_size | |
| 131 | 109 | ||
admin revised this gist 5 months ago. Go to revision
No changes
paulcoding810 revised this gist 5 months ago. Go to revision
1 file changed, 19 insertions, 23 deletions
install.sh
| @@ -2,16 +2,14 @@ sudo echo | |||
| 2 | 2 | ||
| 3 | 3 | ## reboot your mac and press ⌘+R | |
| 4 | 4 | ## csrutil disable | |
| 5 | - | ## reboot | |
| 6 | - | ||
| 5 | + | ## reboot | |
| 7 | 6 | ||
| 8 | 7 | ## colors | |
| 9 | 8 | red() { printf "\033[31m${1}\033[0m\n\n"; } | |
| 10 | 9 | green() { printf "\033[32m${1}\033[0m\n\n"; } | |
| 11 | - | blue() { printf "\033[38;5;27m${1}\033[0m\n" ; } | |
| 10 | + | blue() { printf "\033[38;5;27m${1}\033[0m\n"; } | |
| 12 | 11 | purple() { printf "\033[35m${1}\033[0m\n\n"; } | |
| 13 | 12 | ||
| 14 | - | ||
| 15 | 13 | ## show hidden files | |
| 16 | 14 | defaults write com.apple.Finder AppleShowAllFiles true | |
| 17 | 15 | ||
| @@ -56,9 +54,9 @@ brew tap majd/repo | |||
| 56 | 54 | brew install ipatool | |
| 57 | 55 | brew install jadx | |
| 58 | 56 | brew install apktool | |
| 59 | - | brew install grep ## ggrep (gnu-unix) | |
| 60 | - | brew install ccat ## cat with format. | |
| 61 | - | brew install duti ## set default app. | |
| 57 | + | brew install grep ## ggrep (gnu-unix) | |
| 58 | + | brew install ccat ## cat with format. | |
| 59 | + | brew install duti ## set default app. | |
| 62 | 60 | brew install ripgrep ## grep like, + recursive | |
| 63 | 61 | brew install ngrok/ngrok/ngrok | |
| 64 | 62 | brew install imagemagick | |
| @@ -71,23 +69,23 @@ brew install git-delta | |||
| 71 | 69 | brew install neofetch | |
| 72 | 70 | brew install lolcat | |
| 73 | 71 | brew install lesspipe ## advance less | |
| 74 | - | brew install yt-dlp ## as youtube-dl weirdo | |
| 75 | - | brew install imagemagick | |
| 72 | + | brew install yt-dlp ## as youtube-dl weirdo | |
| 73 | + | brew install imagemagick | |
| 76 | 74 | brew install pngpaste | |
| 77 | 75 | brew install micro ## editor | |
| 78 | - | brew install vhs ## terminal recorder | |
| 76 | + | brew install vhs ## terminal recorder | |
| 79 | 77 | brew install rustfmt | |
| 80 | 78 | brew install jesseduffield/lazygit/lazygit | |
| 81 | 79 | brew install glances ## htop | |
| 82 | 80 | brew install mitmproxy | |
| 83 | 81 | brew install php | |
| 84 | - | brew install dua-cli | |
| 85 | 82 | brew install gitleaks | |
| 86 | 83 | brew install source-highlight | |
| 87 | 84 | brew install rbenv | |
| 88 | 85 | brew install jq | |
| 89 | 86 | brew install yq | |
| 90 | 87 | brew install scrcpy | |
| 88 | + | # brew install dua-cli mole # clean disk | |
| 91 | 89 | ||
| 92 | 90 | brew install git-lfs | |
| 93 | 91 | git lfs install | |
| @@ -108,8 +106,8 @@ brew install --cask ghostty | |||
| 108 | 106 | # brew install --cask swiftbar trex multi // create web application | |
| 109 | 107 | # brew install --cask alt-tab | |
| 110 | 108 | # brew install --cask pusher | |
| 111 | - | # brew install --cask sequel-ace | |
| 112 | - | # brew install --cask keycastr # keystroke visualizer | |
| 109 | + | # brew install --cask sequel-ace | |
| 110 | + | # brew install --cask keycastr # keystroke visualizer | |
| 113 | 111 | # brew install --cask linearmouse | |
| 114 | 112 | # brew install --cask iconizer | |
| 115 | 113 | # brew install --cask kap | |
| @@ -120,7 +118,7 @@ brew install --cask ghostty | |||
| 120 | 118 | # https://caddy.community/t/caddy-on-mac-os-as-homebrew-service-autostart-on-system-startup/16940/2 | |
| 121 | 119 | brew install caddy | |
| 122 | 120 | ||
| 123 | - | ## vim | |
| 121 | + | ## vim | |
| 124 | 122 | curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
| 125 | 123 | https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #plugin | |
| 126 | 124 | ||
| @@ -156,14 +154,13 @@ brew install cocoapods | |||
| 156 | 154 | ||
| 157 | 155 | npm install --global web-ext | |
| 158 | 156 | npm install --global git-format-staged | |
| 159 | - | npm install -g react-native-cli | |
| 157 | + | npm install -g react-native-cli | |
| 160 | 158 | npm install -g yarn | |
| 161 | 159 | npm install -g eslint | |
| 162 | 160 | npm install -g terminalizer | |
| 163 | 161 | ||
| 164 | - | ||
| 165 | 162 | # disk-space-analyzer | |
| 166 | - | curl https://download.nektony.com/download/diskexpert/disk-space-analyzer.dmg -O | |
| 163 | + | curl https://download.nektony.com/download/diskexpert/disk-space-analyzer.dmg -O | |
| 167 | 164 | open disk-space-analyzer.dmg > /dev/null 2&>1 & | |
| 168 | 165 | ||
| 169 | 166 | ## sublime text | |
| @@ -179,11 +176,10 @@ git init --bare $HOME/.cfg | |||
| 179 | 176 | alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' | |
| 180 | 177 | config config --local status.showUntrackedFiles no | |
| 181 | 178 | ||
| 182 | - | ## vim | |
| 179 | + | ## vim | |
| 183 | 180 | curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
| 184 | 181 | https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim #plugin | |
| 185 | 182 | ||
| 186 | - | ||
| 187 | 183 | # sudo part | |
| 188 | 184 | ## Enable install from anywhere | |
| 189 | 185 | # https://www.reddit.com/r/MacOS/comments/pquuc4/comment/hdds9g0/ | |
| @@ -229,13 +225,13 @@ exit | |||
| 229 | 225 | [automation] https://www.hammerspoon.org/go/ | |
| 230 | 226 | [video] https://github.com/mltframework/shotcut/releases | |
| 231 | 227 | [xcode] https://github.com/Serchinastico/Kin | |
| 232 | - | [database] https://github.com/dbeaver/dbeaver/releases | |
| 228 | + | [database] https://github.com/dbeaver/dbeaver/releases | |
| 233 | 229 | [default app] https://www.rubicode.com/Downloads/RCDefaultApp-2.1.X.dmg | |
| 234 | 230 | [wasm] https://github.com/WebAssembly/wabt/releases/w | |
| 235 | 231 | [launchctl] launchcontrol | |
| 236 | 232 | [file-explorer] https://github.com/sayanarijit/xplr/releases | https://github.com/ranger/ranger | https://github.com/kamiyaa/joshuto | nnn | https://github.com/sxyazi/yazi | |
| 237 | - | [file server] https://github.com/sigoden/dufs # webdav | |
| 238 | - | [localsend] https://localsend.org/#/download # file sharing, airdrop | |
| 233 | + | [file server] https://github.com/sigoden/dufs # webdav | |
| 234 | + | [localsend] https://localsend.org/#/download # file sharing, airdrop | |
| 239 | 235 | [teamview] https://github.com/rustdesk/rustdesk/releases # teamviewer alternative | |
| 240 | 236 | [sql] drawsql.app | |
| 241 | 237 | [disk] https://github.com/Byron/dua-cli?tab=readme-ov-file | |
| @@ -244,7 +240,7 @@ exit | |||
| 244 | 240 | [music lyric] buzz | |
| 245 | 241 | [image compressor, blog] caesium image compressor | |
| 246 | 242 | [vpn] tunelblick | |
| 247 | - | [bloatware] uad-ng-macos | |
| 243 | + | [bloatware] uad-ng-macos | |
| 248 | 244 | [window manager] https://github.com/MrKai77/Loop/releases/ | |
| 249 | 245 | [editor] https://zed.dev/download | |
| 250 | 246 | [software] https://github.com/objective-see/KnockKnock | |
paulcoding810 revised this gist 5 months ago. Go to revision
3 files changed, 0 insertions, 0 deletions
backup-mac.sh renamed to backup.sh
File renamed without changes
app-config.md renamed to config.md
File renamed without changes
mac-install.sh renamed to install.sh
File renamed without changes