HNHacker News
TopNewBestAskShowJobs

lotheac

19 karma · joined April 1, 2012

sysadmin in Helsinki, Finland
submissionscomments
lotheac··on Recovering deleted files using only grep
(Sorry for the late reply)

In OpenSolaris it just used cronjobs to create zfs snapshots.

lotheac··on Recovering deleted files using only grep
> 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

lotheac··on Better bash in 15 minutes
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
lotheac··on A simple virtualenv for Go
This seems to copy a bad design decision from virtualenv. Please see https://gist.github.com/datagrok/2199506
lotheac··on Your Bash Prompt Needs This
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.