Skip to content

Instantly share code, notes, and snippets.

View ChrisRomp's full-sized avatar
:shipit:
I :octocat: Codespaces.

Chris Romp ChrisRomp

:shipit:
I :octocat: Codespaces.
  • Microsoft
  • San Francisco, CA
  • 07:46 (UTC -07:00)
  • LinkedIn in/chrisromp
View GitHub Profile
@ChrisRomp
ChrisRomp / bouncie.json
Last active October 12, 2021 19:05
Script to pull data from the Bouncie API - https://www.bouncie.dev
{
"client_id": "",
"client_secret": "",
"grant_type": "authorization_code",
"code": "",
"redirect_uri": ""
}
@ChrisRomp
ChrisRomp / script.sh
Created October 7, 2021 23:34
Create Service SAS Token for Azure Storage REST API with Service Principal
# Using Service Principal
tenantid=xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx
clientid=xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx
clientsecret=xxx....xxxx
# Reqeust Bearer Token
token=$(curl -s -X POST -H 'Content-Type: application/x-www-form-urlencoded' \
-d "grant_type=client_credentials&resource=https%3A%2F%2Fmanagement.azure.com%2F&client_id=$clientid&client_secret=$clientsecret" \
"https://login.microsoftonline.com/$tenantid/oauth2/token" | jq -r .access_token)
@ChrisRomp
ChrisRomp / main.tf
Last active September 3, 2021 22:41
Terraform Function App with Encrypted Storage and VNet Isolation
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~>2.74.0"
}
}
}
# data "azurerm_client_config" "current" {}

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@ChrisRomp
ChrisRomp / JSLink_NewLinkOverride.js
Last active June 26, 2017 16:24
SharePoint JSLink/CSR to Override New Item Toolbar Link