Skip to content

Instantly share code, notes, and snippets.

@maxlinc
maxlinc / README.md
Created December 11, 2014 22:51
Rsync: OSX to Windows, using cwrsync installed via chocolatey

Windows (Guest):

rsync --daemon --verbose --no-detach --config=rsyncd.conf --port=2222

Host:

rsync -avzr scripts/ rsync://windows_hostname:2222:/tmp/scripts
@maxlinc
maxlinc / benchmark.rb
Created February 9, 2015 20:27
Zip benchmark
require 'winrm-fs'
require 'benchmark'
manifest = 'files.txt'
files = File.read(manifest).lines
files = files.map do | file |
next if file =~ /COMMIT_EDITMSG/
File.expand_path(file.strip, Dir.pwd)
end.compact