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
{ | |
"jest.pathToJest": "node_modules/@vue/cli-service/bin/vue-cli-service.js test:unit", | |
} |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"name": "vue-cli-service-tests", | |
"request": "launch", | |
"env": { | |
"NODE_ENV": "test" | |
}, |
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 (event, steps) => { | |
// NodeJS implementation in Pipedream of "Intent to Receive" for Xero webhooks | |
const { createHmac } = await import('crypto'); | |
const xero_webhook_key = 'OSd0eLlVIY9ZhViEqlDUh4+6n6M+Lo+eDaEJheJ6OCCgWwIz2D3JIAU6jPMipHRbgKTLz2uJ+xiACXGDBLrgdA==' // Get this from the Xero app | |
const body_string = Buffer.from(steps.trigger.raw_event.body_b64, 'base64').toString() // Use RAW body data so that Pipedream doesn't break our data | |
const xero_hash = steps.trigger.event.headers["x-xero-signature"] // Could probably shorten, but keeping it long for consistency | |
let our_hash = createHmac('sha256', xero_webhook_key).update(body_string).digest("base64") // Generate the hash Xero wants | |
let statusCode = xero_hash == our_hash ? 200 : 401 // If the hashes match, send a 200, else send a 401 |
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
require 'aws-sdk-s3' | |
require 'net/http' | |
require 'uri' | |
SENTRY_INGEST = 'https://XXXXXXXXXXXXXXXX.ingest.sentry.io' | |
SENTRY_CRONS = "#{SENTRY_INGEST}/api/XXXXXXXXXXXXXXXX/cron/daily-db-backup/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/" | |
class DatabaseBackupJob < ApplicationJob | |
queue_as :default |
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
openapi: 3.0.3 | |
info: | |
title: Anthropics Messages API | |
version: 1.0.0 | |
servers: | |
- url: https://api.anthropic.com | |
paths: | |
/v1/messages: | |
post: |
OlderNewer