Installing/Updating Python

Standard
Reading Time: < 1 minute
brew upgrade && brew update
brew install pyenv
pyenv install 3.8.5
pyenv global 3.8.5

Add this to your ~/.zshrc file

if command -v pyenv 1>/dev/null 2>&1; then
  eval "$(pyenv init -)"
fi

source ~/.zshrc

Check your install

# Python 3.8.5
python -V

# .../.pyenv/shims/python
which python

docker-credential-pass Ubuntu setup for Bamboo CI/CD

Standard
Reading Time: < 1 minute

Ubuntu: 18.04
Docker: 18.09.5
docker-credential-pass: 0.6.2
pass: 1.7.1
gpg2: 2.2.4

Since my setup is for CI/CD I have a bamboo user to deploy my docker containers to Docker Hub and deploy to my production servers. Your use case may vary, but if you want your credentials to persist longer than a couple of hours before your system starts asking you to re-enter your passphrase this might work for you.

My gpg-agent.conf file looks like this:

This worked for me. Also note the default-cache-ttl value is in seconds, the values I used is 10 years in seconds.

Getting SimpleCov-summary (0.0.5) to work with SimpleCov (0.16.1) and Rails 5.2

Standard

Reading Time: < 1 minuteIf you run into issues with installing simplecov-summary using:

Here’s how to fix it:

Since Rails 5 removed silence_stream because it is not thread-safe. I found implementations of silence_stream but I got it to work by just removing it completely and I prefer to see these outputs at the end of my test run.

ADD NEW USER CENTOS, ADD TO SUDOER, ADD RSA KEYS

Standard

Reading Time: < 1 minute

 

Rsync Remote

Standard

Reading Time: < 1 minute

 

POSTGRESQL

Standard

Reading Time: < 1 minute

 

PALINDROME

Standard

Reading Time: < 1 minute

Ruby:

Python:

 

Installing Merb on OSX 10.5

Standard

Reading Time: < 1 minute

also had to do this for my system