Skip to content

Instantly share code, notes, and snippets.

View MattRK's full-sized avatar

Matt Keller MattRK

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mattrk on github.
  • I am mattrk (https://keybase.io/mattrk) on keybase.
  • I have a public key whose fingerprint is D5B6 6F2D 7430 5CB6 6E01 03C0 1585 4D76 B949 C5D1

To claim this, I am signing this object:

@MattRK
MattRK / dhcpc-event
Last active August 29, 2015 14:03
CloudFlare Dynamic DNS Update Script for AsusWRT-Merlin
#!/bin/sh
#Wait 30 seconds so that the WAN can come up properly before continuing
sleep 30
#Get the new IP
IP=`wget -O - -q http://icanhazip.com`
#Update Cloudflare with the new IP
/opt/bin/wget -O - -q https://www.cloudflare.com/api_json.html --no-check-certificate --post-data "a=rec_edit&tkn=[YOUR API TOKEN]&email=[YOUR EMAIL ADDRESS]&z=[YOUR ZONE NAME]&id=[YOUR RECORD ID]&type=A&name=[RECORD NAME]&ttl=1&content=$IP"
@MattRK
MattRK / Incorrect SCEP .mobileconfig
Created April 29, 2013 22:52
This is a .mobileconfig file generated by Apple's Configurator. This profile is supposed to send a SCEP request to a Microsoft CA NDES server. The NDES server should then issue a certificate to the requesting device. The problem with this XML file is that the Challenge isn't being recognized by iOS. The solution is to move lines 8 & 9 down to be…
<?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>Challenge</key>
<string>This is where the challenge goes</string>
<key>PayloadContent</key>