Tag Archives: CLI

Watching a fork bomb explode

Fork bombs are simple pieces of programming logic that can bring down the mightiest of servers in seconds (in fact, the faster the server, the faster it goes down). They are quite easy to protect against, but some operating systems … Continue reading

Posted in Security | Tagged , , , | 2 Comments

More efficient HTML editing in vim

When I’m writing HTML and CSS, being forced to type out repetitive and fixed syntax, as well as remembering the particularities of the syntax and its formatting, makes me rather unhappy. Not to mention less productive. Let’s fix that. HTML … Continue reading

Posted in CLI, Programming | Tagged , , , , , | 1 Comment

Useful ways to list directory contents

The ls command becomes second nature once you work in a Linux command line environment for any appreciable period of time. Commonly, it seems, people simply stick with the plain vanilla command, without exploring its rich options, as well as … Continue reading

Posted in CLI | Tagged , , | 3 Comments

Easily sum matching file line counts

This command will return the number of total lines contained in files ending in .py in the directory it is run in, as well as subdirectories: 12find . -type f -iname *py | xargs -I str wc -l str | … Continue reading

Posted in CLI | Tagged , | Leave a comment

Printing tabular data attractively in Python

Have you ever looked for a tool several times, not found what you wanted, then one fine day discover exactly what you were looking for by accident? I had just such an experience… Not too infrequently in command line Python … Continue reading

Posted in Programming | Tagged , , | 4 Comments