Skip to content

Instantly share code, notes, and snippets.

@felipecodes
Last active April 29, 2020 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipecodes/e69b4e2682ee39eba37f7ab1a5fb31f7 to your computer and use it in GitHub Desktop.
Save felipecodes/e69b4e2682ee39eba37f7ab1a5fb31f7 to your computer and use it in GitHub Desktop.
sudo apt-get update
echo 'installing curl'
sudo apt install curl -y
echo 'installing git'
sudo apt install git -y
echo 'installing mathias dotfiles'
cd; curl -#L https://github.com/mathiasbynens/dotfiles/tarball/master | tar -xzv --strip-components 1 --exclude={README.md,bootstrap.sh,.osx,LICENSE-MIT.txt}
echo "What name do you want to use in GIT user.name?"
echo "For example, mine will be \"Felipe Oliveira\""
read git_config_user_name
git config --global user.name "$git_config_user_name"
clear
echo "What email do you want to use in GIT user.email?"
echo "For example, mine will be \"felipe.o.silva18@gmail.com\""
read git_config_user_email
git config --global user.email $git_config_user_email
clear
echo "Can I set VIM as your default GIT editor for you? (y/n)"
read git_core_editor_to_vim
if echo "$git_core_editor_to_vim" | grep -iq "^y" ;then
git config --global core.editor vim
else
echo "Okay, no problem. :) Let's move on!"
fi
echo "Generating a SSH Key"
ssh-keygen -t rsa -b 4096 -C $git_config_user_email
ssh-add ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub | xclip -selection clipboard
echo 'enabling workspaces for both screens'
gsettings set org.gnome.mutter workspaces-only-on-primary false
echo 'installing tool to handle clipboard via CLI'
sudo apt-get install xclip -y
export alias pbcopy='xclip -selection clipboard'
export alias pbpaste='xclip -selection clipboard -o'
source ~/.bashrc
echo 'installing vim'
sudo apt install vim -y
clear
echo 'installing code'
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get install apt-transport-https -y
sudo apt-get update
sudo apt-get install code -y # or code-insiders
echo 'installing extensions'
code --install-extension dbaeumer.vscode-eslint
code --install-extension christian-kohler.path-intellisense
code --install-extension dbaeumer.vscode-eslint
code --install-extension dracula-theme.theme-dracula
code --install-extension esbenp.prettier-vscode
code --install-extension foxundermoon.shell-format
code --install-extension pmneo.tsimporter
code --install-extension waderyan.gitblame
code --install-extension yzhang.markdown-all-in-one
code --install-extension formulahendry.auto-close-tag
code --install-extension formulahendry.auto-rename-tag
code --install-extension teabyii.ayu
code --install-extension smeagolem.ayu-one-dark-pro
code --install-extension coenraads.bracket-pair-colorizer
code --install-extension naumovs.color-highlight
code --install-extension mikestead.dotenv
code --install-extension dsznajder.es7-react-js-snippets
code --install-extension dbaeumer.vscode-eslint
code --install-extension knisterpeter.vscode-github
code --install-extension me-dutour-mathieu.vscode-github-actions
code --install-extension github.vscode-pull-request-github
code --install-extension prisma.vscode-graphql
code --install-extension kumar-harsh.graphql-for-vscode
code --install-extension bubersson.theme-hop-light
code --install-extension ms-vsliveshare.vsliveshare
code --install-extension pkief.material-icon-theme
code --install-extension sdras.night-owl
code --install-extension liviuschera.noctis
code --install-extension christian-kohler.npm-intellisense
code --install-extension whizkydee.material-palenight-theme
code --install-extension christian-kohler.path-intellisense
code --install-extension johnpapa.vscode-peacock
code --install-extension pnp.polacode
code --install-extension 2gua.rainbow-brackets
code --install-extension mrmlnc.vscode-scss
code --install-extension mauve.terraform
code --install-extension ms-vscode.vscode-typescript-tslint-plugin
code --install-extension jpoissonnier.vscode-styled-components
code --install-extension wakatime.vscode-wakatime
code --install-extension redhat.vscode-yaml
echo 'installing spotify'
snap install spotify
echo 'installing chrome'
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
echo 'installing nvm'
sh -c "$(curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash)"
export NVM_DIR="$HOME/.nvm" && (
git clone https://github.com/creationix/nvm.git "$NVM_DIR"
cd "$NVM_DIR"
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" $(git rev-list --tags --max-count=1)`
) && \. "$NVM_DIR/nvm.sh"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
source ~/.bashrc
nvm --version
nvm install --lts
nvm alias default --lts
node --version
npm --version
echo 'installing slack'
wget https://downloads.slack-edge.com/linux_releases/slack-desktop-3.3.8-amd64.deb
sudo apt install ./slack-desktop-*.deb -y
echo 'installing terminator'
sudo apt-get update
sudo apt-get install terminator -y
echo 'installing docker'
sudo apt-get remove docker docker-engine docker.io
sudo apt install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker
docker --version
chmod 777 /var/run/docker.sock
docker run hello-world
echo 'installing docker-compose'
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
echo 'installing aws-cli'
sudo apt-get install awscli -y
aws --version
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
sudo dpkg -i session-manager-plugin.deb
session-manager-plugin --version
echo 'installing brave-browser'
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
echo "deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list
sudo apt update
sudo apt install brave-browser
echo 'installing dbeaver'
wget -c https://dbeaver.io/files/6.0.0/dbeaver-ce_6.0.0_amd64.deb
sudo dpkg -i dbeaver-ce_6.0.0_amd64.deb
sudo apt-get install -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment