Skip to content

Instantly share code, notes, and snippets.

View muriloloffi's full-sized avatar
🥊
Punching above my weight

Murilo muriloloffi

🥊
Punching above my weight
View GitHub Profile
@muriloloffi
muriloloffi / docker-compose-installer-for-container-optimized-os-on-gce.md
Created March 27, 2024 17:13 — forked from kurokobo/docker-compose-installer-for-container-optimized-os-on-gce.md
Simple Installer for Docker Compose on Container-Optimized OS on Google Computing Engine

Simple Installer for Docker Compose on Container-Optimized OS on Google Computing Engine

The easiest way to make Docker Compose available on Container-Optimized OS on Google Compute Engine (GCE) on Google Cloud Platform (GCP).

This is minimal Bash script version of Community Tutorial.

How to use

Simply, download installer.sh, run it, and then reload bash by source ~/.bashrc or re-login.

@muriloloffi
muriloloffi / validar_cpf.php
Created April 9, 2023 17:18 — forked from rafael-neri/validar_cpf.php
Validar CPF em PHP (Completo)
<?php
function validaCPF($cpf) {
// Extrai somente os números
$cpf = preg_replace( '/[^0-9]/is', '', $cpf );
// Verifica se foi informado todos os digitos corretamente
if (strlen($cpf) != 11) {
return false;