Skip to content

Instantly share code, notes, and snippets.

@subudear
subudear / Send Event to EventHub.postman_collection.json
Created October 1, 2021 11:05
collection to send events to azure event hub
{
"info": {
"_postman_id": "0b02fd94-70ce-4cb2-a0b6-1fb45cadbf17",
"name": "Send Event to EventHub",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get Access Token for sending Event",
"event": [
@subudear
subudear / Azure_eventhubs_topic_env.postman_environment.json
Created September 25, 2021 22:04
environment for creating event hubs topic using postman
{
"id": "9d2c65ff-d689-4c3c-870a-36a635bf8231",
"name": "Azure_eventhubs_env",
"values": [
{
"key": "client_id",
"value": "",
"enabled": true
},
{
@subudear
subudear / Event Hub - Topic.postman_collection.json
Last active September 25, 2021 22:03
create event hub topic using postman
{
"info": {
"_postman_id": "10d1b2a9-40fe-4eaf-8a7f-19a2a5658faf",
"name": "Event Hub - Topic",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get Access Token",
"event": [
@subudear
subudear / Azure_eventhubs_env.postman_environment.json
Created September 25, 2021 11:10
Postman environment variables for azure event hubs namespace
{
"id": "ba4ffae0-1127-43a3-aaa2-e680c28d2b93",
"name": "Azure_eventhubs_env",
"values": [
{
"key": "client_id",
"value": "",
"enabled": true
},
{
@subudear
subudear / Event Hubs Namespace.postman_collection.json
Last active November 21, 2022 12:53
postman collection for creating azure eventhubs
{
"info": {
"_postman_id": "05e77eff-391e-4804-8ac9-d64969d38575",
"name": "Event Hubs Namespace",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get Access Token For Event Hubs Namespace",
"event": [
@subudear
subudear / Azure_storage_acc_env.postman_environment.json
Created September 23, 2021 09:57
postman environment for azure storage account
{
"id": "db953e65-3c4c-4121-b413-316b75767d23",
"name": "Azure_storage_acc_env",
"values": [
{
"key": "client_id",
"value": "",
"enabled": true
},
{
@subudear
subudear / Azure Storage Account.postman_collection.json
Created September 23, 2021 09:55
postman_collection for azure storage account
{
"info": {
"_postman_id": "bfba77ea-dd5a-40a4-93f8-4a603619df84",
"name": "Azure Storage Account",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get Access Token",
"event": [
@subudear
subudear / push_to_AWSECR.yaml
Created September 23, 2021 01:08
Azure pipeline to push image to AWS ECR
trigger:
- master
pool:
name: Self-Hosted-Agent
variables:
- group: dev
steps:
package main
import "fmt"
import "net/http"
func index(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "<h1>Hello World</h1>")
}
@subudear
subudear / lambda.py
Last active November 21, 2022 12:54
Lambda function to update security group rules with CloudFront IPs
# Ports your application uses that need inbound permissions from the service for
# If all you're doing is HTTPS, this can be simply { 'https': 443 }
INGRESS_PORTS = { 'https': 443 }
# Tags which identify the security groups you want to update
GLOBAL_SG_TAGS = { 'Name': 'Update_CloudFront_IPs', 'AutoUpdate': 'true' }
import boto3