Skip to content

Instantly share code, notes, and snippets.

@michaeldavie
michaeldavie / canadianshield.mobileconfig
Last active April 4, 2023 08:27
Apple configuration for DNS-over-TLS to Canadian Shield, except when connected to a specific SSID or a captive portal
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>Name</key>
<string>Canadian Shield DNS over TLS</string>
<key>PayloadDescription</key>
@michaeldavie
michaeldavie / Dockerfile
Last active April 2, 2020 11:41
Dockerfile for readpst
FROM debian
ENV DEBIAN_FRONTEND noninteractive
ENV PACKAGES ca-certificates pst-utils
RUN apt-get update && apt-get install -y --no-install-recommends $PACKAGES
@michaeldavie
michaeldavie / on-demand-ipsec.mobileconfig
Created August 9, 2019 19:21
On Demand IPSec VPN for iOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array> <dict>
<key>UserDefinedName</key>
<string>On Demand IPSec</string>
<key>PayloadDisplayName</key>
<string>On Demand IPSec</string>

Keybase proof

I hereby claim:

  • I am michaeldavie on github.
  • I am michaeldavie (https://keybase.io/michaeldavie) on keybase.
  • I have a public key whose fingerprint is 2F20 7AA3 7CED 9801 5D8D 7548 79F2 526C 5B9D EE3B

To claim this, I am signing this object:

@michaeldavie
michaeldavie / gist:42a63247f11ca43c98d4
Created November 29, 2015 04:44 — forked from Cybling1/gist:1eacf4eaa771cc35d711
Script to fetch Nest data and outdoor temperature, wind speed and wind direction data and log to Google Sheets
function performLogin(email, password) {
var payload = {
"username" : email,
"password" : password
};
var options = {
"method" : "post",
"payload" : payload
};
@michaeldavie
michaeldavie / gist:200035ef872d5ce79752
Created November 29, 2015 04:38 — forked from beezly/gist:9b2de3749d687fdbff3f
Log Nest temperatures into a Google Spreadsheet. Update the username and password values and create a resource trigger to call "getData" at regular intervals.
function performLogin(email, password) {
var payload = {
"username" : email,
"password" : password
};
var options = {
"method" : "post",
"payload" : payload
};