Skip to content

Instantly share code, notes, and snippets.

View parsnips's full-sized avatar

Michael Parsons parsnips

View GitHub Profile
@parsnips
parsnips / query-aws-logs-insights.bash
Created June 29, 2020 15:35 — forked from dsmrt/query-aws-logs-insights.bash
Using AWS CLI to query CloudWatch Logs with Insights. Looking -30 mins to now.
aws logs start-query \
--profile clientProfile \
--log-group-name MY-LOG_GROUP \
--start-time `date -v-30M "+%s"` \
--end-time `date "+%s"` \
--query-string 'fields @message | filter @message like /my query/'
@parsnips
parsnips / app.js
Created December 12, 2012 23:10 — forked from mheadd/app.js
answer();
var date = ask('Please say a date.', {choices: 'http://path/to/date.xml'});
log("*** " + date.value + " ***");
say('You said ' + date.value);
var time = ask('Now, say a time.', {choices: 'http://path/to/time.xml'});
log("*** " + time.value + " ***");
say('You said ' + time.value);