Skip to content

Instantly share code, notes, and snippets.

View 0x15f's full-sized avatar
:shipit:
Shipping shit

Jake Casto 0x15f

:shipit:
Shipping shit
View GitHub Profile
@0x15f
0x15f / warmly.sh
Created May 28, 2019 17:25 — forked from thomasfr/warmly.sh
A wget based easy poor man`s cache warmer script
#!/bin/bash
# warmly.sh
# A wget based, easy, poor man`s cache warmer script
# https://gist.github.com/thomasfr/7926314
# The MIT License (MIT)
#
# Copyright (c) 2013,2014 Thomas Fritz <[email protected]> (http://fritzthomas.com)
#
name: "Deploy to Production"
on:
push:
branches:
- production
jobs:
build:
runs-on: ubuntu-latest
steps:
const express = require('express')
const app = express()
const port = 3001
app.get('/', async (req, res) => {
try {
const puppeteer = require('puppeteer')
const browser = await puppeteer.launch({
headless: true,
@0x15f
0x15f / graphql-add-product-custom-option-ae5c89e5af2c14dea33b5c5d49ead84d55fd02f8.patch
Last active August 23, 2023 21:46
Magento2 GraphQL cannot add product with customizable option to cart #37599 #37652
From ae5c89e5af2c14dea33b5c5d49ead84d55fd02f8 Mon Sep 17 00:00:00 2001
From: Shomi Adarsh <[email protected]>
Date: Thu, 22 Jun 2023 13:48:07 +0530
Subject: [PATCH] GraphQL cannot add product with customizable option to cart
#37599
---
vendor/magento/module-quote/Model/Quote.php | 2 ++
1 file changed, 2 insertions(+)
@0x15f
0x15f / readme.md
Last active November 7, 2024 02:46
Bundled section rendering

Usage

import { prefetchSection, loadSection } from "./section-rendering";

// hover / mouseover
function variantHover(newVariantId: number) {
  prefetchSection("product-form", `/products/current-product`, newVariantId);
}
@0x15f
0x15f / readme.md
Last active September 20, 2024 15:04
Batching updates with View Transition API

Usage

import { enqueueTransition } from './transition'


// fetch or something getting external content
const myHtmlString = '<section>...</section>'
const range = document.createRange();
const documentFragment = range.createContextualFragment(myHtmlString);