I had the following problem:
I want to host my own servers (aka. homelab), but I live behind CGNAT, and the ISP don't want to allow 80/443 ports.
| #!/usr/bin/env python3 | |
| """ | |
| metrics - append a Prometheus-style metric line to a SQLite database. | |
| Usage: | |
| metrics [--database=metrics.sqlite] [--group=default] <metric_name>{<flags>} <value> [timestamp] | |
| Metric line format (split across argv, not a single quoted string): | |
| name{flag1="v1",flag2="v2"} value [timestamp] |
| PermitRootLogin no | |
| PubkeyAuthentication yes | |
| PasswordAuthentication no |
.service and .timer files into /etc/systemd/system/;644 (u=rw,g=r,o=r; -rw-r--r--);
chmod 644 /etc/systemd/system/laravel.queue@.servicechmod 644 /etc/systemd/system/laravel.schedule@.servicechmod 644 /etc/systemd/system/laravel.schedule@.timer| #!/bin/bash | |
| # BEGIN Configuration | |
| WATCH_PATHS=($@) | |
| BUILD_COMMAND="go build ./cmd/main" | |
| RUN_COMMAND="./main" | |
| # END Configuration |
| <!DOCTYPE html> | |
| <html lang="pt-BR"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Solicite seu Orçamento</title> | |
| <link rel="preconnect" href="https://fonts.googleapis.com"> | |
| <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Barlow:wght@400;500;600&display=swap" rel="stylesheet"> | |
| <script src="https://cdn.jsdelivr.net/gh/RobinHerbots/Inputmask@5.0.9/dist/inputmask.min.js" integrity="sha256-C6bCPhHNXLmv0/IqH2qbROMoFXPRhWtcMSxkYgQ3a3I=" crossorigin="anonymous"></script> | |
| <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@emailjs/browser@4/dist/email.min.js"></script> |
| <?php | |
| /** | |
| * Trait LexorankOrdering to be used with Laravel framework. | |
| * | |
| * It must be used (`use LexorankOrdering;`) inside the model that supports the | |
| * lexorank ordering, attaching helper methods to it. | |
| * | |
| * The lexorank column must be a varchar, with enough space to store the | |
| * lexorank. `varchar(32)` is recomended. |
Links obtidos de https://hom.nfe.fazenda.gov.br/portal/listaConteudo.aspx?tipoConteudo=04BIflQt1aY=
console.log(Array.from(document.querySelectorAll('a')).filter(v => v.href.includes('exibirArquivo')).map(v => v.href).join('\n'))Links obtidos em 2026-03-20.
| <?php | |
| // Copyright 2026 Diego Garcia | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // |
| <?php | |
| #[Attribute(Attribute::TARGET_PROPERTY)] | |
| class Column | |
| { | |
| public function __construct( | |
| public ?string $name = null | |
| ) {} | |
| } |