Skip to content

Instantly share code, notes, and snippets.

View blefev's full-sized avatar

Brendan Lefevre blefev

View GitHub Profile
@blefev
blefev / italic_text.md
Last active February 15, 2023 17:21
Allow Italic Text in Tmux

Simply add this line to ~/.tmux.conf:

set -g default-terminal "tmux"

Source

@blefev
blefev / rubygem_ssl.md
Last active June 23, 2022 03:51
Ruby Gems / Bundler Behind SSL Proxy One Liner

Getting this error when doing rails new ... while behind an SSL proxy?

Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see https://railsapps.github.io/openssl-certificate-verify-failed.html. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.

Add your custom certificate authority in .pem format to Rubygems certs:

cp YOUR_CERT.pem "gem which rubygems | sed 's/rubygems.rb//'/rubygems/ssl_certs/rubygems.org/"