Skip to main content

Posts

Crude Ruby Script to ask for a Password to use for Private git Repo

The Intro Good ole Docker. It is a powerful tool to setup your environments whether in production, dev or test. Plowing through and building a new container I discovered I had the need or want to pass an argument to the Dockerfile and let it log me into a private repo. The Environment Variable.  Looking through the Dockerfile documentation on the docker.io website I saw this wonderful looking thing called an environment variable. When I first looked at it I thought that meant that we could pass them in from the host cli running the docker command. I was dead wrong. The environment variable does create a variable but its only for the container's environment. So what does that mean for us. Well if you think about the reason for Docker is for an unattended setup of an environment. Now if I were going to do this completely automated then I would probably create a ssh key and copy it over using Dockerfile. This is not what I wanted. I really wanted a seperation where I didn't...

Speedometer

Ukulele Chords

Select your Chord and Match your fingers to the diagram.

Sending and email using Telnet

Open up Telnet telnet smtp.yourdomain.com 25 If you need SSL do this instead openssl s_client -connect smtp.yourdomain.com:465 Tell the server where you are coming from. ehlo localhost Login to the server. You will need your username and password converted to Base 64. Base 64 Encode auth login 334 VXNlcm5hbWU6 username 334 UGFzc3dvcmQ6 password Now compose your email. mail from: <your_email@yourdomain.com> rcpt to: <destination@domain.com> data Type in your email .