How to use:
./wordle.sh
Or try the unlimit mode:
| /** | |
| * Unfortunately I didn't find a way to add it directly to createInertiaApp so | |
| * currently I'm placing it in my BaseLayout which is called on any route anyway | |
| */ | |
| import React from 'react'; | |
| import { ModalProvider } from '../components/momentum-modal/ModalContext'; | |
| const BaseLayout: React.FC = ({ children }) => { | |
| /* Wrap your children with the provider */ | |
| return <ModalProvider resolve={(name) => import(`../pages/${name}`)}>{children}</ModalProvider>; |
| # Add to your .env.example and .env files | |
| CSP_ENABLED=true | |
| CSP_REPORT_ONLY=true |
| <?php | |
| # app/Http/Controllers/CaddyController.php | |
| namespace App\Http\Controllers; | |
| use App\Store; | |
| use Illuminate\Http\Request; | |
| class CaddyController extends Controller | |
| { |
| const plugin = require("tailwindcss/plugin"); | |
| module.exports = { | |
| mode: "jit", | |
| purge: { | |
| content: ["./src/**/*.{js,ts,jsx,tsx,mdx,vue}"], | |
| }, | |
| theme: { extend: {} }, | |
| variants: {}, | |
| plugins: [ |
| {{-- You do not need to add this component if you are using the permanent option in the head component --}} | |
| <script> | |
| if (!window.sessionTimerPermanent && window.Livewire) { | |
| window.livewire.hook('afterDomUpdate', startSessionTimer) | |
| } | |
| // if you are on livewire > 1.3.1 and want to avoid the default error alert | |
| // https://github.com/livewire/livewire/pull/1146 | |
| window.livewire.onError(statusCode => { | |
| if (statusCode === 419) { |
| <?php | |
| use PhpCsFixer\Config; | |
| use PhpCsFixer\Finder; | |
| $rules = [ | |
| 'array_indentation' => true, | |
| 'array_syntax' => ['syntax' => 'short'], | |
| 'binary_operator_spaces' => [ | |
| 'default' => 'single_space', |
| /** | |
| * First we will load all of this project's JavaScript dependencies which | |
| * includes Vue and other libraries. It is a great starting point when | |
| * building robust, powerful web applications using Vue and Laravel. | |
| */ | |
| require('./bootstrap'); | |
| window.Vue = require('vue'); |
| #run as root | |
| apt-get install golang-go -yqq | |
| mkdir gocode | |
| export GOPATH=$HOME/gocode | |
| go get github.com/mailhog/MailHog | |
| go get github.com/mailhog/mhsendmail | |
| cp /root/gocode/bin/MailHog /usr/local/bin/mailhog | |
| cp /root/gocode/bin/mhsendmail /usr/local/bin/mhsendmail |
| tail -f -n 450 storage/logs/laravel*.log \ | |
| | grep -i -E \ | |
| "^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:" \ | |
| --color |