During dev I sometimes need to check what emails are scheduled to be sent.
Display a list of queued mails
View message in queue
sudo postcat -vq QUEUE_ID
Delete queued mail after debugging
sudo postsuper -d ALL
I switch between computers and sometimes when I’m switching I need to push an URL/prepare a window so found a solution with the following command:
mike@remotehost $ export DISPLAY=:0; nohup chromium --new-window https://github.com/deployphp/deployer#installation
Working on more than one computer requires some remote control and the command line is pretty elegant solution for me.
Example scripts are available at https://gist.github.com/mikaelz/b01b4cea83c9466fc57b
I also attached the code to the multimedia keys for the keyboard in .config/awesome/rc.lua
Working on two computers requires some control from command line (CLI). Glad that VLC implemented command line control.
I just found a solution at http://stackoverflow.com/a/9047708/289404 and made some command scripts in my home directory bin (~/bin).
Scripts that I use can be seen at https://gist.github.com/mikaelz/71055bbf5fc1aaf34ae7
In Arch Linux the logrotate service was failing:
user@host# systemctl start logrotate.service Job for logrotate.service failed. See "systemctl status logrotate.service" and "journalctl -xe" for details.
So I ran it by hand to debug:
user@host# logrotate /etc/logrotate.conf
And the following error appeared:
logrotate error: stat of /var/log/xferlog failed
I fired up a grep for xferlog in the /etc directory:
user@host:/etc# grep -r xferlog * logrotate.d/proftpd:/var/log/xferlog
Solution was commenting the xferlog rule in logrotate.d/proftpd. I don’t need the transfer log.