Skip to content

Instantly share code, notes, and snippets.

View SydneyUni-Jim's full-sized avatar

Jim Nicholls SydneyUni-Jim

View GitHub Profile
@SydneyUni-Jim
SydneyUni-Jim / make-change-batch.jq
Last active March 15, 2024 03:29
Converts the output of route53 list-resource-record-sets into the change batch input for change-resource-record-sets.
{"Changes": .ResourceRecordSets | map({"Action": "UPSERT", "ResourceRecordSet": .})}
@SydneyUni-Jim
SydneyUni-Jim / parallelTransform.js
Last active March 15, 2024 03:37
Node.js Transform that executes in parallel with an async transformer
import { strict as assert } from 'node:assert'
import { Transform } from 'node:stream'
import os from 'node:os'
export class ParallelAsyncTransform extends Transform {
constructor(maxParallel = os.availableParallelism(), options = {}) {
super({
highWaterMark: maxParallel,
@SydneyUni-Jim
SydneyUni-Jim / pipeline.ts
Last active July 6, 2022 00:25
Custom logical ids for CodeBuild projects
import * as cdk from 'aws-cdk-lib'
import * as codebuild from 'aws-cdk-lib/aws-codebuild'
import * as pipelines from 'aws-cdk-lib/pipelines'
import { Construct } from 'constructs'
export class PipelineStack extends cdk.Stack {
public readonly pipeline: pipelines.CodePipeline
@SydneyUni-Jim
SydneyUni-Jim / bib_display.html
Last active February 8, 2017 09:53
Workaround for not being able to request after a keyword search in Sierra 3.0's opac
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<script>
"use strict"
/*
Copyright 2017 Jim Nicholls, The University of Sydney.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at