Skip to content

Instantly share code, notes, and snippets.

View vinicius98s's full-sized avatar

Vinicius Sales vinicius98s

View GitHub Profile
@vinicius98s
vinicius98s / install-docker-compose.sh
Last active August 12, 2020 19:01
Install the latest version of docker-compose
docker_compose_version=$(curl -s 'https://api.github.com/repos/docker/compose/releases/latest' | awk -F=":" -v RS="," '$1~/"tag_name"/ {print}' | sed 's/"tag_name": //g' | sed 's/[^"]*"\([^"]*\)".*/\1/' | xargs echo -n)
echo Installing docker-compose v${docker_compose_version}
curl -L https://github.com/docker/compose/releases/download/${docker_compose_version}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
@vinicius98s
vinicius98s / .p10k.zsh
Last active April 24, 2020 19:42
p10k config
# Generated by Powerlevel10k configuration wizard on 2020-04-21 at 09:32 -03.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 51767.
# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode,
# vertical separators, blurred heads, blurred tails, 2 lines, disconnected, no frame,
# sparse, many icons, concise, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with powerline prompt style with colorful background.
# Type `p10k configure` to generate your own config based on it.
#
@vinicius98s
vinicius98s / ubuntu.sh
Last active January 4, 2022 16:03
Ubuntu config file
sudo apt-get update
# Installing curl
sudo apt install curl -y
# Installing general programs
# Chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update ; sudo apt-get install google-chrome-stable -y
@vinicius98s
vinicius98s / .zshrc
Last active February 27, 2021 10:59
ZSH Config
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@vinicius98s
vinicius98s / index.html
Last active March 14, 2019 21:28
Redux - Nanodegree React Developer
<!DOCTYPE html>
<html>
<head>
<title>Udacity Todos Goals</title>
<script src='https://cdnjs.cloudflare.com/ajax/libs/redux/3.7.2/redux.min.js'></script>
<script src='https://unpkg.com/react@16.3.0-alpha.1/umd/react.development.js'></script>
<script src='https://unpkg.com/react-dom@16.3.0-alpha.1/umd/react-dom.development.js'></script>
<script src='https://unpkg.com/babel-standalone@6.15.0/babel.min.js'></script>
<script src='https://tylermcginnis.com/goals-todos-api/index.js'></script>
<script src='https://unpkg.com/redux-thunk@2.2.0/dist/redux-thunk.min.js'></script>