Hacker Newsnew | past | comments | ask | show | jobs | submit | derintegrative's commentslogin

Similarly I have for Linux

    epoch () {
        if [[ -z "${1:-}" ]]
        then
                date +'%s'
        else
                date --date="@${1}"
        fi
    }

    % epoch
    1761245789

    % epoch 1761245789
    Thu Oct 23 11:56:29 PDT 2025


On Linux you also have

    % cat /proc/sys/kernel/random/uuid
    464a4e91-5ce4-47b6-bb09-8a60fde572fb


Failed twenty ways to Sunday if I set `ZSHZ_DATA="$HOME/.local/share/zsh-z"` . Could not get it to recover from it.


"Just"


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: