It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist 2014-04-12 05:15:39.000000000 -0700 | |
+++ /tmp/com.apple.mDNSResponder.plist.new 2014-04-12 05:15:11.000000000 -0700 | |
@@ -26,6 +26,7 @@ | |
<key>Sockets</key> | |
<dict> | |
<key>Listeners</key> | |
+ <array> | |
<dict> | |
<key>SockFamily</key> | |
<string>Unix</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find me at https://gist.github.com/2383726 | |
# | |
# This script shows how to use wprintf() and a few functions from the | |
# MS UI Automation COM interface (IUIAutomation) to print the name | |
# of the desktop's IUIAutomationElement on a Windows machine. | |
# For more information see the MS docs on: | |
# | |
# IUIAutomation::GetRootElement | |
# IUIAutomationElement::get_CurrentName | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'nokogiri' | |
require 'fileutils' | |
require 'date' | |
require 'uri' | |
# usage: ruby import.rb my-blog.xml | |
# my-blog.xml is a file from Settings -> Basic -> Export in blogger. | |
data = File.read ARGV[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#require 'active_support/core_ext' | |
class YamlCompare | |
def self.compare_keys first_file_info, second_file_info, results_location | |
first_file = Hash.new | |
second_file = Hash.new | |
deltas_file = Hash.new | |
File.open( first_file_info[:file_location] ) { |yf| first_file = YAML.load( yf ) } | |
File.open( second_file_info[:file_location] ) { |yf| second_file = YAML.load( yf ) } | |
first_file[first_file_info[:root]].each_pair do |k,v| |