brew install microsoft-edge --cask
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, urllib2, json, re, textwrap | |
keys_path = "keys/" | |
keys_file_prefix = "jwks-" | |
keys_file_ext = ".crt" | |
remove_old_keys = True | |
idp_jwks = { | |
"AAD_V1": "https://login.windows.net/common/discovery/keys", | |
"AAD_V2": "https://login.microsoftonline.com/common/discovery/v2.0/keys", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { step, assemble } = require('@pstnorge/slede8') | |
const getProgram = (requiredChars) => { | |
return `.DATA 0x51,0x00,0x61,0x01,0xa1,0x00,0xb1,0x01,0xc1,0x00,0x83,0x03,0x91,0x${requiredChars.toString(16)},0x06,0x02,0x04,0x03,0x72,0x05,0x55,0x67,0x25,0x72,0x25,0x32,0x15,0x2c,0x52,0x06,0x62,0x07,0x65,0xb9,0x55,0xb0,0x17,0xa9,0xe9,0x00,0x07,0xac,0x29,0x03,0xb3,0x05,0x1a,0x06,0x00,0x00,0x23,0x05,0x1a,0x06,0x00,0x00,0x51,0x51,0x57,0x7e,0x6e,0x64,0x77,0x12,0x59,0x38,0xf3,0x8a,0x48,0x3d,0xeb,0x53,0x7d,0x21,0x5c,0xaf,0x1c,0xae,0x50,0x25,0x55,0x3f,0x4b,0x6f,0x72,0x72,0x65,0x6b,0x74,0x21,0x00,0x46,0x65,0x69,0x6c,0x21,0x00,0x04,0x02,0x07,0xa2,0xd9,0x06,0x16,0x02,0x55,0xb0,0x18,0x06,0x0b,0x00` | |
} | |
const getRange = (start, end) => { | |
const range = [] | |
for (let year = start; year < end + 1; year++) { | |
range.push(year) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => { | |
const { post } = require('axios').default | |
const { stringify } = require('qs') | |
const { writeFile } = require('fs').promises | |
const config = require('./grep-config') | |
const repackUdirSparql = require('./repack-udir-sparql') | |
const logger = console.log | |
const extractGrepData = async (type, url, query) => { | |
const requestHeaders = { 'Content-Type': 'application/x-www-form-urlencoded', Accept: 'application/json' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module Logger # https://github.com/vtfk/Logger | |
Add-LogTarget -Name Console | |
Add-LogTarget -Name CMTrace -Configuration @{ Path = "SetSPOUserProperties" } | |
Write-Log -Message "Start script.. Connecting to Sharepoint PnP" | |
# Connect Sharepoint PnP | |
Connect-Office365 -SharePointPnP -SharePointTenantName "vtfk" -Target "<azure-user>" -ErrorAction Stop | |
Write-Log -Message "Connected! Get employees from AD..." |
Subscription-Komponenttype-Beskrivelse
- Subscription =
prod
,test
ellerdl
(datasjø) - Komponenttype = "resource name prefix" hentet fra denne siden
- Beskrivelse = En anekdote om tjenesten
- Som hovedregel skal alle løsninger settes opp i både dev/test- og prod-subscriptionene.
- Én resource group (rg) pr. tjeneste som samler alle komponenter til tjenesten. F.eks: