Skip to content

Instantly share code, notes, and snippets.

@zenoyu
zenoyu / gist:f63799a9079a5df376d5daf3cea27be4
Last active March 28, 2024 19:28
AWS Lambda (Node) - Using Insight API to Query your Cloudwatch Log for Daily Error Report
/**
* AWS Lambda (Node) - Using Insight API to Query your Cloudwatch Log for Daily Error Report
* @author Zeno Yu <zeno.yu@gmail.com>
*/
const AWS = require('aws-sdk');
var cloudwatchlogs = new AWS.CloudWatchLogs();
exports.handler = async (event) => {
// Cloudwatch Log Group name
@zenoyu
zenoyu / sfcc-helloworld-service.js
Created October 10, 2019 23:27
SFCC HTTP Service: Making external REST API Call
/**
* Your 1st Hello worldService
*
*/
var LocalServiceRegistry = require('dw/svc/LocalServiceRegistry');
/**
* Helloworld
* @returns {Object} Helloworld Service
*/
@zenoyu
zenoyu / git-handy
Created December 18, 2014 09:46
Useful Git Commands
git config --global user.email "USER@EMAIL.COM"
git config --global user.name "USER"
For those with cntlm:
git config --global http.proxy http://127.0.0.1:3128
git config --global https.proxy https://127.0.0.1:3128
Useful Aliases