- If you need to use material icons in your project for example.
- If you need to add cusom icons
File examples bellow
| .next/ | |
| node_modules/ | |
| Dockerfile | |
| yarn-error.log | |
| .dockerignore | |
| .git | |
| .gitignore |
| add_flash_types :primary, :secondary, :success, :danger, :warning, :info, :light, :dark |
| <%= form_with(model: billboard) do |form| %> | |
| <%= tag.div class: "dropzone", data: { controller: "dropzone", dropzone_param_name_value: "billboard[images][]", dropzone_url_value: rails_direct_uploads_url, dropzone_accepted_files_value: "image/*", dropzone_max_files_value: 3, dropzone_max_filesize_value: 0.300 } do %> | |
| <div class="dz-default dz-message flex flex-col items-center"> | |
| <%= image_tag "upload.svg", size: 28, class: "colorize-black", aria: { hidden: true } %> | |
| <h5 class="font-semibold mbs-4">Drop files here or click to upload.</h5> | |
| <p class="text-sm text-subtle">Upload up to 10 files.</p> | |
| </div> | |
| <% end %> | |
| <div class="inline-flex items-center mbs-2 mie-1"> |
| require "dry/monads/result" | |
| class ApplicationForm | |
| include Dry::Monads::Result::Mixin | |
| include ActiveModel::Model | |
| def self.attribute(name, options = {}) | |
| self.send(:attr_accessor, name) | |
| _attributes << Attribute.new(name, options) | |
| end |
| export function groupCollapsedFn<F extends Function>( | |
| msg: any, func: F, | |
| ): F; | |
| export function groupFn<F extends Function>( | |
| msg: any, func: F, isCollapsed?: boolean | |
| ): F; |
| import { FieldProps } from 'formik' | |
| import React from 'react' | |
| import Select, { Option, ReactSelectProps } from 'react-select' | |
| export const SelectField: React.SFC<ReactSelectProps & FieldProps> = ({ | |
| options, | |
| field, | |
| form, | |
| }) => ( | |
| <Select |
I’m looking for any tips or tricks for making chrome headless mode less detectable. Here is what I’ve done so far:
Set my args as follows:
const run = (async () => {
const args = [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-infobars',| #!/bin/bash | |
| # from https://chromium.woolyss.com/ | |
| # and https://gist.github.com/addyosmani/5336747 | |
| # and https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md | |
| sudo apt-get update | |
| sudo apt-get install software-properties-common | |
| sudo add-apt-repository ppa:canonical-chromium-builds/stage | |
| sudo apt-get update | |
| sudo apt-get install chromium-browser | |
| chromium-browser --headless --no-sandbox http://example.org/ |
| require 'test_helper' | |
| # Capybara driver chosen based on the value of ENV['TEST_WITH_CHROME'] | |
| # - `false` - use capybara-webkit | |
| # - `headless` - chromedriver in headless mode | |
| # - `true` (or any other value) - chromedriver in a Window | |
| class ApplicationSystemTestCase < ActionDispatch::SystemTestCase | |
| if ENV['TEST_WITH_CHROME'] && ENV['TEST_WITH_CHROME'] != 'false' | |
| require "selenium/webdriver" |