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
import * as pulumi from '@pulumi/pulumi' | |
import * as gcp from '@pulumi/gcp' | |
import * as k8s from '@pulumi/kubernetes' | |
export class CloudSQLAccount { | |
readonly serviceAccount: gcp.serviceaccount.Account | |
readonly serviceAccountKey: gcp.serviceaccount.Key | |
readonly credentialsSecret: k8s.core.v1.Secret |
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
// src https://github.com/google/codemirror-mode-jsonnet | |
const jsonnet: any = { | |
token: function (stream, state) { | |
// Handle special states: | |
// In a C-style comment | |
if (state.cComment) { | |
if (stream.match(/\*\//)) { | |
state.cComment = false; | |
return "comment"; |
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
name: Deploy serverless functions | |
on: | |
push: | |
paths: | |
- "functions/**" | |
branches: | |
- "main" | |
jobs: | |
list-functions: | |
runs-on: ubuntu-latest |
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
import crypto from "crypto"; | |
import { StepOpts } from "inngest/types"; | |
const CRYPTO_KEY = process.env.BACKGROUND_VAR_CRYPTO_KEY; | |
export type Encrypted<T> = { | |
iv: string; | |
ciphertext: string; | |
}; |
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
const rulesDirPlugin = require("eslint-plugin-rulesdir"); | |
rulesDirPlugin.RULES_DIR = "eslint-rules"; | |
module.exports = { | |
rules: { | |
"rulesdir/no-link-prefetch": "error", | |
} | |
} |
OlderNewer