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
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" |
$ export DOCKER_HOST=tcp://fnord.local:2376 DOCKER_TLS_VERIFY=1
$ docker ps
An error occurred trying to connect: Get https://fnord.local:2376/v1.21/containers/json: x509: certificate is valid for fnord, 192.168.23.23 , localhost, not fnord.local
$ ssh [email protected]
# /sbin/setcfg global realm local -f /etc/config/smb.conf
# /etc/init.d/network.sh restart
# hostname -f
fnord.local
# cd $(dirname $(readlink /etc/init.d/container-station.sh))