Skip to content

Instantly share code, notes, and snippets.

View synesthesia's full-sized avatar
💭
I may be slow to respond.

Julian Elve synesthesia

💭
I may be slow to respond.
View GitHub Profile
@synesthesia
synesthesia / Get-DynamicsMetadata.ps1
Created March 8, 2024 12:41
Download Dataverse REST API metadata
$environmentUrl = 'https://yourtenant.crmX.dynamics.com/' # change this
$writeFileTo = 'C:\temp\dynamics-metadata.xml' # change this
$azTenantId = "Insert your AD tenant ID (GUID)" #change this
## Login if not already logged in
if ($null -eq (Get-AzTenant -ErrorAction SilentlyContinue)) {
Connect-AzAccount -TenantId $azTenantId| Out-Null
}
# Get an access token
$token = (Get-AzAccessToken -ResourceUrl $environmentUrl).Token
@synesthesia
synesthesia / keybase.md
Created July 14, 2022 10:49
keybase.md

Keybase proof

I hereby claim:

  • I am synesthesia on github.
  • I am synesthesiauk (https://keybase.io/synesthesiauk) on keybase.
  • I have a public key ASCeG2yBZtz4pWo3egHwhVFDyyd0PEP-1yUqn3LJUYTMqwo

To claim this, I am signing this object:

@synesthesia
synesthesia / query-ai-net.ipynb
Created May 21, 2021 10:40
Notebook: query Application Insights using C# / .Net Interactive
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@synesthesia
synesthesia / local-antora-playbook.yml
Last active September 3, 2020 14:16
Antora - Example of local author mode playbook
site:
title: My supe documentation site
start_page: sample::index.adoc
content:
sources:
- url: ./workspace/mycontentproject
branches: HEAD
start_path: docs
ui:
bundle:
@synesthesia
synesthesia / gulpfile.js
Created September 3, 2020 13:58
Gulp script to run local antora authoring preview
// see https://gitlab.com/antora/demo/docs-site/blob/watch-mode/gulpfile.js
// see https://gitlab.com/antora/antora/-/issues/329
'use strict'
const connect = require('gulp-connect')
const fs = require('fs')
//const generator = require('@antora/site-generator-default')
const generator = require('antora-site-generator-lunr')
process.env['DOCSEARCH_ENABLED'] = true
process.env['DOCSEARCH_ENGINE'] = 'lunr'
@synesthesia
synesthesia / netlify.toml
Created September 3, 2020 11:38
Netlify config to publish Antora project
# Note you must also set the following environment varibables in the Netlify UI:
# GITHUB_CREDENTIALS - a credential that can access private source repos linked from this publishing repo
# See https://docs.antora.org/antora/2.3/playbook/private-repository-auth/#pass-credentials-via-an-environment-variable
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
[build]
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
@synesthesia
synesthesia / build-site.sh
Created September 3, 2020 11:34
Shell script to build antora site
DOCSEARCH_ENABLED=true DOCSEARCH_ENGINE=lunr NODE_PATH="$(npm -g root)" antora --fetch --generator antora-site-generator-lunr antora-playbook.yml
@synesthesia
synesthesia / build-azure.yml
Created September 3, 2020 11:27
Trigger Antora site Azure DevOps pipeline from GitHub action
name: Trigger Azure Build for Staff Docs
on:
push:
branches:
- master
paths:
- 'staff/**'
jobs:
@synesthesia
synesthesia / build-public.yml
Created September 3, 2020 11:02
GH action to trigger netlify build for public docs
name: Trigger netlify build for public docs
on:
push:
branches:
- master
paths:
- 'public/**'
jobs:
trigger-publish:
runs-on: ubuntu-latest
@synesthesia
synesthesia / Export-Drafts-to-Foam.md
Last active July 16, 2020 07:28
Drafts - post note to Foam inbox