maven-logo-black-on-white

How to Encrypt your Maven password

Although Maven documentation has a whole page on their password encryption feature, it doesn’t actually tell you how to do what you need to do to encrypt Maven passwords.

What am I talking about?
If you have authentication to Maven repos in your organization, you normally store the username and password in the Maven settings file located by default at ~/.m2/settings.xml.

For example, I might have something like this in my settings.xml . . .

In favor of asking hard questions

I am in favor of asking hard questions. A lot can go assumed. No stone should be left unturned. It’s wise to think ahead and it’s the professional who makes sure that there are measures in place for anything that can go wrong.

Still, there’s friction to fight when asking hard questions. The person who asks hard questions might be seen as a troublemaker. Or less insidious, it’s easy to hurt other team members’ feelings. Someone who put a lot of work into a feature only to hear questions about it might not appreciate that.

Sure, I don’t want to rock the boat. I also don’t want anyone on my team to feel bad. But more than all of that . . .

Cloud-cliparts-free-clipart-images

The cloud is just other people’s computers

When you read the word “cloud” you should just mentally strike it out and insert “other people’s computers.” For example, AWS has a page titled, What is cloud computing? with the following definition:

Cloud computing is the on-demand delivery of compute power, database storage, applications, and other IT resources through a cloud services platform via the internet with pay-as-you-go pricing.

line_squall_35323_md

This should be rewritten as:

Cloud computing is the on-demand delivery of compute power, database storage, applications, and other IT resources through a cloud services platform other people’s computers via the internet with pay-as-you-go pricing.

The value of the “cloud” doesn’t come out of the idea of using other people’s computers, though. The real value is from the tooling built into a given cloud platform. We don’t get much benefit just from using other people’s computers. But if we can use other people’s computers only when we need them, that’s valuable. That’s how a company can meet demand elastically. It’s how they can keep their site up for all the shoppers on Black Friday without spending millions the rest of the year for infrastructure that is sitting idle.

bash_shell

Automate everything (practical uses of Bash part 3)

Last time I provided some quick shell script time-savers. The goal of automation is saving time and providing focus on important things rather than tedious yak shaving. The time it takes to write a little script is hardly anything compared to the time it saves.
fire_engine_1_md
So here are some more useful tips including how to list folders by size, read and verify user input, and find files by date, loop over them and apply a command (like mv or rm) . . .