Tag Archives: CLI

Bag of useful Bash aliases and functions

Here are a number of assorted aliases and functions for Bash that I’ve made in the last few months and found to be useful. Enjoy!

Posted in CLI | Tagged , , , | 7 Comments

Counting columns in a CSV from the CLI on Linux

In wrangling some DB exports recently I needed the number of columns in multiple CSVs. It’s easy enough to just open them in OpenOffice and check the final column number, but I wanted a CLI utility. I even entertained some … Continue reading

Posted in CLI | Tagged , , | Leave a comment

Dealing with “could not create shared memory segment” from postgres on Ubuntu

After installing postgresql-8.4 from the Ubuntu repos on an Ubuntu 9.10 machine, I received the following when the daemon tried to start up: 1234567 * The PostgreSQL server failed to start. Please check the log output: FATAL:  could not create shared … Continue reading

Posted in CLI | Tagged , , , | 10 Comments

Tune MySQL like a pro with MySQLTuner

I came across MySQLTuner recently and was most pleasantly surprised. It’s a Perl script that only requires your MySQL user and password to provide detailed and useful checks of a running MySQL instance. First though, check out the awesome URL … Continue reading

Posted in MySQL | Tagged , , , | Leave a comment

Fun with ASCII art

No, in fact ASCII art isn’t dead, it’s all the rage. Now that that’s established, check out these handy programs for generating your own ASCII art messages: 1figlet -f smslant Boxes rules. | boxes -d parchment -a hcvc Figure 1. … Continue reading

Posted in CLI | Tagged , | 7 Comments