Skip to content

Instantly share code, notes, and snippets.

View arthursvpb's full-sized avatar
🤘
ᕕ(⌐■_■)ᕗ ♪♬

Arthur Vasconcellos arthursvpb

🤘
ᕕ(⌐■_■)ᕗ ♪♬
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
Last active December 4, 2022 13:23
My list of VS Code Extensions
alefragnani.bookmarks-13.3.1
alefragnani.project-manager-12.7.0
andys8.jest-snippets-1.9.1
arcanis.vscode-zipfs-3.0.0
atlassian.atlascode-2.10.12
bierner.lit-html-1.11.1
blackboxapp.blackbox-0.7.9
chakrounanas.turbo-console-log-2.6.2
christian-kohler.npm-intellisense-1.4.3
christian-kohler.path-intellisense-2.8.3
@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 June 21, 2023 20:42
My base .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=$PATH:/opt/homebrew/bin
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Setting PATH for Python3
alias python='python3.11'
alias 3='python3.11'