Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Thing.

Oisín Hurley oisin

💭
Thing.
View GitHub Profile
@oisin
oisin / links.txt
Last active December 5, 2022 19:13
ITC AOC 22 Rusters
View links.txt
@oisin
oisin / WIN10.MD
Created April 27, 2022 20:07 — 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
oisin / aoc_2021_puzzle_1
Last active December 1, 2021 20:55
AOC 2021 Puzzle 1
View aoc_2021_puzzle_1
Code in ruby for Puzzle 1 in the Advent of Code series of puzzles.
@oisin
oisin / mulledwine.txt
Created December 18, 2020 17:59
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
oisin / ttdl.py
Created October 2, 2020 21:08
Get the tide times for Dun Laoghaire
View ttdl.py
#!/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', 'https://www.tidetimes.org.uk/deal-tide-times.js')
@oisin
oisin / awsbill.rb
Created August 12, 2020 13:22
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 = Creek::Book.new fname, with_headers: true
allocations = book.sheets[0]
rowid = 0
allocations.simple_rows.each { |r|
@oisin
oisin / swusage.py
Last active March 25, 2020 22:19
Merge multiple usage CSV files to produce per-app MAU timelines
View swusage.py
#!/usr/bin/env python
#
# usage: swusage.py [-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
oisin / oscillo-tray.scad
Last active July 13, 2019 13:10
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
oisin / ttdl.py
Last active November 4, 2018 19:57
Tide Times for Dun Laoghaire
View ttdl.py
#!/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', 'https://www.tidetimes.org.uk/deal-tide-times.js')