Skip to content

Instantly share code, notes, and snippets.

CTO at @enosi

Joel Courtney jufemaiz

CTO at @enosi
Block or report user

Report or block jufemaiz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# 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"

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

jufemaiz / delayed_job.rake
Created Aug 22, 2018
Delayed::Job container based rake tasks
View delayed_job.rake
# Shamelessly ripped from Delayed::Job tasks
# Ref:
namespace :jobs do
namespace :container do
desc 'Clear the delayed_job queue.'
task clear: :environment do
desc 'Start a delayed_job worker.'
jufemaiz /
Last active Jul 26, 2018

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

View gist:a571013fd7920056921855072cccc348
### Keybase proof
I hereby claim:
* I am jufemaiz on github.
* I am jcourtneycozero ( on keybase.
* I have a public key ASCy3Xmfk_uMgj5PAwT-YPTDIQBEkYJuLAWsV_ybhnuU7Qo
To claim this, I am signing this object:
jufemaiz / network-postcode-data.json
Created Oct 19, 2016
Australian Electricity Networks and Postcodes
View network-postcode-data.json
"Comments": "Cross over suburb",
"Contact": "131 388",
"DB": "Ausgrid",
"Pcode": "2121",
"Quoting": "Y",
"State": "New South Wales"
jufemaiz / measurement_datum.rb
Created Sep 21, 2016
A tale of Upsert issues
View measurement_datum.rb
class MeasurementDatum
belongs_to :measurement_point
# Schema
# - measurement_point_id, integer
# - recorded_at, datetime
# - value, double
jufemaiz /
Last active Jan 24, 2017
Rails + GIT Gems

In order to deal with GIT based gems, you'll need to make add some additional .ebextensions/*.config files.

  1. Support GIT in your EC2 instance;
  2. Backup the existing bundle command
  3. Bootstrap your rails project to add in your vendor directory to the shared environment
  4. Replace your bundle_install with a better bundle_install_deployment approach

Please note that these are placed in your Rails applications .ebextensions folder.

jufemaiz / outage.geojson
Last active Oct 20, 2015
GeoJSON testing
View outage.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.