Skip to content

Instantly share code, notes, and snippets.

View cassioKenji's full-sized avatar
🙃
I may be slow to respond.

ckoshiro cassioKenji

🙃
I may be slow to respond.
  • 23:30 (UTC -03:00)
View GitHub Profile
picos por minuto no self-help:
-Minha conta
-listagem de pedidos
-detalhes de pedido
-listagem de endereco
-cadastro de endereco
-abertura de ticket
@cassioKenji
cassioKenji / Dockerfile
Created June 27, 2017 22:08
chrome headless + lighthouse
FROM krallin/ubuntu-tini:xenial
LABEL name="chrome-headless ux" \
maintainer="cassio" \
version="0.1a" \
description="chrome headless + lighthouse"
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
@cassioKenji
cassioKenji / capybara cheat sheet
Created August 5, 2017 19:23 — forked from zhengjia/capybara cheat sheet
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@cassioKenji
cassioKenji / capy_stuff.rb
Last active February 22, 2019 11:17
cool capybara stuff cheat sheet
# set and load profile
profile = Selenium::WebDriver::Firefox::Profile.new
profile['browser.cache.disk.enable'] = false
profile['browser.cache.memory.enable'] = false
Capybara::Selenium::Driver.new(app, browser: :firefox, profile: profile)
# https://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/Chrome/Options.html
# multiple flags (Capabilities.chrome('chromeOptions' => { 'args' => [] }) does not work with multple flags)
Capybara.register_driver :selenium do |app|
options = Selenium::WebDriver::Chrome::Options.new(args: ['start-fullscreen','proxy-server=localhost:3128'])
@cassioKenji
cassioKenji / fii
Created February 16, 2018 01:07
fii
Confira abaixo as regras do grupo, indicações de material e o nosso FAQ exclusivo.
[RECOMENDAÇÕES]
-Melhor site para consulta de informações sobre FII:
http://bit.ly/investidoresdefiisCF
- Melhor e mais completo curso sobre FII:
http://bit.ly/IdFCursoREx
- Melhor relatório semanal sobre FII:
[RECOMENDAÇÕES]
-Melhor site para consulta de informações sobre FII:
http://bit.ly/investidoresdefiisCF
- Melhor e mais completo curso sobre FII:
http://bit.ly/IdFCursoREx
- Melhor relatório semanal sobre FII:
Assinatura Mensal: http://bit.ly/IdFRRMM
Assinatura Trimestral: http://bit.ly/IdFRRMT
@cassioKenji
cassioKenji / event.rb
Created March 16, 2018 22:23
objeto que guarda metricas analiticas
require 'pry'
require 'json'
class Event < Hash
def initialize(status, code, measurements, exception=nil)
self[:status] = false
self[:code] = code
self[:measurements] = measurements
self[:type_test] = false
self[:exception] = {}
https://expirebox.com/download/3bb932c98b25d383f94e29de0a06fea5.html
Condition Explanation
--accept-resource-provider ⊗ Flag indicating that a resource provider must be set up to provide cast receiver with resources. Apps cannot start until provided resources. This flag implies --alsa-check-close-timeout=0. ↪
--account-consistency [2] ⊗ Command line flag for enabling account consistency. Default mode is disabled. Mirror is a legacy mode in which Google accounts are always addded to Chrome, and Chrome then adds them to the Google authentication cookies. Dice is a new experiment in which Chrome is aware of the accounts in the Google authentication cookies. ↪
--adaboost ⊗ No description ↪
--aec-refined-adaptive-filter ⊗ Enables a new tuning of the WebRTC Acoustic Echo Canceler (AEC). The new tuning aims at resolving two issues with the AEC: https://bugs.chromium.org/p/webrtc/issues/detail?id=5777 https://bugs.chromium.org/p/webrtc/issues/detail?id=5778 TODO(hlundin): Remove this switch when experimentation is over; crbug.com/603821. ↪
--agc-startup-min-volume