Skip to content

Instantly share code, notes, and snippets.

View arthursvpb's full-sized avatar
🏠
Working from home

Arthur Vasconcellos arthursvpb

🏠
Working from home
View GitHub Profile
@arthursvpb
arthursvpb / k8s-nginx-quickstart.yaml
Created December 13, 2023 11:13
This YAML file is designed to be a quickstart for deploying an Nginx web server in a Kubernetes cluster.
# Define a new Namespace for our test environment
apiVersion: v1
kind: Namespace
metadata:
name: quickstart-test
---
# Deployment definition starts here
apiVersion: apps/v1
kind: Deployment
@arthursvpb
arthursvpb / .docker-compose.yml
Last active October 25, 2023 09:01
Portainer GUI .docker-compose.yml
# Run with: docker compose up -d
version: '3'
services:
portainer:
image: portainer/portainer-ce
container_name: portainer
ports:
- "9000:9000"
volumes:
@arthursvpb
arthursvpb / README.md
Created January 31, 2023 18:04
Readme Template
@arthursvpb
arthursvpb / whatsapp-join-full-group-automatization.js
Created November 24, 2022 16:15
Automatization for Whatsapp Web to try joining a full group until someone leaves it.
/**
* Follow the steps bellow and paste this script inside your dev tools
*/
// 1. Click on the invite link, example: https://chat.whatsapp.com/1234
// 2. Click on "Join chat" without whatsapp installed on your machine
// 3. Copy link address of "use whatsapp web" link
// 4. On your whatsapp web, send a message for yourself containing this link
// 4.1. The link should be something like https://web.whatsapp.com/accept?code=<invite-link>
@arthursvpb
arthursvpb / vs-code-extensions.md
Last active July 21, 2025 20:12
My list of VS Code Extensions
Extension Name Extension ID
Codesnap adpyke.codesnap
Bookmarks alefragnani.bookmarks
Project Manager alefragnani.project-manager
Codewhisperer For Command Line Companion amazonwebservices.codewhisperer-for-command-line-companion
Jest Snippets andys8.jest-snippets
Vscode Zipfs arcanis.vscode-zipfs
Atlascode atlassian.atlascode
Lit Html bierner.lit-html
@arthursvpb
arthursvpb / video-speed.js
Last active August 11, 2022 00:17
Change video speed of any video in browser console
document.querySelectorAll('video').forEach(v => v.playbackRate=2)
@arthursvpb
arthursvpb / centering.css
Created August 8, 2022 23:14
Ways to center elements in CSS
/* Grid/Flexbox */
.parent {
display: flex; /*grid*/
justify-content: center;
align-items: center;
}
/* Grid/Flexbox with margin */
.parent {
display: flex; /*grid*/
@arthursvpb
arthursvpb / bowling-score-calculator.js
Created July 27, 2022 00:27
Bowling Score Calculator written in JavaScript
const score1 = '165/251/X2/71XX1/7';
const score2 = '12324/XX9/247/X9/0';
const score3 = '6/54X6/367/X9/278/X';
function calculateScore(input) {
const scoreArray = input.split('');
const calculateSlashBonus = (previous, next) => 10 - previous + next;
const calculateXBonus = (next, nextNext) => 10 + next + nextNext;
const isFinalRound = index => index > 15;
@arthursvpb
arthursvpb / .zshrc
Last active September 13, 2025 05:01
My base .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
export ZSH="$HOME/.oh-my-zsh"
export DOCKER_BUILDKIT=1
ZSH_THEME="spaceship"
plugins=(
git
zsh-autosuggestions