Skip to content

Instantly share code, notes, and snippets.

View JamieMagee's full-sized avatar
💪

Jamie Magee JamieMagee

💪
View GitHub Profile
@JamieMagee
JamieMagee / MyWebhookEventProcessor.1.cs
Last active March 4, 2022 05:56
Writing GitHub bots in .NET
using Octokit.Webhooks;
using Octokit.Webhooks.Events;
using Octokit.Webhooks.Events.IssueComment;
public sealed class MyWebhookEventProcessor : WebhookEventProcessor
{
private readonly ILogger<MyWebhookEventProcessor> logger;
public MyWebhookEventProcessor(ILogger<MyWebhookEventProcessor> logger)
@JamieMagee
JamieMagee / Update-AUPackages.md
Last active October 15, 2021 00:06
Update-AUPackages Report #powershell #chocolatey
@JamieMagee
JamieMagee / config
Created October 5, 2021 21:32
Azure DevOps OpenSSH 8.8
Host ssh.dev.azure.com
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
@JamieMagee
JamieMagee / Webhooks.cs
Created July 29, 2021 19:04
NJsonSchema
//----------------------
// <auto-generated>
// Generated using the NJsonSchema v10.4.6.0 (Newtonsoft.Json v9.0.0.0) (http://NJsonSchema.org)
// </auto-generated>
//----------------------
namespace Octokit.Webhooks
{
#pragma warning disable // Disable all warnings
@JamieMagee
JamieMagee / schema.log.txt
Last active July 29, 2021 18:46
github webhooks quicktype
resolving # relative to schema.json# (schema.json#)
trying to fetch schema.json
successully fetched schema.json
resolved to # (schema.json#)
resolving # relative to schema.json# (schema.json#)
resolved to # (schema.json#)
resolving #/definitions/check_run_event relative to #/oneOf/0 (schema.json#/oneOf/0)
trying to fetch
couldn't fetch
resolved to #/definitions/check_run_event (schema.json#/definitions/check_run_event)
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const child_process_1 = require("child_process");
function getProjectUrl(project) {
if (typeof project === 'string') {
return project;
}
if ((project === null || project === void 0 ? void 0 : project.url) !== undefined) {
return project.url;
}
2021-02-23 21:36:59,136 - DEBUG - __main__ - Starting...
2021-02-23 21:36:59,137 - DEBUG - prep - Setting up...
2021-02-23 21:36:59,150 - DEBUG - __main__ - Clearing cache...
2021-02-23 21:36:59,159 - DEBUG - run - Starting analysis...
2021-02-23 21:36:59,222 - DEBUG - docker_api - Checking if image "gcr.io/distroless/base:latest" is available on disk...
2021-02-23 21:36:59,239 - DEBUG - docker_api - Image "gcr.io/distroless/base:latest" found
2021-02-23 21:36:59,777 - DEBUG - rootfs - Running command: tar -tf /root/.tern/temp.tar
2021-02-23 21:36:59,782 - DEBUG - rootfs - Running command: tar -x --exclude=.wh.* -f /root/.tern/temp.tar -C /root/.tern/temp
2021-02-23 21:36:59,819 - DEBUG - rootfs - Running command: tar -tf /root/.tern/temp/82a2e23fb9f1f5ac86b6c60196bff58e163601e5f37f1bc2bb1bd1781e8f6906/layer.tar
2021-02-23 21:36:59,831 - DEBUG - rootfs - Running command: tar -x --exclude=.wh.* -f /root/.tern/temp/82a2e23fb9f1f5ac86b6c60196bff58e163601e5f37f1bc2bb1bd1781e8f6906/layer.tar -C /root/.tern/temp/82
This file has been truncated, but you can view the full file.
{
"images": [
{
"image": {
"repotag": "node:14.15.3-alpine3.12",
"name": "node",
"tag": "14.15.3-alpine3.12",
"manifest": [
{
"Config": "46c3eb6e27e941661ea2f06a323e4518336d5c3fac593f03717a86c182fa0775.json",
@JamieMagee
JamieMagee / ct.yaml
Last active September 8, 2020 07:44
GitHub Pages Helm repository
helm-extra-args: --timeout 600
check-version-increment: true
debug: true
schedules:
- cron: '0 * * * *'
displayName: 'Hourly'
branches:
include:
- master
always: true
trigger: none