Back to <til> Today I learned

How to Generate a Secure Password From Command Line

When installing a new server or just creating an online account is common to need a secure password. You can use a password generator to create a secure password, but you can also use the command line to generate a secure password.

openssl rand -base64 32 | pbcopy

This command will generate a secure password and copy it to your clipboard. You can also use the tr command to remove the new line character.

openssl rand -base64 32 | tr -d '\n' | pbcopy

In case you want to save it to a file, you can use the tee command.

openssl rand -base64 32 | tr -d '\n' | tee -a ~/password.txt

All the commands above will generate a 32 character password. You can change the number to generate a different length password. Also I’m using -base64 to generate a password with letters, numbers and special characters (plus and equal sign). You can use -hex to generate a password with only letters and numbers.

Back to <til> Today I learned

Posts by me

Machine Learning Specialization Learnings 1

I’m doing the new Machine Learning Specializationg by Andrew Ng in Coursera, great content so far. Due to that, I’m refreshing my college Calculus and Linear Algebra. In the first week we look at Regression Models with Gradent …

Run Most Basic Way the Stable Diffusion Model in M1

All internet is talking about Stable Diffusion, so I give it a try. I know is becoming mainstream, several people is building products on top of it, some simple like generate an avatar or how to decorate a house.

Los datos de los clientes de Panamericana estuvieron expuestos

El pasado 5 de abril fuí a Panamericana a comprar un libro, al momento de pagar, la cajera me hizo la invitación a actualizar mis datos para que me envien la factura electrónicamente.