Skip to content

Instantly share code, notes, and snippets.

View ejntaylor's full-sized avatar
🚢
Shipping

Elliot ejntaylor

🚢
Shipping
View GitHub Profile
@ejntaylor
ejntaylor / SignAwsRequest.php
Last active December 5, 2023 12:17
Middleware to sign lambda requests
<?php
namespace App\Http\Integrations\Middleware;
use Aws\Credentials\CredentialProvider;
use Aws\Credentials\CredentialsInterface;
use Aws\Signature\SignatureV4;
use Saloon\Contracts\RequestMiddleware;
use Saloon\Http\PendingRequest;

Keybase proof

I hereby claim:

  • I am ejntaylor on github.
  • I am ejntaylor (https://keybase.io/ejntaylor) on keybase.
  • I have a public key ASDgnZFtjzuxhtH9z5DmsDWk-Sk-w3ceHLX4PEVqr0Axswo

To claim this, I am signing this object:

@ejntaylor
ejntaylor / dependabot.yml
Created July 26, 2021 08:28
Example Dependabot yml file
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"

Keybase proof

I hereby claim:

  • I am raisonon on github.
  • I am ejntaylor (https://keybase.io/ejntaylor) on keybase.
  • I have a public key ASAu6CghDrDJ7IuwViXTe6GRoqpNRtqzchn1IOIvdF1rkAo

To claim this, I am signing this object:

@ejntaylor
ejntaylor / web.php
Created June 26, 2020 12:04
Statamic Nova Test 2
<?php
// Auth
Auth::routes();
// Statamic
Route::name('statamic.')->group(function () {
/**
* Glide
@ejntaylor
ejntaylor / web.php
Created June 24, 2020 13:22
Statamic and Nova route example problem
<?php
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
use Statamic\Facades\OAuth;
use Statamic\Statamic;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use VictorYoalli\LaravelCodeGenerator\Facades\CodeGenerator;
use VictorYoalli\LaravelCodeGenerator\Facades\CodeHelper;
use VictorYoalli\LaravelCodeGenerator\Facades\ModelLoader;
function printif($type, $filename, $msg = '✖ Not generated ')

Keybase proof

I hereby claim:

  • I am raisonon on github.
  • I am ejntaylor (https://keybase.io/ejntaylor) on keybase.
  • I have a public key ASAzxgSxZCJiGVOAnZsjnXcbOPso3bK3SjpWLcNt9Ljegwo

To claim this, I am signing this object:

@ejntaylor
ejntaylor / functions.php
Created December 2, 2017 12:15
Rename cart to bag
<?php
function woo_custom_change_cart_string($translated_text, $text, $domain) {
$translated_text = str_replace("cart", "bag", $translated_text);
$translated_text = str_replace("Cart", "Bag", $translated_text);
$translated_text = str_replace("View Cart", "View Bag", $translated_text);
<?php
function ss_settings_form( $atts = array() ) {
global $post;
// var_dump($atts);
/**
* Depending on your setup, check if the user has permissions to edit_posts