Skip to content

Instantly share code, notes, and snippets.

View joshuafredrickson's full-sized avatar
🍊
Orange pineapple

Joshua Fredrickson joshuafredrickson

🍊
Orange pineapple
View GitHub Profile
@edmeehan
edmeehan / htmlToJSON.js
Last active June 22, 2025 16:15
Node HTML string to Richtext JSON object - Shopify Metafield
import {JSDOM} from 'jsdom'; // npm i jsdom
function htmlToObj(htmlString) {
const newString = htmlString.replace('<br />','\n')
// string hacks for edge cases
// .replace('<small>','')
// .replace('</small>','')
// .replace('<b>','<strong>')
// .replace('</b>','</strong>');
const dom = new JSDOM(newString);
@Log1x
Log1x / PostSearch.php
Last active October 13, 2024 11:58
Post Search component example using Acorn v4 and Livewire 3
<?php
namespace App\Livewire;
use Livewire\Attributes\Url;
use Livewire\Component;
use WP_Query;
class PostSearch extends Component
{
@Log1x
Log1x / README.md
Last active December 2, 2024 16:14
Envoyer Hooks for Bedrock+Sage w/ RunCloud

Envoyer Hooks for Bedrock+Sage w/ RunCloud

This is a simple breakdown of how I deploy Bedrock+Sage using RunCloud and Envoyer.

Hooks

Install Theme Dependencies

cd {{ release }}/web/app/themes/sage
@Log1x
Log1x / phpmailer-smtp.php
Created March 11, 2022 16:03
Simple PHPMailer SMTP mu-plugin
<?php
use function Env\env;
/**
* Plugin Name: PHPMailer SMTP
* Plugin URI: https://roots.io/bedrock/
* Description: Simple PHPMailer SMTP configuration for Bedrock.
* Version: 1.0.0
* Author: Roots
@cfaria
cfaria / ThemeServiceProvider.php
Last active February 2, 2024 20:44
Prevent E_NOTICE, E_WARNING, E_DEPRECATED errors WSOD in Sage 10
<?php
namespace App\Providers;
use Roots\Acorn\ServiceProvider;
class ThemeServiceProvider extends ServiceProvider
{
/**
* Register any application services.
@mrwweb
mrwweb / readme.md
Last active September 27, 2024 22:29
The Events Calendar v2 Template Reset & Customizations - Now on Github
<?php
namespace App\Providers;
use Roots\Acorn\ServiceProvider;
use Illuminate\Support\Str;
use function Roots\view;
class WooCommerceServiceProvider extends ServiceProvider
@ibraheem4
ibraheem4 / postgres-brew.md
Last active April 19, 2025 14:27 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@valeryan
valeryan / WindowsSetup.md
Last active May 4, 2021 09:25
Local WSL Setup

Deprecated in favor of Valet Wiki Page

I set up the wiki page for the valet-wsl project and moved the install guide there. This way it can have user contributions. Please have all disscussions or issues under the valet-wsl project so I can be aware of it. Please go to Valet Wsl Installation Guide