Skip to content

Instantly share code, notes, and snippets.


Oisín Hurley oisin

View GitHub Profile
oisin / links.txt
Last active Dec 5, 2022
ITC AOC 22 Rusters
View links.txt
oisin / WIN10.MD
Created Apr 27, 2022 — forked from hungneox/WIN10.MD
How Make a Windows 10 USB Using Your Mac - Build a Bootable ISO From Your Mac's Terminal
View WIN10.MD

Most new PCs don't come with DVD drives anymore. So it can be a pain to install Windows on a new computer.

Luckily, Microsoft makes a tool that you can use to install Windows from a USB storage drive (or "thumbdrive" as they are often called).

But what if you don't have a second PC for setting up that USB storage drive in the first place?

In this tutorial we'll show you how you can set this up from a Mac.

Step 1: Download the Windows 10 ISO file

You can download the ISO file straight from Windows. That's right - everything we're going to do here is 100% legal and sanctioned by Microsoft.

oisin / aoc_2021_puzzle_1
Last active Dec 1, 2021
AOC 2021 Puzzle 1
View aoc_2021_puzzle_1
Code in ruby for Puzzle 1 in the Advent of Code series of puzzles.
oisin / mulledwine.txt
Created Dec 18, 2020
Mulled Wine Recipe
View mulledwine.txt
Mulled Wine
8l of red wine (minimum 13% alcohol)
zest of 2 large oranges
1 clove-covered orange
500g demarara sugar
0.5l orange juice
0.33l gin
4 cinnamon sticks
1tsp ground cinnamon
View Date and Tamarind Chutney
300g dates
50g tamarind
2tsp salt
1tsp chilli powder
2tsp coriander and cumin powder
pince of asafoetida
Remove stones from dates and chop finely, then soak in 300ml water hot water for 30 mins.
Soak tamarind in 200ml hot water for 30 mins.
Remove pulp from tamarind water.
oisin /
Created Oct 2, 2020
Get the tide times for Dun Laoghaire
#!/usr/bin/env python
# ttdl -- tide times for dun laoghaire
import certifi
import urllib3
import re
http = urllib3.PoolManager(cert_reqs='CERT_REQUIRED', ca_certs=certifi.where())
r = http.request('GET', '')
oisin / awsbill.rb
Created Aug 12, 2020
Some ruby for breaking up AWS bills in XLSX form.
View awsbill.rb
#!/usr/bin/env ruby
require 'creek'
fname = ARGV[0]
abort("Please supply file name") if fname.nil?
book = fname, with_headers: true
allocations = book.sheets[0]
rowid = 0
allocations.simple_rows.each { |r|
oisin /
Last active Mar 25, 2020
Merge multiple usage CSV files to produce per-app MAU timelines
#!/usr/bin/env python
# usage: [-h] [-k KPI] [-o FILE] [-v] [-c COMPANY] [-gt NUMBER]
# Create per-app CSV timeseries for a single KPI from Dashboard usage reports.
# optional arguments:
# -h, --help show this help message and exit
# -k KPI Name of column/kpi in usage report to be put in timeseries, this
# defaults to month_cmu
oisin / oscillo-tray.scad
Last active Jul 13, 2019
My First 3D Design -- tray for tiny oscilloscope
View oscillo-tray.scad
// $fn = 24; // uncomment for production
// set to true for production -- this prevents hex render which takes
// a couple minutes
use_hex_base = false;
module tab(ringw=6.5, stemh=20, stemw=8, thick=3) {
cube([stemw, thick, stemh]);
translate([stemw / 2, 0, stemh + ringw]){
oisin / Dockerfile
Last active Jan 29, 2019
Dockerfile snippet for Ruby API Server setup experiment
View Dockerfile
FROM ubuntu:14.04
MAINTAINER Oisin Hurley <>
RUN apt-get update && apt-get install -y curl wget git
RUN adduser --home /home/api_server --disabled-password --gecos '' api_server
RUN adduser api_server sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER api_server
RUN gpg --keyserver hkp:// --recv-keys D39DC0E3
RUN curl -sSL | bash -s stable
RUN /bin/bash -l -c "source /home/api_server/.rvm/scripts/rvm"