Skip to content

Instantly share code, notes, and snippets.

@jmannau
jmannau / Dockerfile
Created January 4, 2021 10:44
Building Orthanc Storage Plugins
FROM debian:buster-20200514-slim as build-plugin-s3
#### START Setup build requirements ####
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get --assume-yes update && \
apt-get --assume-yes install vim && \
apt-get --assume-yes install wget && \
apt-get --assume-yes install curl && \
apt-get --assume-yes install python3.7 && \
apt-get --assume-yes install python3-pip && \
@jmannau
jmannau / nhmrc-char-count-script-lab-extension.yaml
Last active October 25, 2019 04:03
NHMRC MS Word Character Count Extension
name: NHMRC Character Count
description: ""
host: WORD
api_set: {}
script:
content: >
/* global document, Office, Word */
Office.onReady((info) => {
@jmannau
jmannau / windows_development_setup.md
Last active October 18, 2019 00:08
Windows Development

Windows Development Setup

I use a Mac for day to day development. Every now and then I need a Windows box to test or dev on. Microsoft provide Virtual Machines for developers to use that can be downloaded from microsoft.com. The only caveat here is that the builds expire after rougly 3-6 months, so they really are for occasional use. Don't store anything in the VM that you need to keep.

Windows Depenancy Management

Being a mac developer, I user Brew to manage dependancies. Today, I needed to compile a program in windows that required several dependancies, including Git, JDK, Ant & NSIS. Rather than manually downloading and installing each exe, I used Chocolatey to setup my environment. Once installed, Chocolatey works very similar to brew. This includes:

  • choco search {search string}
  • choco info {package name}
  • choco install {package name}
@jmannau
jmannau / ionic-v3-production-build-with-aws-amplify.md
Created April 4, 2019 00:39
Ionic v3 Production Builds & AWS Amplify (GraphQL)

Ionic v3 Production Builds & AWS Amplify (GraphQL)

Today, I had a very unusual problem. An Ionic v3 app that we are developing worked fine in development, but when compiled in production mode (ionic build --prod) would fail to launch. When connected to a web inspector, the error thrown was

Error: Cannot use e "__Schema" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
@jmannau
jmannau / when-not-to-use-ngrx--angular-melbourne.md
Last active April 3, 2019 23:14
When not to use NGRX - Angular Melbourne Meetup 3/4/2019