Skip to content

Instantly share code, notes, and snippets.

View lbr88's full-sized avatar

Lars Bo Rasmussen lbr88

  • AiO-IT
  • Tølløse, Denmark
  • 04:10 (UTC +02:00)
View GitHub Profile
# -- coding: utf-8 --
#
from sopel import module
@module.require_owner
@module.commands("nick")
def changeNick(bot,trigger):
newnick = trigger.group(2)
bot.nickname = newnick
bot.write(("NICK",), newnick)

Keybase proof

I hereby claim:

  • I am lbr88 on github.
  • I am pavr (https://keybase.io/pavr) on keybase.
  • I have a public key whose fingerprint is 5D6E B6D7 9FC4 B315 A9F2 AE17 93F7 97D2 4E05 5F87

To claim this, I am signing this object:

@lbr88
lbr88 / zfsfilecount.sh
Created September 11, 2016 20:32
count zfs files
zpoolname=$1;
zfs list |grep $zpoolname/ |while read line; do mount=$(echo $line |cut -d" " -f5); echo $mount:; find $mount -type f| wc -l; done