Skip to content

Instantly share code, notes, and snippets.

View payalcsureja's full-sized avatar

Payal Sureja payalcsureja

View GitHub Profile
@payalcsureja
payalcsureja / index.js
Created January 31, 2019 17:01
AWS Lamda Canary function - Performs a periodic check of the given site (profile at github.io), erroring out on test failure.
'use strict';
/**
* This sample demonstrates a simple nodejs function to check if site is up and running or not
*/
//var AWS = require('aws-sdk');
const SITE = process.env.SITE; //# URL of the site to check, stored in the site environment variable, e.g. https://aws.amazon.com
const EXPECTED = process.env.EXPECTED; //# String expected to be on the page, stored in the expected environment variable, e.g. Amazon
@payalcsureja
payalcsureja / bash-cheatsheet.sh
Created March 15, 2018 02:17 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04