Better HN
topnewbestaskshowjobs
Log inSign up

lotheac

19 karma · joined Apr 1, 2012 (14y ago) · 9 submissions

sysadmin in Helsinki, Finland
Submissions

comment 12y ago · link · parent

(Sorry for the late reply)

In OpenSolaris it just used cronjobs to create zfs snapshots.

comment 12y ago · link · parent

> Automatically take a snapshot every 5 minutes, and present a the user a program that broweses the filesystem at time X, probably with integration into the filemanager to restore files/folders.

Something like this? http://java.dzone.com/news/killer-feature-opensolaris-200

comment 12y ago · link · parent

This is a prime example of useless use of cat. Heredoc already means "pass this as stdin", there's no need to pipe it. Your example without cat:

    curl http://localhost -d @- <<REQUEST_BODY
    {
      "from" : 0,
      "size" : 40
    }
    REQUEST_BODY

comment 12y ago · link · parent

This seems to copy a bad design decision from virtualenv. Please see https://gist.github.com/datagrok/2199506

comment 14y ago · link · parent

I don't think exporting PS1 is a good idea. Child processes don't need it and if I launch a different shell with different PS1 semantics I get a broken prompt instead of whatever the default for that shell is.