- 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 |
import { Controller } from "stimulus" | |
import { DirectUpload } from "@rails/activestorage" | |
import Dropzone from "dropzone" | |
import { getMetaValue, findElement, removeElement, insertAfter } from "helpers" | |
Dropzone.autoDiscover = false | |
export default class extends Controller { | |
static targets = [ "input" ] |
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" |