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
@Log1x
Log1x / PostSearch.php
Last active April 13, 2024 18:20
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 January 10, 2024 17:30
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 May 18, 2023 18:57
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 May 1, 2024 09:43 — 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

@jaredatch
jaredatch / functions.php
Created March 1, 2017 16:59
WPForms conditional form redirects
<?php
/**
* WPForms custom redirect
*
* @param string $url URL form will redirect to
* @param int $form_id Form ID
* @param array $fields Submitted form fields
* @return string
*/
function wpf_custom_redirect( $url, $form_id, $fields ) {