Tips

From Ggl's wiki

Jump to: navigation, search

irssi

Display notifications from a remote session with OSD:

  • configure logging in irssi on the remote host:
/log open ~/var/log/hilight.log
/hilight <pattern>
/log start <ref#> ~/var/log/hilight.log

Now install `xosd` and type the following line in a shell:

 i=0; ssh <remote_host> tail -f /path/to/remote/var/log/hilight.log | while read msg; do i=$[$i + 10 % 100]; echo "`date +'%d/%m'`: $msg" |  osd_cat  -A right -o $i -d 1 --age=5 - ; done

wget

  • recursively get files from an url:
wget -r -l1 -nd [--no-check-certificate] -A *.pdf <url>

network

  • force 100Mbps full-duplex on redhat:
#/etc/network-scripts/ifcfg-eth0
[...]
ETHTOOL_OPTS='speed 100 duplex full autoneg off'