Skip to content

Instantly share code, notes, and snippets.

View tobyaherbert's full-sized avatar

Toby Herbert tobyaherbert

View GitHub Profile
@tobyaherbert
tobyaherbert / flex-row-reverse-layering.html
Last active December 2, 2022 13:55
Flex with `flex-direction: row-reverse` causes unexpected layering behaviour
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="robots" content="nofollow, noindex" />
<meta name="viewport" content="width=device-width, shrink-to-fit=no, viewport-fit=cover" />
<style>
body {
display: flex;
@tobyaherbert
tobyaherbert / tweaks-woocommerce-paypal-negative-fees.php
Created November 4, 2021 13:26
WordPress Plugin - Strips fee items with negative amounts from the purchase units.
<?php
/**
* Tweaks - WooCommerce PayPal Negative Fees
*
* @package Tweaks
* @author Nialto Services Limited
* @copyright 2020 Nialto Services Limited
*
* @wordpress-plugin
* Plugin Name: Tweaks - WooCommerce PayPal Negative Fees
@tobyaherbert
tobyaherbert / rails.log
Created August 12, 2021 16:36
Simplified log snapshot where multiple `ActionMailer::MailDeliveryJob` seem to have been executed.
[ActiveJob] [ActionMailer::MailDeliveryJob] [0835a163-fefd-4425-9713-ed68142dd993] Performing ActionMailer::MailDeliveryJob (Job ID: 0835a163-fefd-4425-9713-ed68142dd993) from GoodJob(default) enqueued at 2021-08-11T14:59:31Z with arguments: "BulkMailer", "default", "deliver_now", {:args=>[], :params=>{:to=>"user@example.com", :message=>"Hello, World!", :subject=>"Message Subject"}}
[ActiveJob] [ActionMailer::MailDeliveryJob] [0835a163-fefd-4425-9713-ed68142dd993] Rendering layout layouts/mailer.html.erb
[ActiveJob] [ActionMailer::MailDeliveryJob] [0835a163-fefd-4425-9713-ed68142dd993] Rendering bulk_mailer/default.html.erb within layouts/mailer
[ActiveJob] [ActionMailer::MailDeliveryJob] [0835a163-fefd-4425-9713-ed68142dd993] Rendered bulk_mailer/default.html.erb within layouts/mailer (Duration: 0.3ms | Allocations: 212)
[ActiveJob] [ActionMailer::MailDeliveryJob] [0835a163-fefd-4425-9713-ed68142dd993] Rendered layout layouts/mailer.html.erb (Duration: 1.2ms | Allocations: 900)
[ActiveJob] [ActionMai
@tobyaherbert
tobyaherbert / keybase.md
Created June 25, 2014 14:28
Toby Herbert's Keybase Verification File

Keybase proof

I hereby claim:

  • I am tobyaherbert on github.
  • I am tobyaherbert (https://keybase.io/tobyaherbert) on keybase.
  • I have a public key whose fingerprint is CC65 7EA2 B92B DCCE 9452 6CED 34C1 B16A F50E 71BC

To claim this, I am signing this object: