Bsdnexus - bsdnexus.com

General Information:

Latest News:

Pipe filenames to tar 5 Mar 2013 | 02:50 pm

Simple oneliner that demonstrates the principle of how to specify the files you wish tar to archive (or extract) by piping to it: cat filenames.txt | tar cvzf ~/try.tgz -T -

PostgreSQL CSV output from the CLI 30 Jan 2013 | 04:55 pm

Get CSV output from a postgreSQL database directly from the CLI: 1 psql -A -F ',' -t -c 'select * from tablename;' You can then, clearly, redirect the output as desired.

Parse JSON on the CLI 26 Nov 2012 | 03:35 pm

Simple one-liner to parse JSON on the command line: 1 cat fileof.json | python -mjson.tool

Config cleanup 6 May 2012 | 03:38 am

A one liner to remove all stale pkg config files on a system after the main programs have been removed. WARNING: There's no going back so make sure you do want all these config files removed and that...

Generating SSL certificates 30 Aug 2011 | 01:27 am

Generate server private key The first task is to create a server private key. In this example, a key of 1024 bits is created and the passphrase is encrypted using tripple DES: To create a  key witho...

Files without comments 22 Aug 2011 | 07:15 pm

Use *awk to remove comment lines that start with a '#' making it easier to view the actual configurations/settings [Edit] To remove the blank lines as well as the comments, alter the awk command to

Batch convert audio files 10 Aug 2011 | 07:47 pm

Simple one-liner to batch convert one type of audio file to another using ffmpeg. The example converts .ogg to .mp3 files:

dpkg tips 5 Aug 2011 | 07:32 pm

dpkg is package manager for Debian, and found in most of its derivatives. Programs such as apt and aptitude are front-ends to dpkg. Following are some handy to know dpkg commands. Package Listing To...

AcerAspireOne Touchpad on Debian 11 Jul 2011 | 10:01 am

When installing Debian "Testing" on the AcerAspireOne the touchpad does not register a single tap of the pad as a left mouse click. To rectify this add the following line to the file /etc/modprobe.d/p...

apt autoclean 5 Jul 2011 | 08:27 pm

To have apt-get/aptitude auto-clean all the downloaded .deb files after running an "update" (to keep as much free space as possible) simply add the following to /etc/apt/apt.conf.d/00autoclean

Related Keywords:

lighttpd vs apache, php ucfirst, grep multiple strings, grep multiple, python popen, python subprocess popen, vim search ignorecase off, form action post, squidguard transparent proxy, no valid bpb found via mbr

Recently parsed news:

Recent searches: