George Opritescu

Developer from somewhere

ssh agent forwarding for github deploys

Kept receiving these errors when trying to execute commands on the remote server, ( with capistrano ) while forwarding my SSH keys:

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

This link offered the solution. I ran:

$ ssh-add -L

and the output was:

The agent has no identities.

Then, I’ve added the key:

$ ssh-add ~/.ssh/id_rsa

Confirmed that it appears in ssh-add -L:

$ ssh-add -L
ssh-rsa ....

And after this step, the ssh key was properly forwarded.

Read More

detecting if chef is ran under vagrant

if node.name =~ /vagrant/
  # do stuff
end
Read More

configuring a pry console

require "pry"

Pry.start

It’s useful to know that if you do any kind of setup, or initialize any variables, they will be available in the pry console as well.

Read More

open path in OSX

⇧⌘G

Read More
osx

ruby configuration info

A lot of useful information can be found in the

1
RbConfig::Config
hash. For example, the host os:

[2] pry(main)> RbConfig::CONFIG['host_os']
=> "darwin15.4.0"
Read More

extracting public ssh key from private ssh key

In which we find out how to extract a public key from a private key file

Read More
ssh

mounting a remote filesystem with sshfs

How to mount a remote filesystem with sshfs

Read More

cannot load such file -- rvm chef vagrant

In which I discover that I should pass GEM_PATH to a runit controller service in order to have my gems loaded

Read More

elixir uppercase letter regex

How to match uppercase unicode characters in Elixir

Read More

eventmachine 1.0.3 in osx

Fix for the error:

In file included from binder.cpp:20: ./project.h:107:10: fatal error: ‘openssl/ssl.h’ file not found

Read More