Sha256: f5820ee161ddb1a810a588c2d95e64623315a4156d7a4b1800567d62fee1792c
Contents?: true
Size: 393 Bytes
Versions: 55
Compression:
Stored size: 393 Bytes
Contents
#!/usr/bin/env ruby require 'socket' copy_remote_host_port = ENV['COPY_REMOTE_HOST_PORT'] and copy_remote_host_port =~ /\A([^:]+):([^:]+)\z/ or fail "environment variable COPY_REMOTE_HOST_PORT of form host:port required" copy_remote_host, copy_remote_port = $1, $2 clipboard = TCPSocket.new(copy_remote_host, copy_remote_port) until STDIN.eof? clipboard.write STDIN.read(1 << 16) end
Version data entries
55 entries across 55 versions & 1 rubygems