Skip to content

Instantly share code, notes, and snippets.

@PerStirpes
Last active January 10, 2020 06:36
Show Gist options
  • Save PerStirpes/418363bcab83054e356cc6e224ec3ace to your computer and use it in GitHub Desktop.
Save PerStirpes/418363bcab83054e356cc6e224ec3ace to your computer and use it in GitHub Desktop.
setup script
echo "Installing Homebrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
homebrew_packages=(
"coreutils"
"bash"
"bash-completion"
"openssl"
"tree"
)
for homebrew_package in "${homebrew_packages[@]}"; do
brew install "$homebrew_package"
done
# Print openssl version
echo "Your openssl version is"; openssl version
echo "Installing Homebrew cask apps"
brew tap caskroom/cask
homebrew_cask_packages=(
"appcleaner"
"docker"
"firefox"
"flux"
"hyper"
"robo-3t"
"ngrok"
"now"
"spotify"
"skitch"
"tunnelblick"
"visual-studio-code"
"zoomus"
)
for homebrew_cask_package in "${homebrew_cask_packages[@]}"; do
brew cask install "$homebrew_cask_package"
done
#!/bin/bash
unzip-from-link() {
local download_link=$1; shift || return 1
local temporary_dir
temporary_dir=$(mktemp -d) \
&& curl -LO "${download_link:-}" \
&& unzip -d "$temporary_dir" \*.zip \
&& rm -rf \*.zip \
&& mv "$temporary_dir"/* ${1:-"$HOME/DOGS"} \
&& rm -rf $temporary_dir
}
ln -s /tmp $HOME/Tmps
# !/bin/sh
ecco_the_dolphin=(
"$(tput setaf 5)Installing Homebrew...$(tput sgr 0)"
"$(tput setaf 2)Please enter the password 🔑 you use to login to your computer$(tput sgr 0)"
)
for ecco_the_dolphin in "${ecco_the_dolphin[@]}"; do
echo "$ecco_the_dolphin"
done
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
homebrew_packages=(
"coreutils"
"bash"
"bash-completion"
"openssl"
"tree"
)
for homebrew_package in "${homebrew_packages[@]}"; do
brew install "$homebrew_package"
done
# Step 2
echo "$(tput setaf 5)Installing Homebrew Cask apps...🏗$(tput sgr 0)"
brew tap caskroom/cask
homebrew_cask_packages=(
"spotify"
"skitch"
"tunnelblick"
)
for homebrew_cask_package in "${homebrew_cask_packages[@]}"; do
brew cask install "$homebrew_cask_package"
done
# Print openssl version
echo "$(tput setaf 1)Your openssl version is:$(tput sgr 0)"; openssl version
# Next steps ----------------------------------------------------------
# TODO://(Delete when fixed) is this export required? and i believe it's possible to reference the current version `openssl` in this PATH but i'm unsure how to do it
#export EASYRSA_OPENSSL="/usr/local/Cellar/openssl/1.0.2q/bin/openssl"
curl -sS https://launchdarkly.atlassian.net/wiki/download/attachments/15204493/LaunchDarkly-vpn-setup.zip &&
ln -s /tmp $HOME/TmpZ && \
unzip $HOME/Downloads/LaunchDarkly-vpn-setup.zip -d $HOME/TmpZ && \
cd $HOME/Tmp/easyrsa3 && \
./easyrsa init-pki
# testing
# unzip-from-link() {
# local download_link=$1; shift || return 1
# local temporary_dir
# temporary_dir=$(mktemp -d) \
# && curl -LO "${download_link:-}" \
# && unzip -d "$temporary_dir" \*.zip \
# && rm -rf \*.zip \
# && mv "$temporary_dir"/* ${1:-"$HOME/Downloads"} \
# && rm -rf $temporary_dir
# }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment