Skip to content

Instantly share code, notes, and snippets.

View thinkstylestudio's full-sized avatar

Theron Smith thinkstylestudio

View GitHub Profile

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@thinkstylestudio
thinkstylestudio / README.md
Created February 22, 2025 04:03 — forked from michaelsieminski/AppServiceProvider.php
Modern PHP Tooling

Modern PHP Tooling

This is my personal collection of modern PHP Tooling that I setup for all of my Laravel projects.

Linting

  1. Pint - Formatting
  1. PeckPHP - Fix Typos
<?php
$dir = 'tests/Feature';
$files = scandir($dir);
$routeNames = [];
foreach ($files as $file) {
if ($file === '.' || $file === '..') {
continue;
}
@thinkstylestudio
thinkstylestudio / Person.php
Created March 15, 2024 19:27
Example of watcher
<?php
//dilo surucu
#[AllowDynamicProperties]
/**
* @property string $name
*/
class Person
# This file contains common pin mappings for the BIGTREETECH SKR mini
# E3 v2.0. To use this config, the firmware should be compiled for the
# STM32F103 with a "28KiB bootloader". Also, select "Enable extra
# low-level configuration options" and configure "GPIO pins to set at
# micro-controller startup" to "!PA14".
# The "make flash" command does not work on the SKR mini E3. Instead,
# after running "make", copy the generated "out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the SKR
# mini E3 with that SD card.
@thinkstylestudio
thinkstylestudio / CreateModel.sh
Created February 27, 2020 23:47
Create and scaffold laravel Model and stuff
function artmodel() {
art make:model Models\\$1\\$2
art make:controller --resource --api --model=Models\\$1\\$2 $1\\$(plur $2)Controller
art make:factory --model=Models\\$1\\$2 $(plur $2)Factory
art make:seed $(plur $2)Seeder
art make:policy --model=Models\\$1\\$2 $1\\$2Policy
art make:resource $1\\$2Resource
art make:resource --collection $1\\$(plur $2)Collection
art make:request $1\\Create$2Request
art make:request $1\\Update$2Request
@thinkstylestudio
thinkstylestudio / massInsertOrUpdate.php
Created January 14, 2020 23:07 — forked from RuGa/massInsertOrUpdate.php
Mass (bulk) insert or update on duplicate for Laravel 4/5
/**
* Mass (bulk) insert or update on duplicate for Laravel 4/5
*
* insertOrUpdate([
* ['id'=>1,'value'=>10],
* ['id'=>2,'value'=>60]
* ]);
*
*
* @param array $rows
@thinkstylestudio
thinkstylestudio / gist:53f30a12cb78116c7dedfb519fdfd346
Created May 7, 2019 05:01 — forked from stevegrunwell/gist:11c3e9d370127fa97898
Bulk-upgrade WordPress plugins using WP-CLI, committing each upgrade to Git as we go
#! /bin/bash
# Find available updates for WordPress plugins via WP-CLI, then upgrade theme one at a time.
# After each upgrade, commit the changed files to Git.
#
# Requires that WP-CLI be installed and in your path: http://wp-cli.org/
#
# Currently, it will only work when run from the root of the WordPress installation, and has
# a hard-coded path for wp-content/plugins.
#
@thinkstylestudio
thinkstylestudio / tip.sh
Created July 18, 2018 06:07 — forked from JeffreyWay/tip.sh
Ever want to undo everything that you've worked on since the last commit (including adding new files)? Here's a little alias to help with that.
alias gundo='git reset HEAD~ && git clean -df'
@thinkstylestudio
thinkstylestudio / routes.sh
Created July 18, 2018 06:02 — forked from JeffreyWay/routes.sh
Add this to your ~/.bashrc file (or anywhere related) to give yourself an easy way to view the routes in your Laravel app, or filter the results down to a particular search query.
function routes()
{
if [ $# -eq 0 ]; then
php artisan route:list
else
php artisan route:list | grep ${1}
fi
}