Skip to content

Instantly share code, notes, and snippets.

View jufemaiz's full-sized avatar
🔌
CTO at @enosi

Joel Courtney jufemaiz

🔌
CTO at @enosi
View GitHub Profile
@jufemaiz
jufemaiz / README.md
Last active October 24, 2023 03:54
OpenNEM pricing checks

Pricing checks

Looking at OpenNEM the values for pricing, particularly during the mid to late 2000s, don't seem correct.

@jufemaiz
jufemaiz / Dockerfile.313
Last active July 23, 2021 04:23
Makefile issues with golang using alpine 3.14
FROM alpine:3.13
RUN apk add --no-cache make
COPY . /app
WORKDIR /app
RUN make path
@jufemaiz
jufemaiz / aggregate.rb
Last active January 4, 2021 04:43
AU-NSW COVID-19 data aggregation
# frozen_string_literal: true
require 'csv'
require 'fileutils'
require 'open-uri'
TEMP_DIRECTORY = 'tmp'
# Create temp file
@jufemaiz
jufemaiz / account_a_remote_access_policy.tf
Created July 23, 2020 08:26
Basic terraform for remote account ECR access by an ECS
resource "aws_ecr_repository" "account_a" {
name = var.ecr_name
tags = local.tags
}
resource "aws_ecr_repository_policy" "account_a" {
repository = aws_ecr_repository.this.name
policy = data.aws_iam_policy_document.account_a.json
@jufemaiz
jufemaiz / bastion-the-easy-way.sh
Created July 9, 2019 01:30
Bastion the easy way!
# bastion-the-easy-way.sh
#
# Allowing you to easily bastion into a remote location! So nice!
#
# $ bastion path_to_target_key path_to_bastion_key target_ip_address bastion_ip_address target_user bastion_user
function bastion {
__message='Welcome to bastion the easy way!'
ssh -f -i ${2:-$__bastion_key} -L 6969:${3:-$__target_ip_address}:22 ${6:-ec2-user}@${4:-$__bastion_address} echo $__message
ssh -i ${1:-$__target_key} ${5:-ec2-user}@localhost -p 6969 -o "UserKnownHostsFile /dev/null"
}
@jufemaiz
jufemaiz / network-postcode-data.json
Created October 19, 2016 05:32
Australian Electricity Networks and Postcodes
[
{
"Comments": "Cross over suburb",
"Contact": "131 388",
"DB": "Ausgrid",
"Pcode": "2121",
"Quoting": "Y",
"State": "New South Wales"
},
{

Keybase proof

I hereby claim:

  • I am jufemaiz on github.
  • I am jufemaiz (https://keybase.io/jufemaiz) on keybase.
  • I have a public key ASB-1QCzoC8jwVo-4WVzdQzqBqBRpka_DGTD5_6Z5u-wIAo

To claim this, I am signing this object:

@jufemaiz
jufemaiz / rails.config
Created July 7, 2014 01:15
.ebextensions/rails.config
files:
# Make the appropriate directories
"/opt/elasticbeanstalk/hooks/appdeploy/pre/020_bootstrap.sh":
mode: "000755"
owner: root
group: root
content: |
#!/usr/bin/env bash
# /opt/elasticbeanstalk/hooks/appdeploy/pre/01a_bootstrap.sh
@jufemaiz
jufemaiz / delayed_job.rake
Created August 22, 2018 01:26
Delayed::Job container based rake tasks
# Shamelessly ripped from Delayed::Job tasks
# Ref: https://github.com/collectiveidea/delayed_job/blob/master/lib/delayed/tasks.rb
namespace :jobs do
namespace :container do
desc 'Clear the delayed_job queue.'
task clear: :environment do
Delayed::Job.delete_all
end
desc 'Start a delayed_job worker.'
@jufemaiz
jufemaiz / law-enforcement-access-mhr-data.md
Last active July 26, 2018 11:42
APH LIBRARY – LAW ENFORCEMENT ACCESS MHR DATA

Law enforcement access to My Health Record data

Note: This FlagPost was originally published on 24 July 2018. It has since been amended to reference the provisions of the Privacy Act 1988 relevant to the release of health information by private medical practitioners. As an adjunct task, it has also been updated to reflect developments since its original publication. The Library is committed to providing the highest quality information and analysis to the Parliament and always welcomes feedback on its work.

My Health Record (MHR) was introduced in June 2012 by the Gillard Labor Government originally as an opt-in system known as the Personally Controlled Electronic Health Record (PCEHR) before legislative amendments in 2015 introduced by the Abbott Coalition Government renamed it and laid the groundwork for it to become an opt-out system. Law enfo