ssh-keygen -t rsa -b 4096 -f ~/.ssh/id-rsa-github -C "github.com"
chmod 600 ~/.ssh/id-rsa-github
Edit ~/.ssh/config
:
import { Request, Response } from "express"; | |
import { GraphQLError, GraphQLFormattedError } from "graphql"; | |
import { GraphQLServerOptions } from "apollo-server-core/src/graphqlOptions"; | |
import { ApolloServer, ApolloServerExpressConfig as C } from "apollo-server-express"; | |
export type FormatError = (graphQLError: GraphQLError, context: unknown) => GraphQLFormattedError; | |
export type ApolloServerExpressConfig = Omit<C, "formatError"> & { | |
formatError?: FormatError; | |
}; |
package com.example; | |
import io.swagger.v3.core.filter.OpenAPISpecFilter; | |
import io.swagger.v3.core.model.ApiDescription; | |
import io.swagger.v3.oas.models.OpenAPI; | |
import io.swagger.v3.oas.models.Operation; | |
import io.swagger.v3.oas.models.PathItem; | |
import io.swagger.v3.oas.models.media.Schema; | |
import io.swagger.v3.oas.models.parameters.Parameter; | |
import io.swagger.v3.oas.models.parameters.RequestBody; |
import java.io.IOException; | |
import java.net.URISyntaxException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.security.KeyFactory; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.PrivateKey; | |
import java.security.interfaces.RSAPublicKey; | |
import java.security.spec.InvalidKeySpecException; | |
import java.security.spec.PKCS8EncodedKeySpec; |
/** | |
* Converts an RGB color value to HSL. Conversion formula | |
* adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
* Assumes r, g, and b are contained in the set [0, 255] and | |
* returns h, s, and l in the set [0, 1]. | |
* | |
* @param Number r The red color value | |
* @param Number g The green color value | |
* @param Number b The blue color value | |
* @return Array The HSL representation |