Skip to content

Instantly share code, notes, and snippets.

@stilvoid
stilvoid / amiga.md
Created April 26, 2019 22:32
Mounting an Amiga hard drive

Run this to get the partition layout

parted /dev/sdX
u
b
p

Output looks like:

#!/bin/bash
url="https://public.broker.elections.api.bbci.co.uk/components/batch?components%5Beu_ref_banner_data_en%5D%5Bcomponent%5D=eu_ref_banner_data_en&components%5Beu_ref_ticker_en%5D%5Bcomponent%5D=eu_ref_ticker_en&components%5Bpolling_policy%5D%5Bcomponent%5D=polling_policy"
in=$(curl "$url" 2>/dev/null | jq -r .components[0].body | jq -r .remainVoteCount | sed -e 's/[^0-9]//g')
out=$(curl "$url" 2>/dev/null | jq -r .components[0].body | jq -r .leaveVoteCount | sed -e 's/[^0-9]//g')
turnout=$(curl "$url" 2>/dev/null | jq -r .components[0].body | jq -r .turnoutPercentage)
remaining=$(curl "$url" 2>/dev/null | jq -r .components[0].body | jq -r .leftToDeclare)

Keybase proof

I hereby claim:

  • I am stilvoid on github.
  • I am stilvoid (https://keybase.io/stilvoid) on keybase.
  • I have a public key whose fingerprint is 8327 7F9B 98AF 5D29 EDC2 A42B BFF7 1C0A F3C1 86D1

To claim this, I am signing this object: