$ mail
bash: mail: command not found
Monthly Archives: March 2016
Hide Nginx version number
Hide Nginx version number
Continue reading
Proc::PID::File and already locked: Bad file descriptor error
You are using Proc::PID::File and you got
Died at Wed Mar 23 07:50:54 2016: pid “/var/run/xxxxxx.pl.pid” already locked: Bad file descriptor
MySQL silently truncate your data?
MySQL silently truncate your data?
The fact is if you are not using the correct SQL mode, MySQL may silently truncate your data without telling you and when you realize that you already incurred a great loss.
Some random notes on some useful Perl modules
Some random notes on Perl
FindBin
mkdir and File::Path
Expat.xs:12:19: error: expat.h: No such file or directory
Expat.xs:12:19: error: expat.h: No such file or directory
The Bash Shell Startup Files
The Bash Shell Startup Files
The shell program /bin/bash (hereafter referred to as just “the shell”) uses a collection of startup files to help create an environment. Each file has a specific use and may affect login and interactive environments differently. The files in the /etc directory generally provide global settings. If an equivalent file exists in your home directory it may override the global settings.
Continue reading
uninstall CPAN/Perl modules
How to cleanly uninstall a Perl module
CPAN makes installing Perl modules easy but when it comes to removing Perl modules, you have to roll your own solution*. Fortunately the Perl core includes the ExtUtils modules that can help. The script below accepts the Module::Name as an argument, and will delete all files and empty directories associated with that module.
shared Perlbrew for all users
Perlbrew install and usage examples
installation
initialization
install Perl
etc.
Continue reading
use RCS to manage system configuration files rather than git/svn etc.
use RCS to manage system configuration files rather than git/svn etc.
This quick tutorial will teach you everything you need to know to use the Revision Control System (RCS) for system administration. RCS is useful for applying version control to all of your system files. It has considerably more functionality than we’ll discuss here, so be sure to take a look at the manual pages and the references at the end of this appendix if you plan to use it heavily. You may also be wondering why we’re bothering with RCS when more modern systems, such as Git and Subversion, exist. That’s a good question, and I’ll address it at the end of the tutorial. In the meantime, though, let’s get the RCS basics down; they’ll help with the explanation later.