Skip to content

Instantly share code, notes, and snippets.

View douglasmartins7's full-sized avatar
🎯
Focusing

Douglas Martins douglasmartins7

🎯
Focusing
View GitHub Profile
Extension
1. Docker
2. Git lens #mostra cada linha o que comitou ele, bom para trabalhar em equipe
3. Ruby
4. Dark material # color the source
5. Cucumber(gherkin) ful support # color feature variuos color
4. Bootstrap 4, Font awesome 4, Font Awesome 5 Free & Pro snippets
5. vsocde icons
6. Rainbow Brackets #colorir parente com seu par
@douglasmartins7
douglasmartins7 / RVM
Last active April 22, 2019 18:17
RVM
sudo apt-add-repository -y ppa:rael-gc/rvm
sudo apt-get update
\curl -sSL https://get.rvm.io | bash
sudo apt-get install rvm
menu prefences in terminal/ profiles/ comand/ click in "Run commnand as a login shell"
reboot in ubuntu
#problemy in ubuntu at use bundle install
sudo apt-get install libpq-dev
#install package essential in Ruby
sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev
#Need install nodeJS
sudo apt-get install nodejs
@douglasmartins7
douglasmartins7 / ruby
Created September 11, 2018 18:27
try catch in ruby
def method
#need implementations
#more
#more
rescue Exception => e
raise "Airline was not presented for this destination"
puts e.message
end
@douglasmartins7
douglasmartins7 / facebook_login.feature
Created August 15, 2018 16:42 — forked from gunesmes/facebook_login.feature
Capybara and Cucumber: Handling iframe, Pop-ups and Facebook Login
Feature: Facebook Login
As An anonymous user
I Want to login the webpage
So That I can buy anything
Background: Member should open home page
Given I go to home page
@javascript
Scenario: Member should be able to login with Facebook
@douglasmartins7
douglasmartins7 / Mysql
Last active November 19, 2018 16:20
dba
#acess mysql
#library of mysql running in rails ubuntu
sudo apt-get install libmysqlclient-dev
#show mysql running
ps ax | grep mysql
#kill the proccess
sudo pkill mysql
@douglasmartins7
douglasmartins7 / docker
Created June 19, 2018 17:42
is not correct
FROM ruby:2.4
#author
MAINTAINER EQUIPE QA CVC
#enviroment variable about time config
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
#config browser start in linux
@douglasmartins7
douglasmartins7 / docker
Last active June 13, 2018 21:44
dockerfile
From node:latest #latest last version
MAINTAINER Douglas Santos #autor
COPY . /var/www # o . seria copia da minha pasta local e envia para a do container
RUN #executa algo
EXPOSE 8080 #porta que ele ira usar
ENTRYPOINT cucumber -p chrome -t @basic -p prod #comando para estartar o código
WORKDIR #Onde vai começar a execução, a pasta que iniciara
ENV #setar a variavel de ambiente, inserir o ambiente que o codigo rodara
@douglasmartins7
douglasmartins7 / Ubuntu
Last active December 21, 2018 16:43
Terminal - automation - ruby
#Update chromedriver in ubuntu
#download the version
wget https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip
$ unzip chromedriver_linux64.zip
#path chromedriver in ubuntu
$ sudo mv chromedriver /usr/bin/chromedriver