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
// To return a custom HTTP response, use $.respond() [requires HTTP trigger] | |
export default defineComponent({ | |
props: { | |
body: { | |
type: 'object', | |
label: "Body", | |
description: "The payload to respond with", | |
default: {} | |
}, | |
headers: { |
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 { axios } from "@pipedream/platform" | |
export default defineComponent({ | |
props: { | |
github: { | |
type: "app", | |
app: "github", | |
}, | |
repo_name: { | |
type: "string", | |
label: "Repository Name", |
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
export default { | |
name: "Pg Custom Action", | |
version: "0.0.1", | |
key: "pg-custom-action", | |
description: "", | |
props: { | |
query: { | |
type: 'string', | |
label: 'Query', | |
}, |
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
export APACHE_SERVER_NAME=$(gp url 8080 | sed -e s/https:\\/\\/// | sed -e s/\\///) | |
export APACHE_RUN_USER="gitpod" | |
export APACHE_RUN_GROUP="gitpod" | |
export APACHE_RUN_DIR=/var/run/apache2 | |
export APACHE_PID_FILE="$APACHE_RUN_DIR/apache.pid" | |
export APACHE_LOCK_DIR=/var/lock/apache2 | |
export APACHE_LOG_DIR=/var/log/apache2 |
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
# Apache httpd v2.4 minimal configuration | |
# see https://wiki.apache.org/httpd/Minimal_Config for documentation | |
ServerRoot ${GITPOD_REPO_ROOT} | |
PidFile ${APACHE_PID_FILE} | |
User ${APACHE_RUN_USER} | |
Group ${APACHE_RUN_GROUP} | |
# Modules as installed/activated via apt-get |
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
sequenceDiagram | |
participant Workflow | |
participant Service | |
autonumber | |
Workflow-)Service: POST /api/long-running-job | |
note over Workflow,Service: Create a long running job on the Service | |
rect rgb(82, 78, 183) | |
Workflow->Workflow: Delay | |
note left of Workflow: Delay 1 hour |
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 { | |
ApolloClient, | |
createHttpLink, | |
InMemoryCache, | |
ApolloLink, | |
} from "@apollo/client"; | |
import fetch from "cross-fetch"; | |
/** | |
* Shopify x-request-id header logger |
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
async function createTextSearchIndex(db) { | |
db.collection("customers").createIndex({ | |
firstName: "text", | |
lastName: "text", | |
email: "text", | |
phone: "text" | |
}); | |
} | |
async function createRegexSearchIndex(db) { |
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 vouched = window.Vouched({ | |
appId: { process.env.VOUCHED_API_KEY }, | |
additionalSteps: [ | |
((priorStep, nextStep)) => { | |
// priorStep is a callback to go back 1 step | |
// nextStep is a callback that will go to the next step, if none then vouched.onComplete is called | |
return ( | |
<div> | |
<h2>Please provide your signature</h2> |
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 withDb from '../../middleware/withDb' | |
import { get } from 'lodash' | |
import httpProxyMiddleware from "next-http-proxy-middleware"; | |
import allowCors from "middleware/allowCors"; | |
import jwt from "jsonwebtoken"; | |
export const config = { | |
api: { | |
bodyParser: false, | |
}, |
NewerOlder