Blowing Up Shell Scripts

One of the most universal experiences of any Linux or Unix user is working through a guide or handbook and coming across an almost unbelievably complex line of code meant to be executed with a shell. At the time of encountering a snippet like this it’s difficult to imagine any human ever having written it in the first place, but with some dedication it is possible to tease out what these small bits of code do when they’re typed into the terminal and run (unless it’s something like :(){ :|:& };: but that’s another story entirely). [noperator] recently built a tool which helps users in this predicament understand these shell scripts by expanding them into a more human-intelligible form.

The tool is named sol and does much more than expanding shell one-liners into a readable format. It also provides an interactive shell environment where the user can explore the exploded code in detail, modify it in any way they see fit, and collapse it back down to a single line so it can easily be sent to other users. It can be used with most of the major text editors as well as piped directly to standard input, and has a number of other options as well such as custom configurations and the ability to see non-standard bits of code that might not be compatible from one shell environment to another, as well as helping to translate those bits of code.

[noperator] has made the code available in the linked GitHub page for anyone curious about its use, and has a to-do list for future versions of the tool as well including adding support beyond bash. We’d definitely recommend a tool like this especially if you’re still relatively new to bash scripting (or shell scripting in general) and, as always, we’d just to remind everyone not to blindly copy and paste commands into their terminal windows. If you’re the type of person to go out on a limb and run crazy commands to see what they actually do, though, make sure you’re at least logged into the right computer first.

Fail Of The Week: Engine Flips Out

A few weeks ago an incredible video of an engine exploding started making the rounds on Facebook. This particular engine was thankfully in a dyno room, rather than sitting a couple of feet away from a driver on a track. We’ve all seen engine carnage videos before, but this one stands out. This diesel engine literally rips itself apart, with the top half of the engine flipping and landing on one side of the room while the bottom half sits still spinning on the dyno frame.

Building performance engines is part science, part engineering, and part hacking. While F1 racing teams have millions of dollars of test and measurement equipment at their disposal, smaller shops have to operate on a much lower budget. In this case, the company makes their modifications, then tests things out in the dyno room. Usually, the tests work out fine. Sometimes though, things end spectacularly, as you can see with this diesel engine.

The engine in question belongs to Firepunk diesel, a racing team. It started life as a 6.7 liter Cummins diesel: the same engine you can find in Dodge Ram pickup trucks. This little engine wasn’t content to chug around town, though. The Firepunk team builds performance engines — drag racing and tractor pulling performance in this case. Little more than the engine block itself was original on this engine. Let’s take a deeper look.

Continue reading “Fail Of The Week: Engine Flips Out”

Slow Motion Destruction Of Random Things

Though we can’t really tell you how this is hacking related, we’ve always shared random videos of stuff getting destroyed with you. Invariably someone in the comments goes on a rant about how wasteful and/or dangerous it is. This clip, from a Danish TV show called  Stupid and Dangerous, fits that description quite well. It is also freaking awesome.

We’re really not sure what draws us to these videos exactly. Is it vicarious destruction or possibly our natural affinity for slow motion?

[via Dvice]

http://www.youtube.com/watch?v=lUZ-e2SkeMI

Blowing Up Capacitors

[grenadier] wrote in to show us a video of some capacitors being blown up. Yup, that’s it. Just some capacitors being blown up. You might be wondering what there is to learn from this video. The answer is… nothing. It sure is fun to watch though. We’re all busy trying to find some nice hacks to share with you, so we figured you could watch some stuff getting destroyed while you waited.  Here’s someone using explosives to reveal art behind a thin layer of concrete on a wall. Here’s some high voltage destroying multimeters. How about a turkey being cooked with thermite? Thermite works on hard drives too.

Ok, enough of that. This was a gentle reminder to send us tips to your projects.

Continue reading “Blowing Up Capacitors”