The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "[MAY]", and "[OPTIONAL][MAY]" in this document are to be interpreted as described in RFC 2119.
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
| This is free and unencumbered software released into the public domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors | |
| of this software dedicate any and all copyright interest in the | |
| software to the public domain. We make this dedication for the benefit |
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 { BoomError } from 'boom'; | |
| import { Request, HandlerDecorations, ResponseToolkit } from 'hapi'; | |
| import { Agent, IncomingMessage } from 'http'; | |
| import { Server, PluginPackage } from 'hapi'; | |
| import { ResponseObject } from 'hapi'; | |
| export interface ProxyHandlerOptions { | |
| host?: string; | |
| port?: number | string; | |
| protocol?: 'http' | 'https'; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #include <stdio.h> | |
| #include <stdint.h> | |
| #include <esp_libc.h> | |
| #include "freertos/FreeRTOS.h" | |
| #include "freertos/task.h" | |
| #include "rom/ets_sys.h" | |
| #include "driver/uart.h" | |
| #include "driver/gpio.h" | |
| #include "esp_system.h" |
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
| "Functions for generating key-sortable unique IDs (KSUIDs)." | |
| import os | |
| import time | |
| import typing | |
| EPOCH = 1400000000 # segment.io epoch (March 5th, 2014) | |
| DIGITS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' | |
| def timestamp_bytes() -> bytes: |
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 pgConfig(url) { | |
| const config = {}; | |
| let { auth, hostname, port, pathname, query } = parse(url); | |
| let { poolSize, poolIdleTimeout } = (query || {}); | |
| if (auth) { | |
| let [user, password] = auth.split(':'); |
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
| node_modules/ | |
| typings/ | |
| dist/ |
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
| package main | |
| // #include <stdlib.h> | |
| // #include <unistd.h> | |
| // #include <sys/types.h> | |
| // #include <pwd.h> | |
| // #include <grp.h> | |
| import "C" | |
| import "fmt" |