How-To configure your MySQL to use PAM and/or Active Directory
authentication with percona-pam-authentication plugin.
Continuing articles about Two-Factor
authentication or integrating Linux services
with Active Directory, this How-To is one
of my recent works that I have done these days, so I hope it may
help the community with this guide to
configure MySQL with PAM and
subsequently using Active Directory to
authenticate. If you are new here, please refer
to SSH Two-Factor authentication, which
explains how to install likewise and …

I am currently working on a project to deploy new website builds
to a
small number of servers. I needed something simple and reliable
that could
be built in a very short period of time. I decided to whip
something up in
bash with the intent of refining it in Python later.

As I began to write this code, I realized that it probably would
have been
quicker to do it in Python from the start. I decided to stick
with bash as
somewhat of an academic exercise. The vast majority of these
deployment
scripts were trivial; check the code out of git, create a
manifest, package
it up, spew it to the …

I have been annoyed by the fact that I couldn’t easily print file
count for all of the folders in certain directory.Â Most of
the time I just want to see what space each folder is using (du
-hs *) but there are times when I need to know how many files are
in each folder (checking cache folder, session folders
etc).Â Â So I whipped together a command line which
does just that for me:

This is a quick post to show how one can issue commands to
telnet session from a shell script or command line
with out going into interactive mode. I use this to get stats
from our memcache servers or issue a flush_all via telnet from a script/cron.

So without further delay, following command will telnet to local
memcached server on port 11211 and issue one of the memcached
commands, stats

If you ever used svn command line, you know it is not optimal to
type in your password every time you do checkout, checkin, info,
etc.Â In linux world, it is very easy to setup keys to get around this.Â Of
course in the world of Windows it is not as
easy.Â Â Here are the steps you need to follow to get
private/public keys working with your SVN under Windows using ssh
tunneling.

One may wonder what is sshfs and why would you want it?Â
Well simply put, sshfs allows you to mount another server’s
filesystem into a folder on your local system which in the
background is doing ssh commands and transfers.Â As a
mounted folder, you are able to move about and copy files back
and forth as everything was on local server.Â As you can
see this makes it very easy for you to work with files on
multiple servers.

Note:Â you only have to do the following
installations on the server where you are doing the mounts on.

There are many times when I needed to find out my outgoing (or
external) IP for the servers which are behind load balancers or
firewalls.Â I used to just login to another external server
from the server in question and find out by looking at “who”
what my external ip is.Â Even though it works and I am so
used to it, today I decided to figure out a more graceful way of
finding my outgoing ip.Â As most of us already know,
whatismyip.com is the quickest way to find out your outgoing ip
from the browser.Â So I decided to use the same way on the …

My friend today asked me how to convert all spaces in filenames
under a specified directory to underscores. Also, at the same
time lowercase all of the filenames. Here is a quick script to do
what is needed. Let us start with creating some test data in a
temp directory:

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.