1. Linux Snippet: Run diff on remote server.

    Leave a comment

    June 21, 2017 by aubreykloppers

    diff local_file <(ssh user@server ‘cat remote_file’) i.e.: diff /etc/named.conf <(ssh root@ ‘cat /etc/named.conf’) Easy if you know how!

  2. Linux snippet – run command as user (su)

    Leave a comment

    June 21, 2017 by aubreykloppers

    as easy as: su – <user> -c “<command arg0 arg1…> i.e.: su – user1 -c “ls -al > /home/user1/test.txt”

  3. Zimbra – managing GAL.

    Leave a comment

    June 20, 2017 by aubreykloppers

    Delete by using: zmgsautil deleteAccount -a gal<random string>@<domain> Create by using: zmgsautil createAccount -a gal@<domain> -n “Global Addresses” –domain <domain> …
    Continue reading

  4. Linux snippet – delete all files

    Leave a comment

    June 13, 2017 by aubreykloppers

    Delete all files (including hidden ones) with just one rm rm -rf {,.[!.],..?}*

  5. Aartappel broodjie

    Leave a comment

    May 23, 2017 by aubreykloppers

        Aartappel broodjie 450ml meel 3 tl bakpoeier 3 medium aartappels geskil en gerasper Hoogvol koppie gerasperde kaas 1 …
    Continue reading

  6. Linux VI tidbits.

    Leave a comment

    May 23, 2017 by aubreykloppers

    Removing x number of characters from the start of multiple lines: :1,$ s/^…..//g This will remove the first 5 characters …
    Continue reading

  7. Zimbra: Finding mail from logs

    Leave a comment

    May 8, 2017 by aubreykloppers

    I had to investigate and track  the mail delivery of an item into the Zimbra mail system.  This, after a …
    Continue reading