Skip to content

Instantly share code, notes, and snippets.

@oznu
oznu / README.md
Last active Apr 28, 2020
iPhone automation to open the COVIDSafe app when you leave home
View README.md
  1. Install COVIDSafe app from the App Store and register your details.
  2. Install the Apple Shortcuts app from the App Store.
  3. In the Shortcuts app go to the Automation tab at the bottom of the screen.
  4. Tap the symbol in the upper-right-corner.
  5. Tap Create Personal Automation.
  6. Under the Travel category, select Leave .
  7. Select the Location the automation should trigger when you leave from then tap Next.
  8. Tap Add Action.
  9. Using the search bar, search for "Open App" and then select the Open App action.
  10. Click the blue-highlighted text labeled Choose and select the COVIDSafe app.
@oznu
oznu / index.js
Last active Dec 4, 2020
Homebridge Switch Plugin Example
View index.js
'use strict'
let Service, Characteristic
module.exports = (homebridge) => {
/* this is the starting point for the plugin where we register the accessory */
Service = homebridge.hap.Service
Characteristic = homebridge.hap.Characteristic
homebridge.registerAccessory('homebridge-switch-example', 'SwitchExample', SwitchAccessory)
}
@oznu
oznu / README.md
Last active Dec 27, 2021
QEMU + Ubuntu ARM aarch64
View README.md

QEMU + Ubuntu ARM aarch64

These are the steps I used to get Ubuntu ARM aarch64 running with QEMU on OSX.

Get Ubuntu Image and QEMU EFI:

wget https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-arm64-uefi1.img
wget https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/QEMU_EFI.fd
@oznu
oznu / raspbian-chroot.sh
Last active Dec 22, 2020
Create a Raspbian Chroot Environment Emulating ARM
View raspbian-chroot.sh
#!/bin/bash
CHROOT_DIR=/tmp/raspbian-chroot
MIRROR=http://archive.raspbian.org/raspbian
VERSION=jessie
CHROOT_ARCH=armhf
sudo apt-get install -y debootstrap qemu-user-static binfmt-support sbuild
sudo mkdir -p $CHROOT_DIR
@oznu
oznu / README.md
Last active Jan 2, 2022
How to Bootcamp / Dual Boot Windows 10 on a mid-2011 iMac using USB
View README.md

How to Install / Bootcamp Windows 10 on a mid-2011 iMac using USB

Apple has released support for bootcamping Windows 10, but only on 2012 Macs and later. Despite not being supported. it is possible to install Windows 10 on earlier iMacs and it seems to run quite well.

IMPORTANT: Unplug all external and physical hard drives (where possible) that you won't be installing to to avoid accidentally erasing them. Also make note of which drives and partitions remain (e.g. System and Storage hard drives), and be super careful to not erase the wrong one.

RECOVERY: If you nuke your machine, restore your time machine backup. Instructions here.

Requirements

View tld.json
{"tlds": ["ac", "com.ac", "edu.ac", "gov.ac", "net.ac", "mil.ac", "org.ac", "ad", "nom.ad", "ae", "co.ae", "net.ae", "org.ae", "sch.ae", "ac.ae", "gov.ae", "mil.ae", "aero", "accident-investigation.aero", "accident-prevention.aero", "aerobatic.aero", "aeroclub.aero", "aerodrome.aero", "agents.aero", "aircraft.aero", "airline.aero", "airport.aero", "air-surveillance.aero", "airtraffic.aero", "air-traffic-control.aero", "ambulance.aero", "amusement.aero", "association.aero", "author.aero", "ballooning.aero", "broker.aero", "caa.aero", "cargo.aero", "catering.aero", "certification.aero", "championship.aero", "charter.aero", "civilaviation.aero", "club.aero", "conference.aero", "consultant.aero", "consulting.aero", "control.aero", "council.aero", "crew.aero", "design.aero", "dgca.aero", "educator.aero", "emergency.aero", "engine.aero", "engineer.aero", "entertainment.aero", "equipment.aero", "exchange.aero", "express.aero", "federation.aero", "flight.aero", "freight.aero", "fuel.aero", "gliding.aero", "government