News for hackers. Stuff that matters.

lotheac

Re:Recovering deleted files using only grep on Sunday July 06, 2014 @01:17PM (#7995021)
(Sorry for the late reply)

In OpenSolaris it just used cronjobs to create zfs snapshots.

Re:Recovering deleted files using only grep on Wednesday June 25, 2014 @04:18PM (#7946518)
> 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

Re:Better bash in 15 minutes on Wednesday April 16, 2014 @04:08AM (#7596630)
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
Re:A simple virtualenv for Go on Tuesday December 03, 2013 @09:56AM (#6840579)
This seems to copy a bad design decision from virtualenv. Please see https://gist.github.com/datagrok/2199506
Re:Your Bash Prompt Needs This on Friday April 27, 2012 @02:32PM (#3900457)
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.