Skip to content

Instantly share code, notes, and snippets.

Pat Allan pat

View GitHub Profile
@pat
pat / letter.markdown
Created Oct 21, 2019
Letter to Senator Lambie about Medevac Repeal Bill
View letter.markdown

Dear Senator Lambie,

I am writing in regards to the Medevac Repeal Bill, and to strongly urge you to not allow the repeal to happen.

It is our Government that has imprisoned these people in these remote and unsafe situations, and thus it is our Government that should be providing medical support, especially given the imprisonment is a significant cause in the mental health issues so many of these detainees.

While I’m sure you’re aware of this already, it’s worth noting that the legislation that was passed earlier this year is only for the current set of detainees - it does not apply to any new arrivals, and I feel our Government has been rather obtuse in any suggestions otherwise. Any suggestion that the lack of a repeal makes our country any less safe is a cruel lie.

There have been clear cases of deaths in custody that could have been prevented had proper medical assistance been provided promptly and genuinely, rather than turning these detainees into political pawns. If the repeal goes ahead, it’s quit

View kms_placeholder.rb
require "openssl"
require "digest/sha2"
require "base64"
require "ostruct"
# Just like Aws::KMS::Client, this responds to decrypt and encrypt,
# using the same parameters and output objects (well, at least for
# the purposes of what I've used it for).
#
# So, you can inject this class in instead for test environments
View monolith.plugin.zsh
function ruby_files() {
xargs ls -1 2>/dev/null | grep '\.rb$'
}
function spec_files() {
xargs ls -1 2>/dev/null | grep '_spec\.rb$'
}
function uncommitted() {
# first command is staged changes, second is new files and unstaged changes
@pat
pat / parallel_processor.rb
Last active Aug 21, 2019
Thinking Sphinx parallel processing of real-time indices.
View parallel_processor.rb
# This will process each real-time index in parallel (using separate
# processes, up to the number of CPUs available).
#
# You will also need the 'parallel' gem, and what is currently the
# edge release of Thinking Sphinx (until there's been a release after
# v4.3.2).
#
# This could all go in an initialiser, or put the class wherever you
# like, and the assignment in the initialiser.
@pat
pat / minutes.markdown
Last active May 21, 2019
Ruby Australia Special General Meeting - 12th May 2019
View minutes.markdown

Attendees

  • Pat Allan
  • Mark Glossop
  • Rebecca Le
  • Celia Colquhoun King
  • Steven Webb
  • Nimeshe Madanayake
  • Vanessa Nimmo
  • Lauren Hennessy
View ruby_australia_aabill_submission.markdown

To Whom It May Concern

RE: Telecommunication and Other Legislation Amendment (Assistance and Access) Act 2018

Ruby Australia is an industry body representing software developers who use the Ruby programming language across a range of businesses, industries, products and projects, and across Australia.

On behalf of our members generally (and specifically those who have supplied their signatures) we strongly condemn the Telecommunications and Other Legislation Amendment (Assistance and Access) Act 2018, which has recently passed both houses of Parliament.

The Act was hurried through without any serious consideration for industry concerns, and has a worrying lack of oversight. It shows a severe lack of technological understanding, no respect for citizens' privacy, nor any serious appreciation for digital security. And through its existence, it tars our entire profession. Because of what our Government may insist of us, our international peers and customers can no longer trust us or our products with their ow

@pat
pat / rubyconf-au-eoi-2020.markdown
Created Jan 20, 2019
RubyConf AU 2020 - Seeking Expressions of Interest
View rubyconf-au-eoi-2020.markdown

Ruby Australia

Seeking expressions of interest for RubyConf AU 2020

Expressions Required By: February 18th 2019.

One of the flagship events of the Australian Ruby community's calendar is RubyConf AU, which has been occurring annually since 2013. The Ruby Australia committee is seeking expressions of interest from people in the community to run the 2020 edition of the conference.

To support conference organisers, Ruby Australia offers event insurance and financial backing courtesy of previous events and sponsors. Also, previous organisers will be able to provide wisdom and suggestions from their past experiences, previous budgets, connections to vendors, suggested speakers to invite, and other general advice.

@pat
pat / LICENSE.txt
Last active May 13, 2020
Running Setup SQL scripts on an RDS instance within a VPC, via Terraform
View LICENSE.txt
The MIT License (MIT)
Copyright (c) 2018 Pat Allan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@pat
pat / Rakefile
Created Jul 25, 2018
Using ActiveRecord in a Rake-based application
View Rakefile
require "bundler/setup"
load "active_record/railties/databases.rake"
task :environment do
require "./config/application"
require "my_app"
end
@pat
pat / thinking_sphinx.yml
Last active Jul 7, 2018
Thinking Sphinx Configuration
View thinking_sphinx.yml
# Extended configuration for Thinking Sphinx can be stored in the
# config/thinking_sphinx.yml file within your application (this file was
# previously known as config/sphinx.yml in TS v1/v2).
#
# Many settings from Sphinx itself can be set here, and they'll flow through to
# the appropriate section of the generated configuration. However, some are
# used for Thinking Sphinx behaviour, and so those are documented here first.
#
# Configuration is grouped by environment, just like config/database.yml in a
# standard Rails application.
You can’t perform that action at this time.