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 / 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
@giggio
giggio / palestra-rust101.md
Last active July 22, 2023 20:01
Links da palestra "Vamos conhecer um pouco sobre Rust?"

Links da palestra "Vamos conhecer um pouco sobre Rust?"

Recursos principais

Recursos dos slides