Skip to content

Instantly share code, notes, and snippets.

View alessandrostein's full-sized avatar

Alessandro Stein alessandrostein

View GitHub Profile
@alessandrostein
alessandrostein / README.md
Last active September 30, 2022 04:56
Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: crashed (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /app/.apt/opt/google/chrome/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Ruby on Rails Project

Rails 5.2.3 ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]

Using webdrivers and capybara

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <locale.h>
typedef struct { //struct para armazenar clientes no cadastro
char nome[30];
int rg;
int telefone;
# Server Console
Finished "/cable/" [WebSocket] for ::1 at 2020-06-08 22:05:04 -0300
NotificationChannel stopped streaming from notification_channel
TestChannel stopped streaming from test
StimulusReflex::Channel stopped streaming from StimulusReflex::Channel
Started GET "/cable" for ::1 at 2020-06-08 22:05:04 -0300
Started GET "/cable/" [WebSocket] for ::1 at 2020-06-08 22:05:04 -0300
Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
@alessandrostein
alessandrostein / ruby-on-rails-developer.md
Last active September 15, 2020 21:59
[Remoto] Full Stack Ruby on Rails Developer

[Remoto] Full Stack Ruby on Rails Developer

Hey Devs,

Sobre

Me chamo Alessandro Stein e minha pequena empresa Stein Tecnologia esta precisando de um Rails developer devido a alta demanda de novos projetos, principalmente do exterior. Nós trabalhamos na criação de MVP's e também na manutenção de projetos, todos em Ruby on Rails. Nesta oportunidade, a parte técnica não é a mais importante, e sim, que essa pessoa seja responsável e queira crescer junto com a empresa em ritmo acelerado. Queremos ser um trampolim para a sua carreira.

@alessandrostein
alessandrostein / rails_heroku_how_to_fix_error_node_modules_node_sass_command_failed.md
Last active January 29, 2022 20:35
Rails/Heroku - How to fix error node_modules/node-sass: Command failed.
  • Move to the trash these files: node_module folder, package-lock.json and yarn.lock;
  • In your package.json upgrade webpacker to 5.3.0;
  • Run yarn install in your console

That's it!

In case you don't have the start script in your package.json, you can add:

"scripts": {