Skip to content

Instantly share code, notes, and snippets.

View jarrettbarnett's full-sized avatar

Jarrett Barnett jarrettbarnett

  • Boston, MA
View GitHub Profile
@TimBHowe
TimBHowe / functions.php
Created March 8, 2016 17:54
Forcibly remove the tax line item and calculation from the cart. (suggest just using the GEO setting in WooCommerce)
<?php
// Remove the Tax Line item from the cart.
function wc_remove_cart_tax_totals( $tax_totals, $instance ) {
if( is_cart() ) {
$tax_totals = array();
}
return $tax_totals;
}
@yugaego
yugaego / install.md
Last active June 13, 2019 18:34
Mac OS 10.13 High Sierra Install PHP 7.0 Apache MariaDB With Homebrew
@jasonmccreary
jasonmccreary / .php_cs.laravel.php
Created August 9, 2019 14:18 — forked from laravel-shift/.php-cs-fixer.php
PHP CS Fixer - Laravel Ruleset
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$rules = [
'binary_operator_spaces' => [
'operators' => ['=>' => null]
],
'blank_line_after_namespace' => true,
@messi89
messi89 / PassportToken.php
Last active December 16, 2024 18:31
Laravel Passport getBearerTokenByUser (Get AccessToken from User) - Laravel 6.x updated
<?php
namespace App\Traits;
use DateTimeImmutable;
use Laravel\Passport\Bridge\Scope;
use Modules\User\Models\User;
use GuzzleHttp\Psr7\Response;
use Illuminate\Events\Dispatcher;
use Laravel\Passport\Bridge\AccessToken;
@armorasha
armorasha / config.php_cs
Last active March 26, 2021 14:42
Your "php-cs-fixer.config": ".php_cs;.php_cs.dist" file. Just download this file and use it. I prefer to keep the file name config.php_cs
<?php
return PhpCsFixer\Config::create()
->setRules(array(
'@PSR2' => true,
'indentation_type' => true,
// for indentation to work: 1 of 2. Works!
'array_indentation' => true,
@ipenywis
ipenywis / cursor-memory-bank-rules.md
Last active July 16, 2025 00:36
Cursor Memory Bank

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD