6 ms·
I use the yes command to defrost my lunch. I open up a couple of tabs running yes > /dev/null Then place my frozen lunch on the back of my macbook. Give it an
by snikch 9y ago
I use the yes command to defrost my lunch. I open up a couple of tabs running
yes > /dev/null
Then place my frozen lunch on the back of my macbook. Give it an hour or so and boom, defrosted.
- userbinator 9y agoReminds me of http://thedailywtf.com/articles/Just-a-WarmUp http://thedailywtf.com/articles/Just-a-WarmUp , a trick which I also discovered independently many years ago and used to keep my fingers warm while attending lectures in a nearly-unheated room.
- taneq 9y agoPrior art for https://xkcd.com/1172/ https://xkcd.com/1172/ ?
- Bromskloss 9y ago> I open up a couple of tabs So, you're basically thawing your lunch manually. Have you considered the "parallel" command?
- snikch 9y agoHrm, no I hadn't. I don't know much about this command. Could you give me a (thawing) example?
- Florin_Andrei 9y agofor p in `seq 1 $(sysctl -n hw.ncpu)`; do yes > /dev/null & done Alternatively you could run Boinc with a cancer research project or something - defrost your food AND help the world become a better place.
- htfy96 9y ago$(nproc --all) on Linux
- Twirrim 9y agoIt's pretty straightforward: parallel -- yes yes yes yes >/dev/null If you've more processors than that, add on extra yesses.
- flukus 9y agoI just realized a simple shell script would make a passable imitation of JMeter, without the horrible UI and xml.
- hnlmorg 9y agoA shell script wouldn't be enough (I've tried). However there are plenty of CLI based load testing tools, including one I've written myself. And if you need something more advanced then there is always Gatling, which is run via the command line and produces proper HTML reports and graphs plus is extended in code (eg in Scala) rather than GUI controls
- edp 9y agoOT but if you want a nice alternative to jmeter, check out Gatling. Instead of XML, you can code your scenarios in scala. edit : hnlmorg beat me to it :)
- Bromskloss 9y agoThat manual counting of cores is what I thought we would let `parallel` handle! I have never actually used parallel, though, so I don't know how to best do it.
- cat199 9y agoone way on a leenukz parallel -- `sed -ne 's:^processor.*:yes:p' < /proc/cpuinfo` on openbsd: parallel -- `perl -e 'printf("yes "x\`sysctl -n hw.ncpu\`)'` don't try the latter in a shell script without being prepared to debug tho.
- Bromskloss 9y ago
- kbaker 9y agoGeez man, at least mine some cryptocurrency. Then your hot lunch will buy you another hot lunch down the road!
- knowingathing 9y agothat's interesting. i open and close the mac slack app 5 times to defrost my lunch.
- Abishek_Muthian 9y agoLol I defrost the chocolate like this by placing it near the air vent. But care should be taken to make sure that the wrapper doesn’t touch the chocolate while peeling off, because I don’t think the hot air from the vent is hot enough to kill all harmful microbes.
- snikch 9y agoI think this method is much more healthy for you.
- TFortunato 9y agoHah, nice! Somewhat related, I once worked on a project that used a high reliability PC meant for extended use in "extreme" outdoor environments. One of the issues they (manufacturer) worried about was the pcb and solder joints experiencing thermal fatigue fron lots of seasonal and night/day temperature cycles. Their ingenious solution was to always run the system towards the warmer end of its spec, and so it included a program that would monitor the temperature inside the case, and would spawn/kill a bunch of threads doing compute intensive math in order to keep the temperature constant when the users workload wasn't enough!
- TheSpiceIsLife 9y agoThat's amusing. The laser cutter I operate simply has reverse cycle air conditioner mounted in one of the cabinet doors.
- andrewedstrom 9y agoIf only mining cryptocurrency had been a thing back then...
- Asooka 9y agoCouldn't they slow down the cooling fans? Or was it a passively cooled PC?
- TFortunato 9y agoPassively cooled. The thing was originally meant for extended use in "extreme" industrial environments (eg at a power substation, inside a wind turbine, etc..), so it had no vents or moving parts at all. Everything was heatpiped to the metal case, which looked like a heatsink. Similar looking model from same company: https://selinc.com/products/3355/ https://selinc.com/products/3355/
- LambdaComplex 9y agoI really don't know whether or not your comment is serious, but I damn sure want it to be
- raverbashing 9y agoI just open a webgl page, seems more effective