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
Gemfile.lock |
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' | |
def validate(document_path, schema_path) | |
schema = Nokogiri::XML::Schema(File.read(schema_path)) | |
document = Nokogiri::XML(File.read(document_path)) | |
schema.validate(document) | |
end | |
validate('document.xml', 'schema.xsd').each do |error| | |
puts error.message |
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
#!/bin/bash | |
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do | |
git branch --track ${branch##*/} $branch | |
done | |
#!/bin/bash | |
for branch in `git branch -l | grep -v master`; do | |
git push mirror $branch | |
done |