Sunday, September 23, 2018

Unable to download data from - SSL_connect returned=1

gem install rails -v 4.1

ruby -ropen-uri -e 'eval open("").read'

-e:1:in `eval': uninitialized constant OpenSSL::OPENSSL_LIBRARY_VERSION (NameError)

ruby -v -e 'require "openssl"; p OpenSSL'

ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]

brew rm openssl
brew cleanup openssl
brew install openssl

Thursday, September 20, 2018

Monday, September 17, 2018

Copy / Paste terminal utility for Ubuntu

1. sudo apt-get update
2. sudo apt-get install xclip

Add an alias to the .bashrc file:

alias pbcopy='xclip -sel clip'

I am using the same command that is used on a Mac as the alias. I also have open alias to open a directory from a terminal:

alias open='xdg-open'

Wednesday, July 25, 2018

no implicit conversion of nil into String

This can happen when you have not defined the required configuration in secrets.yml. For instance, you are using http basic auth and the credentials are not defined in the config file.

Wednesday, July 18, 2018

simplehttpserver npm

npm install simplehttpserver -g
simplehttpserver .
simplehttpserver . -p 8081