Skip to content

Instantly share code, notes, and snippets.

View plicjo's full-sized avatar

Joshua Plicque plicjo

View GitHub Profile
---
inherit_from: .rubocop_todo.yml
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.6
{
"app/javascript/components/*.js": {
"command": "component"
},
"app/javascript/reducers/*.js": {
"command": "reducer"
},
"app/javascript/actions/*.js": {
"command": "actions"
},
@plicjo
plicjo / gist:3d55ec964d98941e87d299ed6e0a7d78
Last active November 17, 2023 17:13
Upgrading Chromedriver
brew install --cask chromedriver
xattr -d com.apple.quarantine $(which chromedriver)
@plicjo
plicjo / simple_s3_upload.ex
Last active May 23, 2024 09:10
LiveView Uploads to S3
defmodule SimpleS3Upload do
@moduledoc """
Dependency-free S3 Form Upload using HTTP POST sigv4
https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-post-example.html
"""
@doc """
Signs a form upload.
The configuration is a map which must contain the following keys:
* `:region` - The AWS region, such as "us-east-1"