Skip to content

Instantly share code, notes, and snippets.

View coreylight's full-sized avatar
🚚
Up and up

Corey Light coreylight

🚚
Up and up
View GitHub Profile
@coreylight
coreylight / sls-plugin-post-block-1.js
Created April 21, 2017 16:49
Serverless Plugin Post Block 1
const uuid = require('uuid');
exports.handler = (event, context, callback) => {
const response = {
statusCode: 200,
body: JSON.stringify({
message: 'Your uuid is: ' + uuid.v4(),
input: event
})
};
callback(null, response);
curl 'https://api.opsee.com/graphql' -H 'Pragma: no-cache' -H 'Origin: https://app.opsee.com' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'authorization: $OPSEE_TOKEN' -H 'content-type: application/json' -H 'Accept: */*' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36' -H 'Cache-Control: no-cache' -H 'Referer: https://app.opsee.com/' -H 'Connection: keep-alive' --data-binary '{"query":"{\n checks {\n \tid\n notifications {\n value\n type\n }\n target {\n address\n name\n type\n id\n }\n name\n min_failing_time\n min_failing_count\n response_count\n state\n spec {\n ... on schemaHttpCheck {\n verb\n protocol\n

Keybase proof

I hereby claim:

  • I am coreylight on github.
  • I am coreylight (https://keybase.io/coreylight) on keybase.
  • I have a public key whose fingerprint is 0B14 3F54 F066 89EB F0DD BCA3 1581 5DAE 3C9B 9FD7

To claim this, I am signing this object: