This file contains hidden or 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
| // User agents handled by Prerender | |
| const BOT_AGENTS = [ | |
| "googlebot", | |
| "yahoo! slurp", | |
| "bingbot", | |
| "yandex", | |
| "baiduspider", | |
| "facebookexternalhit", | |
| "twitterbot", | |
| "rogerbot", |
This file contains hidden or 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
| docker run -it -p80:3000 opwork/runtime:latest |
This file contains hidden or 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
| import { FastifyInstance } from 'fastify'; | |
| import staticMiddleware from 'fastify-static'; | |
| import { readFile } from 'fs/promises'; | |
| import { join } from 'path'; | |
| import { ILogger, Logger, Service } from '../../../app/container'; | |
| import { ROOT_DIR } from '../../../app/globals'; | |
| import { IHttpGateway } from '../../http/interface/http-gateway.interface'; | |
| @Service({ | |
| tags: 'http:gateway', |
This file contains hidden or 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 | |
| function ConvertArrayToCsv( | |
| array $subject, | |
| string $delimiter = ';', | |
| string $enclosure = '"', | |
| string $escape = '\\', | |
| bool $pure = false | |
| ): string { | |
| // Create a temporary resource. | |
| $temp = tmpfile(); |
This file contains hidden or 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
| atomsync |
This file contains hidden or 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
| $mime = [ | |
| '3dm' => 'x-world/x-3dmf', | |
| '3dmf' => 'x-world/x-3dmf', | |
| 'a' => 'application/octet-stream', | |
| 'aab' => 'application/x-authorware-bin', | |
| 'aam' => 'application/x-authorware-map', | |
| 'aas' => 'application/x-authorware-seg', | |
| 'abc' => 'text/vnd.abc', | |
| 'acgi' => 'text/html', | |
| 'afl' => 'video/animaflex', |
This file contains hidden or 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
| function endOutput($endMessage){ | |
| ignore_user_abort(true); | |
| set_time_limit(0); | |
| header("Connection: close"); | |
| header("Content-Length: ".strlen($endMessage)); | |
| echo $endMessage; | |
| echo str_repeat("\r\n", 10); // just to be sure | |
| flush(); | |
| } |