Skip to content

Instantly share code, notes, and snippets.

View giggio's full-sized avatar
💭
Nada a perder.

Giovanni Bassi giggio

💭
Nada a perder.
View GitHub Profile
@giggio
giggio / block_oauth_tracking.md
Last active November 20, 2025 13:42
Filters for uBlock origin that block OAuth requests that leak your private information to big techs

Custom filters to block OAuth third party tracking requests

Important: I don't use OAuth login with Google, Meta, Microsoft etc anywhere. If you do, don't use this.

How to use

  1. Go to uBlock Origin settings
  2. Go to "My filters"
  3. Select "Enable my custom filters"
  4. Paste the contents of ublock-origin-filters.txt on the big text area at the bottom of the page and apply changes
@giggio
giggio / connect_lights.yaml
Last active July 22, 2024 16:09
Home Assistant Blueprint to Turn lights on or off based on another light's state changes
blueprint:
name: Connect lights
description: Turn lights on or off based on another light's state changes
domain: automation
input:
target_lights:
name: Lights
description: The lights to sync
selector:
entity:
@giggio
giggio / install-ubuntu-on-android.md
Last active July 23, 2024 01:07
Install Ubuntu in Termux
@giggio
giggio / knative.md
Created December 14, 2023 00:30
Links da palestra sobre Knative

Links da palestra "Sem lock-in: functions no Kubernetes com Knative"

Recursos principais

  • Vídeo da palestra (em breve)
  • Slides da palestra (em breve)

Recursos dos slides

@giggio
giggio / extensions.vsext.json5
Created May 31, 2023 19:26
My Visual Studio 2022 extensions
{
"id": "09f5f8d4-a20b-4cb0-9a1e-25e68640a49e",
"name": "My Visual Studio extensions",
"description": "A collection of my Visual Studio extensions",
"version": "1.0",
"extensions": [
{
"name": ".NET Upgrade Assistant",
"vsixId": "Microsoft.NET.UpgradeAssistant",
"moreInfoUrl": "https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.upgradeassistant",

Links da palestra "Gestão de segredos com Vault no Kubernetes!"

Recursos principais

  • Vídeo da palestra (em breve)
  • Slides da palestra (em breve)

Recursos dos slides

@giggio
giggio / cpf.rs
Last active February 18, 2023 01:36
Validação de CPF escrita pelo Chat GPT.
use regex::Regex;
// 1
// fn validar_cpf(cpf: &str) -> bool {
// let re = Regex::new(r"^(?!000\.000\.000\-00|111\.111\.111\-11|222\.222\.222\-22|333\.333\.333\-33|444\.444\.444\-44|555\.555\.555\-55|666\.666\.666\-66|777\.777\.777\-77|888\.888\.888\-88|999\.999\.999\-99)\d{3}\.\d{3}\.\d{3}\-\d{2}$").unwrap();
// let mut cpf_sem_pontos = cpf.replace(".", "").replace("-", "");
// if !re.is_match(cpf) {
// return false;
// }
// let mut digito1: u32 = 0;
@giggio
giggio / palestra-net7.md
Last active September 23, 2022 18:29
Links da palestra "Novidades do .NET 7 e ASP.NET Core 7"

Links da palestra "Novidades do .NET 7 e ASP.NET Core 7"

Recursos principais

  • Vídeo da palestra (em breve)
  • Slides da palestra (em breve)

Recursos dos slides

@giggio
giggio / dotnet7.md
Last active September 20, 2022 20:53
Links to official .NET 7 announcements