Skip to content

Instantly share code, notes, and snippets.

View emanguy's full-sized avatar

Evan Rittenhouse emanguy

View GitHub Profile
@Blackshome
Blackshome / appliance-notifications.yaml
Last active May 5, 2026 14:20
appliance-notifications.yaml
blueprint:
name: Appliance Notifications & Actions
description: >
# 📳 Appliance Notifications & Actions
**Version: 4.0**
🤔 Watts your appliance up to, you're always in the know from start to finish! 🛎️🔌💸
@braddle
braddle / testify_suite_test.txt
Created June 11, 2019 10:45
Golang Testify Suite Test Live Template
func (s *$SUITE$) Test$NAME$() {
$END$
}
@braddle
braddle / testify_suite.txt
Created June 11, 2019 10:01
Golang Testify Suite Live Template
type $SUITE$Suite struct {
suite.Suite
}
func Test$SUITE$Suite(t *testing.T) {
suite.Run(t, new($SUITE$Suite))
}
@ehrnst
ehrnst / Get-PCAAppUserAuthenticationBearer.ps1
Last active December 23, 2022 01:12
Create a token to authenticate against microsoft partner center API as App + User
function Get-PCAppUserAuthenticationBearer {
<#
.SYNOPSIS
Function to retrieve App+User bearer token from Microsoft CSP API
.DESCRIPTION
This function connects to Azure AD to generate an oAuth token.
Aquired token is then used against the partner center REST API to generate a App+User jwt token. https://api.partnercenter.microsoft.com/generatetoken
You can read more about the authentication method here: https://msdn.microsoft.com/en-us/library/partnercenter/mt634709.aspx
.PARAMETER ClientID