Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The problem that it takes a $type="; rm -rf /" to ruin your day.


No doubt, that's why stuff like this should be limited to internal tooling and private use only, not exposed to the Internet. When done that way, it's just infinitely more efficient to write trash code in PHP for one-off things, and there's literally nothing wrong with it when it has an audience of 1 - yourself.

Beyond that, yeah, you shouldn't do things like that. But there is no reason to stand up an entire test suite and development environment just to write some stuff to check power usage or internal sensors in your house.

(also that command would fail on the machines I run my crap code on, Win10 discardable VMs)




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

Search: