Skip to content

Instantly share code, notes, and snippets.

martzcodes / smartthings_lan_discovery.groovy
Created February 5, 2014 01:21
* LANtest App
* Author:
* Date: 2014-02-02
preferences {
section("Local IP address...") {
input "ip", "text"
* ps_Nest Thermostat
* Copyright 2014 Patrick Stuart
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
Dianoga / nest.devicetype.groovy
Last active September 16, 2018 02:09
Nest Device Type for SmartThings
* Nest Direct
* Author:
* Date: 2013-07-18
* Code:
* =========================================
* 1) Create a new device type (
eriwen / pretty_thunderbird_labels.css
Created December 29, 2010 00:12
userChrome.css snippet for Thunderbird to have pretty labels
/* Default Important Label */
treechildren::-moz-tree-cell(lc-FF0000) {
border-bottom: 1px solid #FF0000 !important; background-color: #FFCCCC !important;
treechildren::-moz-tree-cell-text(lc-FF0000) {
color: #000000 !important;
treechildren::-moz-tree-cell(lc-FF0000, selected) {
background-color: #FF0000 !important;
ddz /
Last active May 12, 2023 15:14
iOS Lockdown Diagnostic Services


  • Pairing an iOS device to a host (computer running iTunes) gives that host significant access to data on the iOS device and requires connecting the unlocked iOS device to a host over USB
  • Once paired, that host (or another host that has stolen its pairing record) can access significant amounts of user personal data from the iOS device over USB and Wi-Fi through the and lockdown services
  • These services will not return user data files that are encrypted and locked by iOS Data Protection but the files returned by file_relay are not protected by iOS Data Protection and do include significant amounts of personal user data that would otherwise be encrypted in iTunes encrypted backups ("Encrypt Backup" is enabled)
  • The service is not used or referenced by any public Apple software so its intended client software is unknown outside of Apple
  • Apple released a [Knowledge Base article](
xiaoganghan / mynote.xml
Created July 27, 2012 07:26
Parsing Evernote export file (.enex) using Python
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-export SYSTEM "">
<en-export export-date="20120727T073610Z" application="Evernote" version="Evernote Mac 3.0.5 (209942)">
<note><title>Vim Tips</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE en-note SYSTEM "">
<en-note style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
yank for copy, delete for cut, put for parse
<div>Move in context, not position</div>
<div>/ search forward</div>
BrockA / waitForKeyElements.js
Created May 7, 2012 04:21
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
, commentCallbackFunction