This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use HTMLPurifier; | |
use HTMLPurifier_HTML5Config; | |
use Illuminate\Foundation\Http\Middleware\TransformsRequest; | |
/** | |
* Use HTMLPurifier to purify all inputs with names matching `/[-_]html\s*$/i`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// app/Http/Middleware/PreventOverloading.php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
use Symfony\Component\HttpFoundation\Response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! bun run | |
/** | |
* The author disclaims copyright to this source code. | |
*/ | |
const PAPERLESS_URL = process.env.PAPERLESS_URL ?? ""; | |
const PAPERLESS_TOKEN = process.env.PAPERLESS_TOKEN ?? ""; | |
const PAPERLESS_TAG_ID = process.env.PAPERLESS_TAG_ID ?? 0; | |
const OLLAMA_URL = process.env.OLLAMA_URL ?? ""; |
OlderNewer