Skip to content

Instantly share code, notes, and snippets.

View joecampo's full-sized avatar
🌔

Joe Campo joecampo

🌔
View GitHub Profile
@joecampo
joecampo / SwapOctaneServer.php
Created December 2, 2022 22:33 — forked from pascalbaljet/SwapOctaneServer.php
Blue-green deployment with Laravel Octane
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Console\Concerns\CallsCommands;
use Illuminate\Support\Facades\Http;
use Laravel\Forge\Forge;
use Laravel\Forge\Resources\Daemon;
@joecampo
joecampo / gist:a94bac3cd40ae131d6f037ea208ac612
Created June 24, 2022 00:25 — forked from knu/gist:111055
How to mass-rename tags and push them with Git
# Rename tags named foo-bar-#.#.# to v#.#.# and push the tag changes
git tag -l | while read t; do n="v${t##*-}"; git tag $n $t; git push --tags ; git tag -d $t; git push origin :refs/tags/$t ; done
@joecampo
joecampo / tsconfig.json
Created August 12, 2021 18:16 — forked from thecrypticace/tsconfig.json
Laravel Mix config for Vue 3 compat build
// If you're using typescript or ts-check you can alias the composition api package as well:
{
"compilerOptions": {
// … other stuff omitted for brevity …
// Ensure your base url is set
"baseUrl": ".",
"paths": {
// Add composition API to your compiler options and alias it to the vue 3 install
// The path is relative to `baseUrl` above