Skip to content

Instantly share code, notes, and snippets.

View coip's full-sized avatar
💭
( ͡° ͜ʖ ͡°)

e coip

💭
( ͡° ͜ʖ ͡°)
View GitHub Profile
@coip
coip / docker-compose.yml
Created February 21, 2022 22:45 — forked from thejmazz/docker-compose.yml
Example using docker compose v2 health check depends on and tmpfs to store Vault secrets ephemeral with container
version: '2.3'
services:
init:
image: vault
container_name: minio_init
environment:
VAULT_ADDR: https://10.110.1.9:8200
VAULT_CACERT: /run/secrets/chain.pem
volumes:
@coip
coip / submitappinsights.go
Created April 2, 2020 15:39
testing appinsights for fs .env scoping. helped identify issue with scheduled task invocation, might be an otherwise useful snippet.
package main
import (
"fmt"
"os"
"path/filepath"
"time"
"github.com/joho/godotenv"
"github.com/microsoft/ApplicationInsights-Go/appinsights"
@coip
coip / getgomod.sh
Last active January 18, 2020 04:05
gets latest go.mod
#!/bin/sh
raw=$(curl -s -H "Authorization: token $PAT" https://api.github.com/repos/$1/$2/contents/go.mod \
| grep -o "https://raw.*token=[a-zA-Z0-9]*")
curl -s "${raw}"
echo "Available Products:"
curl "localhost:8080/api/vendors/getProducts"
sleep 10
curl "localhost:8080/api/customer/addItem" -d '{"basket":"LisaG", "code":"AP1"}'
curl "localhost:8080/api/customer/addItem" -d '{"basket":"LisaG", "code":"ALL"}'
curl "localhost:8080/api/customer/addItem" -d '{"basket":"LisaG", "code":"CH1"}'
curl "localhost:8080/api/customer/addItem" -d '{"basket":"LisaG", "code":"AP1"}'
curl "localhost:8080/api/customer/addItem" -d '{"basket":"GrantP", "code":"AP1"}'
curl "localhost:8080/api/customer/addItem" -d '{"basket":"LisaG", "code":"AP1"}'
curl "localhost:8080/api/customer/addItem" -d '{"basket":"GrantP", "code":"AP1"}'