Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Linda Lawton LindaLawton

🎯
Focusing
View GitHub Profile
@LindaLawton
LindaLawton / KlFhirIssueOneReport.json
Last active Mar 10, 2022
Report processing error.
View KlFhirIssueOneReport.json
{
"resourceType": "Bundle",
"id": "2d3be3fe-f464-4bb1-b0eb-110c2a88e8a9",
"meta": {
"profile": [
"http://gateway.kl.dk/1.0/StructureDefinition/klgateway-care-delivery-report"
]
},
"type": "collection",
"timestamp": "2022-03-03T12:07:20.91+01:00",
View bundel.json
{
"resourceType": "Bundle",
"id": "C424B46A-C0D9-4836-A835-57CF83A41358",
"meta": {
"profile": [
"http://gateway.kl.dk/1.0/StructureDefinition/klgateway-care-delivery-report"
]
},
"type": "collection",
"timestamp": "2021-07-15T12:40:16.657+02:00",
@LindaLawton
LindaLawton / UploadVideo.cs
Created Nov 18, 2021
Upload a file to YouTube. Console application.
View UploadVideo.cs
using System;
using System.IO;
using System.Threading.Tasks;
using Google.Apis.Upload;
using Google.Apis.YouTube.v3;
using Google.Apis.YouTube.v3.Data;
namespace YouTubeExampleUpload
{
public class UploadVideo
@LindaLawton
LindaLawton / DeployGCP-K8sCluster.txt
Last active Oct 4, 2021
GCP Deploy Kuberneties cluser using gcloud deployment-manager
View DeployGCP-K8sCluster.txt
#create the new cluser
gcloud deployment-manager deployments create kuberneties-deployment-v3 --config k8s.yaml
# update the cluser if you change the yaml file
gcloud deployment-manager deployments update kuberneties-deployment-v3 --config k8s.yaml
@LindaLawton
LindaLawton / index.html
Last active Mar 19, 2021
Three JavaScript example for connecting to Google Drive api.
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello Drive v3</title>
<!-- Create a client id on Google developer console. Web credentials https://youtu.be/pBVAyU4pZOU -->
<meta name="google-signin-client_id" content="YOURCREDENTIALSHERE">
<meta name="google-signin-scope" content="https://www.googleapis.com/auth/drive.metadata.readonly">
</head>
<body>
@LindaLawton
LindaLawton / GoogleAnaltyicsConsole.cs
Last active Oct 7, 2020
Sample code for a google analytics console application.
View GoogleAnaltyicsConsole.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using Google.Apis.AnalyticsReporting.v4;
using Google.Apis.AnalyticsReporting.v4.Data;
using Google.Apis.Auth.OAuth2;
using Google.Apis.Services;
using Google.Apis.Util.Store;
@LindaLawton
LindaLawton / GoogleDriveV3FileListConsoleExample.cs
Created May 15, 2020
Google drive v3 File list full console example
View GoogleDriveV3FileListConsoleExample.cs
using System;
using System.IO;
using System.Threading;
using Google.Apis.Auth.OAuth2;
using Google.Apis.Drive.v3;
using Google.Apis.Drive.v3.Data;
using Google.Apis.Requests;
using Google.Apis.Services;
using Google.Apis.Util.Store;
@LindaLawton
LindaLawton / AboutExample.cs
Created May 15, 2020
Google drive v3 samples C#
View AboutExample.cs
using Google.Apis.Drive.v3;
using Google.Apis.Drive.v3.Data;
using System;
using Google.Apis.Requests;
namespace GoogleApiSample.Drivev3
{
public static class AboutExamples
{
@LindaLawton
LindaLawton / FileScanner
Last active Apr 20, 2018
Console application for scanning files
View FileScanner
using System;
using System.IO;
using System.Linq;
namespace FileScanner
{
public class Program
{
private const string _locationOfRepoToScan = @"C:\Development\IdentiyServer\IdentityServer4\src\IdentityServer4";
private const string _localDirectoryReplace = @"C:\Development\IdentiyServer\IdentityServer4\";
@LindaLawton
LindaLawton / CloneClient.sql
Last active Apr 19, 2018
Clones a Identtiy Server4 2.0 client. so that you can create a new one.
View CloneClient.sql
-- Instructions:
-- Run this in anohter window
-- SELECT CONVERT(varchar(255), NEWID());
-- Enter values for new client
DECLARE @clientIdGuid AS VARCHAR(100) = '386B5AA0-2045-43B5-8DFE-ECF474F0A3D6';
DECLARE @NEWCLIENTNAME AS VARCHAR(100) = 'Linda Test Client'
Declare @NEW_CLIENT_DESCRIPTION AS VARCHAR(100) = 'Linda Test CLient'
DECLARE @EMAIL_OF_OWNER AS VARCHAR(100) = 'xxxxx@EG.DK';
DECLARE @RedirectUri AS VARCHAR(100) = 'https://daimto.com';