Skip to content

Instantly share code, notes, and snippets.

@mryhryki
mryhryki / requst-aws-api-by-curl.sh
Last active September 29, 2023 13:49
curl の --aws-sigv4 オプションで AWS API にリクエストするサンプル(STSの一時的な認証情報を使用する場合)
#!/usr/bin/env bash
#
# 情報ソース
# https://twitter.com/toricls/status/1435133865857667079
#
# cURL --aws-sigv4 Option
# https://curl.se/docs/manpage.html#--aws-sigv4
#
# AWS Lambda - ListFunctions API
# https://docs.aws.amazon.com/ja_jp/lambda/latest/dg/API_ListFunctions.html
@robskillington
robskillington / prometheus.proto
Last active February 15, 2024 22:23
Example Python Prometheus remote write client
// Copyright 2016 Prometheus Team
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.