Skip to content

Instantly share code, notes, and snippets.

View oliyoung's full-sized avatar

Oli Young oliyoung

  • Kaurna Yerta / Adelaide
  • 05:37 (UTC +10:30)
  • LinkedIn in/oli-young
View GitHub Profile
@oliyoung
oliyoung / profiles.json
Created February 14, 2020 00:15
windows terminal
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals": {
"alwaysShowTabs": true,
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"initialCols": 120,
"initialRows": 30,
"keybindings": [
{
"command": "closeTab",
### Keybase proof
I hereby claim:
* I am oliyoung on github.
* I am oliyoung (https://keybase.io/oliyoung) on keybase.
* I have a public key ASBpB6XGAwDurldxOnLk4p8hl8_v-JqMi96rMR-6oy9nWQo
To claim this, I am signing this object:
@oliyoung
oliyoung / cron.yaml
Created February 1, 2019 01:14
Cron config for Elastic Beanstalk
files:
"/var/spool/cron/ec2-user":
mode: "000600"
owner: ec2-user
group: ec2-user
content: |
*/15 * * * * /bin/bash -l -c 'cd /var/app/current && RAILS_ENV=production bundle exec rake schedule:quarter_hour > /var/app/current/log/cron-quarter-hour.log'
1 * * * * /bin/bash -l -c 'cd /var/app/current && RAILS_ENV=production bundle exec rake schedule:hourly > /var/app/current/log/cron-hourly.log'
3 */3 * * * /bin/bash -l -c 'cd /var/app/current && RAILS_ENV=production bundle exec rake schedule:three_hours > /var/app/current/log/cron-three.log'
5 20 * * * /bin/bash -l -c 'cd /var/app/current && RAILS_ENV=production bundle exec rake schedule:open_of_business > /var/app/current/log/cron-open.log'
@oliyoung
oliyoung / bingo-card.rb
Created August 7, 2018 23:51
Generates 90-ball UK bingo / 'housie' cards. The cards contain three rows and nine columns. Each row contains five numbers and four blank spaces randomly distributed along the row. Numbers are apportioned by column (1–9, 10–19, 20–29, 30–39, 40–49, 50–59, 60–69, 70–79 and 80–90).
require 'matrix'
class Card
def self.generate
collection = []
for group in 0..8
set = []
while set.length < 3
x = rand(10) + (group * 10) + 1
set.push(x) unless set.include?(x)
const data = { name: 'Apple', type: 'Fruit', color: 'red' }
class Fruit {
constructor(data) {
this.data = data
}
isRed() {
this.color === 'red';
}
[core]
excludesfile = ~/.gitignore_global
pager = diff-so-fancy | less --tabs=4 -RFX
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[alias]
aa = add --all
https://storify.com/kissane/job-listings-that-don-t-alienate
https://hbr.org/2014/08/why-women-dont-apply-for-jobs-unless-theyre-100-qualified/
http://www.disambiguity.com/words-matter-women-and-jobs/
http://adaslist.co/
https://open.bufferapp.com/job-descriptions-diversity/
https://modelviewculture.com/pieces/25-tips-for-diverse-hiring
http://madebymany.com/blog/can-a-few-well-chosen-words-improve-inclusivity
http://www.hiremorewomenintech.com/
http://madebymany.com/blog/can-a-few-well-chosen-words-improve-inclusivity
http://slides.com/amysimmons/deck-1-2-3#/0/22
size: 999,
query: {
filtered: {
query: {
match: {
_all: {
query: query
}
}
},

During the course of your employment, you will be engaged and instructed to create work that will provide a benefit to the company’s processes, policies or product.

In accordance with the Copyright Act 1968, you agree that the intellectual property of any beneficial creative work made pursuant to these terms of employment is owned by the company, that the company will reserve the benefits of your creative work and that any ongoing licensing or intellectual property decisions (ie contributing to, or creating open source software) will be made by the company in consultation with you.

These terms do not apply to work created outside of the course of your employment, where the work does not benefit the company, or where it contradicts existing licensing agreements (such as contribution to open source software).

These terms also do not effect your moral rights to be identified as the author of the creative work.

@oliyoung
oliyoung / spendyspendy.txt
Last active August 29, 2015 14:26 — forked from dannolan/spendyspendy.txt
Top Entitlement Claiming Federal Politicians in Australia (2H 2014)
Top Spenders OVERALL
The Hon Tony Abbott MP - $1057673
The Hon Julie Bishop MP - $866653
Mr Tony Pasin MP - $851482
Mr Tim Watts MP - $556863
The Hon Andrew Robb AO MP - $539247
The Hon Darren Chester MP - $529344
Mr Wyatt Roy MP - $526258
Senator the Hon Simon Birmingham - $523191