mirror of
https://github.com/opencultureconsulting/openrefine-client.git
synced 2025-02-16 00:00:07 +01:00

sudo tcpflow -AH -c -e -i lo0 src or dst host localhost and port 3335 | ruby -ractive_support/core_ext -ruri -lne 'next unless /^format=([^&]+)&options=(.*)/; format = URI.unescape($1); opts = URI.unescape($2) ; opts.gsub!(/"(\w+)"/) { %Q['\''#{$1.underscore}'\''] }; opts.gsub!(/:/,": "); opts.gsub!(/,/,",\n\t"); opts.gsub!(/(true|false)/) { $1.titleize }; puts " '\''#{format}'\'': #{opts},"'