Oct 26
No Comments »
Oct 25
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/bin/bash if (($# < 2));then echo "Usage: ${0##*/} dest text [text ...]" >> /dev/stderr exit 1 fi dest=$1;; shift ssh ${dest} "DISPLAY=:0 python" <<eof> import dbus no = dbus.SessionBus().get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications') ni = dbus.Interface(no, 'org.freedesktop.Notifications') ni.Notify("python", 0, '', "${USER} says:", "$@", {}, {}, 0) EOF </eof> |
$ mv mesg.sh.txt mesg.sh; chmod 755 mesg.sh
$ ./mesg.sh user@host "Are you ready for lunch ?"
$ ./mesg.sh shikamaru@host '<a href=\"http://www.dattebayo.com/t/ns031.torrent\">Naruto Shippuuden 031</a> is out'

Oct 24
$ lsmod | grep fuse || sudo modprobe -v fuse
$ sshfs user@host:/path/to/dir ./dir_at_host/
$ fusermount -u ./dir_at_host/
Oct 09
$ sudo 'for i in 1 2; do echo $i; done'sudo: for i in 1 2; do echo $i; done: command not found
$ sudo bash -c 'for i in 1 2; do echo $i; done'12
Page 1 of 11
