A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Jump to

Quick reference

Logging IRC

Notes

irssi setup
  • Digital Ocean droplet
  • screen -s chat
  • irssi
    • basic usage
    • /win list
    • /win 1
  • # connect
    • /connect irc.perl.org
    • /server add -auto -network PERL irc.perl.org 6667

  • # log - foreach channel
    • irc.perl.org
      • #dbix-class
      • #moose
      • #perl-help
      • #catalyst
    • chat.freenode.net
      • #mojo
      • #perl
  • # do
    • LOGDIR=~/logs
    • /IGNORE -channels #channel * JOINS PARTS QUITS NICKS
    • /LOG OPEN -targets #channel $LOGDIR/channel-%Y-%m-%d.txt
    • /LOG START #channel
  • /SET autolog ON # does this cover all of the above?
Publish logs
  • nginx
    • enable autoindex in config
  • WEBDIR=/var/www/irclogs
  • mkdir $WEBDIR
  • chmod g+s $WEBDIR
  • crontab
    • cp $LOGDIR/*/*-`date +"\%Y-\%m-\%d"`.txt $WEBDIR
    • chmod g+r $WEBDIR/*-`date +"\%Y-\%m-\%d"`.txt
  • password protect the logs, so you don't break IRC terms of service