Skip to content

Instantly share code, notes, and snippets.

@dlh3
dlh3 / costco-receipts-extractor-snippet.js
Last active August 9, 2026 01:59
Costco Receipts Extractor
//////////////////////
// QUERIES
//////////////////////
const Query = (function() {
const receiptsWithCounts = {
name: 'receiptsWithCounts',
query: `{"query":"query
receiptsWithCounts($startDate: String!, $endDate: String!, $documentType: String!, $documentSubType: String!) {
receiptsWithCounts(startDate: $startDate, endDate: $endDate, documentType: $documentType, documentSubType: $documentSubType) {
receipts {
@chusiang
chusiang / teams-chat-post-for-workflows.sh
Last active June 29, 2026 08:32
Post a message to Microsoft Teams with bash script.
#!/bin/bash
# =============================================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: teams-chat-post-for-workflows.sh
# Modified: 2024-07-22 11:44 (UTC+08:00)
# Description: Post a message to Microsoft Teams via "Post to a chat when a webhook request is received" workflows.
# Reference:
#
# - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025
# - https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/