gitlab, github - Permission denied (publickey,keyboard-interactive)

Category: Ruby :: Published at: 06.04.2022

Today i've suffered some issue with a SSH key. I've tried to clone my repository from Gitlab.com.

Unfortunately i've received an error:

Permission denied (publickey,keyboard-interactive)

I've thought, i have problem with a SSH key. Unfortunately, adding a SSH key did not resolve the problem.

How to resolve it?

Read more

How to work with Searchkick gem - Elasticsearch

Category: Ruby :: Published at: 12.01.2022

Elasticsearch is just an amazing search engine with a lot of flexibility.

You can think, that working with this tool is very hard, but actually, it is not.

Today I will show you, how to use Elasticsearch through the Searchkick gem.

Read more

How to copy folder from SSH to local

Category: Ruby :: Published at: 20.12.2021

Copying data from ssh to local is not that hard:

scp -r admin@servername.com:domains/domain-name.pl/public_html/admin/backups admin/backups

This is how to copy from local to remote:

scp /Downloads/example_file.txt admin@servername.com:domains/domain-name.pl/public_html/admin/backups

You can use "-r" flag to copy full folder. Without this you can copy only one file.


Kill your ruby session

Category: Ruby :: Published at: 07.12.2021

Quick cheatsheet to kill your Rails session on port 3000

kill -9 $(lsof -i tcp:3000 -t)


How to configure delayed_job to work on development environment

Category: Ruby :: Published at: 14.10.2021

Please take a note, that this is only brain shortcut for my personal use. 

It won't tell you how to install and configure delayed job on your computer.

Read more

How to filter stacktrace in byebug

Category: Ruby :: Published at: 12.10.2021

Sometimes simple debugging with byebug is not enough and you need to dive deeper.

If you need to get the stacktrace you can simply use command:

Read more