-
Notifications
You must be signed in to change notification settings - Fork 3
/
laptop.local
executable file
·115 lines (101 loc) · 2.57 KB
/
laptop.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#!/bin/sh
git_clone_or_pull() {
local REPOSRC=$1
local LOCALREPO=$2
local LOCALREPO_VC_DIR=$LOCALREPO/.git
if [[ ! -d "$LOCALREPO_VC_DIR" ]]; then
git clone --recursive $REPOSRC $LOCALREPO
else
pushd $LOCALREPO
git pull $REPOSRC && git submodule update --init --recursive
popd
fi
}
brew tap azure/functions
brew tap teamookla/speedtest
brew bundle --file=- <<EOF
brew "macvim"
brew "overmind"
brew "vips"
brew "awscli"
brew "sops"
brew "kubectl"
brew "clusterctl"
brew "helm"
brew "kind"
brew "step"
brew "fluxctl"
brew "fluxcd/tap/flux"
brew "argocd"
brew "pipx"
brew "azure-cli"
brew "azure-functions-core-tools@4"
brew "watch"
brew "jq"
brew "yq"
brew "eksctl"
brew "certbot"
brew "speedtest"
brew "cmctl"
brew "iperf3"
brew "cmake"
brew "ninja"
brew "dfu-util"
brew "ccache"
brew "sdl2"
brew "notation"
brew "licensed"
cask "tailscale"
cask "balenaetcher"
cask "iterm2"
cask "google-chrome"
cask "github"
cask "dropbox"
cask "1password"
cask "karabiner-elements"
cask "openvpn-connect"
cask "microsoft-office"
cask "microsoft-teams"
cask "slack"
cask "discord"
cask "docker"
cask "spotify"
cask "zoom"
cask "parallels"
cask "visual-studio-code"
cask "postman"
cask "raycast"
cask "lens"
cask "owasp-zap"
cask "avast-security"
EOF
add_or_update_asdf_plugin "python"
add_or_update_asdf_plugin "terraform"
add_or_update_asdf_plugin "golang" "https://github.com/kennyp/asdf-golang.git"
add_or_update_asdf_plugin "rust" "https://github.com/asdf-community/asdf-rust.git"
add_or_update_asdf_plugin "dotnet-core" "https://github.com/emersonsoares/asdf-dotnet-core.git"
asdf install
fancy_echo "Cleaning up old Homebrew formulae ..."
brew cleanup
git_clone_or_pull "https://github.com/thoughtbot/dotfiles.git" ".thoughtbot-dotfiles"
git_clone_or_pull "https://github.com/hiattp/dotfiles.git" ".hiattp-dotfiles"
cp ~/.hiattp-dotfiles/rcrc ~/.rcrc || :
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | python3 -
curl \
-fsS \
-o ~/.config/karabiner/assets/complex_modifications/escape_multifunction.json \
'https://gist.githubusercontent.com/hiattp/e4b2c8b04a6db4f531264ca759e0d2ab/raw/00d0bc6c75fd09074f37a6d06c7cc609bca03fd7/escape_multifunction.json'
#
# Install Go-based packages/binaries:
#
# This is an interactive wrapper for jq:
go get github.com/fiatjaf/jiq/cmd/jiq
# Install awsume (https://awsu.me/) to facilitate AWS IAM role adoption (and
# other python-based CLI tools via pipx):
pipx completions
pipx install awsume --force
gem_install_or_update "gem-ctags"
if [ -r "$HOME/.rcrc" ]; then
fancy_echo "Updating dotfiles ..."
rcup
fi