Skip to content

Instantly share code, notes, and snippets.

@Bogyie
Last active July 12, 2023 00:31
Show Gist options
  • Save Bogyie/0a09a5f68bff6f42c3ea5b1dac326d75 to your computer and use it in GitHub Desktop.
Save Bogyie/0a09a5f68bff6f42c3ea5b1dac326d75 to your computer and use it in GitHub Desktop.
mac
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install startship
brew install awscli
brew install bat
brew install asdf
brew install terraform
brew install ansible
brew install sops
brew install gh
brew install lsd
brew install lazygit
brew install fzf
brew install blackhole-2ch
brew install --cask fig
brew install --cask iterm2
brew install --cask keybase
brew install --cask slack
brew install --cask stats
brew install --cask keepingyouawake // alt caffeine
brew install --cask openlens
# lguctl
brew tap u-cto-devops/lguctl
brew install lguctl
# https://docs.docker.com/engine/install/binaries/#install-client-binaries-on-macos
DOCKER_LAST_VERSION="24.0.2"
DOCKER_MAC_ARM="https://download.docker.com/mac/static/stable/aarch64/docker-$DOCKER_LAST_VERSION.tgz"
DOCKER_MAC_x86="https://download.docker.com/mac/static/stable/x86_64/docker-$DOCKER_LAST_VERSION.tgz"
curl -o docker.tgz $DOCKER_MAC_ARM \
&& tar -xvzf docker.tgz \
&& sudo chown root:wheel ./docker/docker \
&& sudo mv ./docker/docker /usr/local/bin/docker
&& rm -rf ./docker && rm ./docker.tgz
# https://github.com/abiosoft/colima
brew install colima
aws configure
lguctl init
fig doctor
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
export PATH=$PATH:~/local/bin
# Fig post block. Keep at the bottom of this file.
[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh"
eval "$(starship init zsh)"
# Uplus DAX
DAX_SOPS_KMS="arn:aws:kms:ap-northeast-2:405632744109:key/e314aace-2204-42d2-aa3b-45398f5556d5"
DAX_SOPS_ROLE="arn:aws:iam::405632744109:role/security-sops"
# alias
alias lazy=lazygit
alias fd=fzf --preview 'cat {}'
alias ll=lsd
alias ls=lsd
alias vi=nvim
alias vim=nvim
alias cat=bat
alias tf=terraform
alias tflock="terraform providers lock -platform=linux_arm64 -platform=linux_amd64 -platform=darwin_amd64 -platform=windows_amd64"
alias sops-dax="sops -e -i $DAX_SOPS_KMS+$DAX_SOPS_ROLE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment