Skip to content

Instantly share code, notes, and snippets.

View nriley's full-sized avatar

Nicholas Riley nriley

View GitHub Profile
@mcandre
mcandre / apple-bluetooth-keyboard-windows-10-bootcamp.md
Created June 14, 2016 18:12
How to fix Apple Bluetooth Wireless Keyboard (Windows 10)

The driver situation with Apple Bluetooth wireless keyboards and Windows 10 is horrible, even with the latest BootCamp drivers. Fortunately, a workaround is available, if you're patient.

Pair keyboard once

  1. Turn on the keyboard.
  2. Press and hold Command + w until the keyboard light begins blinking, indicating the keyboard is ready to pair.
  3. Use Windows Bluetooth settings to pair the keyboard, entering the same code (e.g. 123456 Enter) on both internal and external keyboards.

Pairing the keyboard is very trial and error. 9/10 times, Windows will complain that the keyboard is not available for pairing. Just keep trying.

@prenagha
prenagha / ArqMonitor.scpt
Last active February 4, 2018 15:25
Applescript to monitor age of last arq backupand send alert to notification center and email if too oldHook it up to run via launchd daily
--
-- Applescript to monitor age of last arq backup
-- and send alert to notification center if too old
--
set arqF to (path to current user folder) & "Library:Arq:lastsV2.dat" as string
set latest to arqF as alias
set mod_date to modification date of (info for latest)
set file_age to round (((current date) - mod_date) / days)
log "most recent Arq backup " & file_age & " days old " & arqF