Skip to content

Instantly share code, notes, and snippets.

@ahosker
ahosker / opencode-env-protection-plugin.md
Last active October 21, 2025 08:44
OpenCode Plugins: Terminal Bell

.env Protection

A simple OpenCode Plugin to block access to .env files.

How to Install?

On Linux, save env-protection.ts to ~/.config/opencode/plugin/env-protection.ts.

env-protection.ts

import type { Plugin } from "@opencode-ai/plugin"
@ahosker
ahosker / action.stub
Last active September 3, 2025 22:23
Laravel Boost Guidelines for Laravel Actions
<?php
namespace {{ namespace }};
use App\Http\Requests\Store{{ class }}Request;
use Illuminate\Console\Command;
use Lorisleiva\Actions\Concerns\AsAction;
use Lorisleiva\Actions\Concerns\WithAttributes;
@ahosker
ahosker / RevolutGet.php
Created April 29, 2021 18:20
Laravel verraest/revolut-php console implementation
<?php
namespace App\Console\Commands;
// This is an example Laravel Command
// Just scaffolding for use of:
// https://github.com/sverraest/revolut-php
//include RevolutPHP with composer
//Create this command.