Category: cygwin
-
Xidel – yet another HTML/XML/JSON data extraction tool
Xidel is a command line tool to download html/xml pages and extract data from them using CSS 3 selectors, XPath 3 expressions or pattern-matching templates. http://www.videlibri.de/xidel.html https://en.wikipedia.org/wiki/XQuery – I am “watching” the changes on this article, and somebody just added Xidel, that’s how I came across Xidel Cygwin’s and Fink’s repository do not have Xidel, but Xidel’s…
-
once you are getting familiar with XPath and XMLStarlet, you are using it for rather “ordinary tasks”
http://xmlstar.sourceforge.net https://www.cygwin.com – “Get that Linux feeling – on Windows“ https://cygwin.com/cgi-bin2/package-grep.cgi?grep=xmlstarlet http://www.finkproject.org – “The Fink project wants to bring the full world of Unix Open Source software to Darwin and Mac OS X. …“ http://pdb.finkproject.org/pdb/package.php/xmlstarlet Areas, where you will want to make use of XPath expressions and xmlstarlet in order to extract details: HTML web pages –…
-
I diffed (GNU diffutils) two “.rdp” files (UTF-16), and I falsely got the impression these utilities properly deal with Unicode
https://en.wikipedia.org/wiki/Remote_Desktop_Protocol — originally from the Windows world RDP “provides a user with a graphical interface to connect to another computer over a network connection“ http://www.donkz.nl/files/rdpsettings.html — a(n) “.rdp” file keeps settings to start an RDP connection — because Emacs opens such files as text files, I had no idea they are not “classic” text files, instead (according to…
-
Jenkins CI with Tomcat 9
http://tomcat.apache.org/tomcat-9.0-doc/appdev/ Always climbing on the learning curve and trying to take it to the next level 😎 Just installing apache-tomcat-9.0.0.M3 (on Windows 7), trying to get it operational under cygwin. I set these (historic) environment variables through the Control Panel: CATALINA_HOME=%PROGRAMFILES%apache-tomcat-9.0.0.M3 CATALINA_BASE=%USERPROFILE%tomcat But early experiences with Tomcat under cygwin made me better set them in the…
-
doing XPath within shell scripts with a lightweight utility
Is XMLStartlet really a reliable and lightweight command line utility to be employed with shell scripts? … with cygwin shell scripts?!? cygwin and fink have each have (ipkg does not) a ready-made XMLStartlet, and for now it seems to do what I need. cygwin (?), fink, and ipkg each have a ready-made libxml2 and xmllint.
-
ssh to “beyond the corporate firewall” through a SOCKS proxy
https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Proxies_and_Jump_Hosts#Tunneling_SSH_Over_Tor_with_Netcat – this is THE ARTICLE — replace “Tor” in the example with your corporate SOCKS proxy http://superuser.com/questions/454210/how-can-i-use-ssh-with-a-socks-5-proxy http://linux.die.net/man/1/nc — a netcat manual page My $HOME/.ssh/config looks like this: # making use of “netcat” AKA “nc” — http://linux.die.net/man/1/nc # Host SOME_HOST_OUT_THERE User REMOTE_USER ProxyCommand /usr/bin/nc -X 5 -x SOCKS_PROXY_HOST:SOCKS_PROXY_PORT %h %p “As always” I connect to SOME_HOST_OUT_THERE like…
-
Stephen Dolan’s “jq” is a lightweight and flexible command-line JSON processor
https://stedolan.github.io/jq/ https://stedolan.github.io/jq/tutorial/ https://stedolan.github.io/jq/manual/ https://github.com/stedolan/jq https://github.com/stedolan/jq/wiki https://github.com/stedolan/jq/wiki/Cookbook https://stackoverflow.com/questions/tagged/jq http://shop.oreilly.com/product/0636920032823.do – o’Reilly “Data Science at the Command Line” – has some examples making use of jq https://library.oreilly.com/book/0636920032823/data-science-at-the-command-line/84.xhtml?ref=toc#_jq – behind a paywall available as source (portable C) and as executables for various Intel-based platforms, i.e. some Linux distributions, Mac OS X, Windows incl. Cygwin https://cygwin.com/packages/x86_64/jq/ https://www.safaribooksonline.com/library/view/json-at-work/9781491982389/ch06.html#json_search : …, jq, jqPlay, jq-tutorial,…
-
how to end GNU’s “tail –follow” together with the termination of the utility that creates the file being watched?
https://www.gnu.org/software/coreutils/manual/html_node/tail-invocation.html GNU’s tail has a command line option for this: “–pid=…“. What a nice feature!!! I was just about to do implement “it” the usual way, when I came across the manual page and got aware of this feature. Used it, worked as expected. This is great! I actually needed it first in a Windows…