Skip to content

Instantly share code, notes, and snippets.

View Diegiwg's full-sized avatar
...

Diego Queiroz Diegiwg

...
View GitHub Profile
import json
import yaml
from typing import Dict, Any, Union
from pathlib import Path
from datetime import datetime, date
def load_spec(file_path: str) -> Dict[str, Any]:
"""Load an OpenAPI spec from a YAML or JSON file."""
path = Path(file_path)
with open(path, 'r') as f:
@Diegiwg
Diegiwg / Install_PHP_on_Arch_Manjaro_Biglinux.md
Created September 4, 2024 00:35 — forked from lucenarenato/Install_PHP_on_Arch_Manjaro_Biglinux.md
Install multiple PHP versions on Arch / Manjaro Linux / BigLinux

Install Any PHP on Arch / Manjaro / Biglinux

Through the AUR it is possible to install older and newer PHP versions, simultaneously on the same system. I often had trouble installing using pacman and pamac so here's what I did:

mkdir -p $HOME/bin
mkdir ~/src
cd ~/src
git clone https://aur.archlinux.org/php72.git
cd php72
@Diegiwg
Diegiwg / FlappyBird.c
Created October 6, 2023 23:19 — forked from smvd/FlappyBird.c
flappy bird writen in c running in the terminal
/*
_ _ _ _____ _ ____ _
| \ | | ___ | |_ | ___| | __ _ _ __ _ __ _ _ | _ \ _ _ ___| | __
| \| |/ _ \| __| | |_ | |/ _` | '_ \| '_ \| | | | | | | | | | |/ __| |/ /
| |\ | (_) | |_ | _| | | (_| | |_) | |_) | |_| | | |_| | |_| | (__| <
|_| \_|\___/ \__| |_| |_|\__,_| .__/| .__/ \__, | |____/ \__,_|\___|_|\_\
|_| |_| |___/
compiler : GCC
command : gcc source.c -o FlappyBird.exe -Werror -Wall -W -s
license : www.unlicense.org (Please credit my channel tho)
@Diegiwg
Diegiwg / git.md
Created March 13, 2023 10:59 — forked from lisanias/git.md
Lista de comandos úteis do GIT

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda