This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Pizza Dough Calculator</title> | |
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> | |
<!-- Print-only styles --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>API Request Builder</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.13.5/cdn.min.js" defer></script> | |
<script src="https://unpkg.com/@tailwindcss/browser@4"></script> | |
</head> | |
<body class="bg-gray-100 min-h-screen p-4"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>JSON Path Explorer</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.13.5/cdn.min.js" defer></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js"></script> | |
<script src="https://unpkg.com/@tailwindcss/browser@4"></script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Save this as a bookmark in your browser for the next time you want to fill in the page form! | |
javascript:(function() { | |
const fillValues = { | |
// Paste the object in here from the previous command | |
} | |
function fillField(element, value) { | |
if (!element) return; | |
// Handle different input types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\File; | |
use Illuminate\Support\Str; | |
use ReflectionClass; | |
use ReflectionMethod; | |
use Symfony\Component\Finder\Finder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function customConsoleTable(data) { | |
// Handle GroupBy results by flattening them appropriately | |
function flattenGroupBy(groupedData) { | |
if (!groupedData || typeof groupedData !== 'object') return groupedData; | |
// Check if this looks like a GroupBy result | |
const isGroupByResult = Object.values(groupedData).every(Array.isArray); | |
if (!isGroupByResult) return groupedData; | |
// Flatten the grouped structure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- So you have an existing WP website with a prefix you need to change | |
-- We will need to do more than just updating the wp-config.php prefix. | |
-- There are row data that reference table names we'll need to update | |
-- Assuming we're already using the wp_ prefix and for example want to | |
-- change to xyzwp_ we'll need to update the data within the tables | |
-- Update user meta references | |
UPDATE wp__usermeta | |
SET meta_key = REPLACE(meta_key, 'wp_', 'xyzwp_') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class WP_Geekybeaver_Theme_Settings | |
* | |
* Configure the plugin settings page. | |
*/ | |
class WP_Geekybeaver_Theme_Settings | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"post-install-cmd": [ | |
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"", | |
"@php -r \"if (strlen(trim(file_get_contents('.env'))) > 0 && !preg_match('/^APP_KEY=.+/m', file_get_contents('.env'))) { echo shell_exec('php artisan key:generate --ansi'); }\"", | |
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"" | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWS_ACCESS_KEY_ID=sail | |
AWS_SECRET_ACCESS_KEY=password | |
AWS_DEFAULT_REGION=us-east-1 | |
AWS_BUCKET=local | |
AWS_ENDPOINT=http://minio:9000 | |
AWS_USE_PATH_STYLE_ENDPOINT=true |
NewerOlder