Skip to content

Instantly share code, notes, and snippets.

View Diegiwg's full-sized avatar
...

Diego Queiroz Diegiwg

...
View GitHub Profile
@Diegiwg
Diegiwg / devopness-scan.user.js
Created March 19, 2025 11:56
Load React Scan on Devopness APP
// ==UserScript==
// @name Load React Scan
// @namespace -
// @version 1.0.0
// @description Load React Scan on Devopness APP
// @author Diegiwg
// @match https://*app.devopness.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=devopness.com
// @run-at document-start
// @grant GM_addElement
@Diegiwg
Diegiwg / medium-to-freedium.user.js
Last active March 15, 2025 00:54
Medium to Freedium
// ==UserScript==
// @name Medium to Freedium
// @namespace http://tampermonkey.net/
// @version 3.0.0
// @description Freedium: Your paywall breakthrough for Medium! (Original: https://gist.github.com/Diegiwg/4d00ed615687432b93902d3aa0cf56b3)
// @author Diegiwg
// @match https://medium.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=freedium.cfd
// @grant none
// @run-at document-end
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 / migrate-db.sh
Last active November 6, 2024 18:54
This Bash script automates the process of transferring a MySQL/MariaDB database from a remote host to a other machine (local or other server).
#!/bin/bash
set -e
# Function to check for errors and exit
is_err() {
if [ $? -ne 0 ]; then
echo "ERROR: $1"
exit 1
fi
@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 / Passo a Passo - Azure Credential (rascunho).md
Last active August 9, 2024 13:29
Passo a Passo - Azure Credential (rascunho)

Passo a Passo - Azure Credential (rascunho)

  1. Criar conta no Portal Azure
    • Recomendações:
      • Usar um e-mail nunca usada em nenhuma conta Microsoft (eg: crie um novo @hotmail)
      • Usar um número de telefone nunca usado em nenhuma conta Microsoft
      • Usar um cartão de credito nunca usado em nenhuma conta Microsoft
  2. Na barra de busca do portal, busque por App registrations e acesse
  3. No canto esquerdo superior, busque por New registration e acesse
  4. Configure a nova app
@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 / linkedIn_jobs_api.md
Last active June 1, 2025 06:13
LinkedIn Jobs API Documentation
@Diegiwg
Diegiwg / Padrões de Rotas - Vacuum.md
Created May 6, 2023 22:25
Padrões de Rotas - Vacuum

Padrões de Rotas - Vacuum

Todas as rotas ficam dentro da pasta raiz api, dentro da pasta que representa sua versão, atualmente v1.

Rotas para Conjunto de Recursos

Quando quisermos acessar um conjunto de recursos, a rota estará escrita no plural.

A exemplo com alguns dos recursos que temos no projeto: