`iptables` use
Save IPython history as text file

Based on <http://stackoverflow.com/a/16863396/96588>.