Skip to content

Instantly share code, notes, and snippets.

View arvindkgs's full-sized avatar

Arvind Kumar GS arvindkgs

View GitHub Profile
@arvindkgs
arvindkgs / Docker Compose.md
Last active October 24, 2021 06:37
[docker] #docker #local-setup #dev-env

Start

docker compose up

start options

Run in background, -d : docker compose up -d

Stop

docker compose down

options

Remove all images and rebuild docker compose down --volumes --remove-orphans --rmi all

@arvindkgs
arvindkgs / Tempo.md
Created October 29, 2021 15:40
[Tracing]

to print trace id in logs "--distributor.log-received-traces=true"

@arvindkgs
arvindkgs / README.md
Created February 21, 2022 14:50
Stripe Subscription with Billing cycle anchor does not apply discounts on initial invoice

I am creating a subscription with billing_cycle_anchor set to first day of next month. Below is the params passed when creating subscription

{
  "metadata": {
    "tenant_id": "2cf19732-0c7b-42e4-a0a2-90fd9c0e7111"
  },
  "collection_method": "send_invoice",
  "days_until_due": "30",
  "backdate_start_date": "1645171200",
 "items": {