search-docsbefore relying on version-specific ecosystem APIs. Passpackages; use several broad queries; don't put package names in queries.database-schemato inspect tables before writing migrations or models.database-queryfor read-only queries instead of tinker.application-infofor PHP/Laravel/package versions instead of reading composer files.browser-logsfor frontend errors (recent entries only).get-absolute-urlbefore giving the user a URL.
This file contains hidden or 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 | |
| $finder = Symfony\Component\Finder\Finder::create() | |
| ->notPath('bootstrap') | |
| ->notPath('node_modules') | |
| ->notPath('storage') | |
| ->notPath('vendor') | |
| ->in(__DIR__) | |
| ->name('*.php') | |
| ->notName('*.blade.php'); |
This file contains hidden or 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
| megapint() { | |
| PINT=$([ -f "vendor/bin/pint" ] && echo "vendor/bin/pint" || echo "pint") | |
| "$PINT" --preset laravel $@ | |
| } |
This guide will explain how to add server-side rendering (SSR) to an existing React Inertia application.
Note, if you're using the Ziggy library, you're going to run into issues with SSR. While it is technically possible to use Ziggy in SSR, it requires a bunch of extra configuration, which this guide won't cover.
Upgrade to the latest version of Inertia (version 0.9.0 or newer):
This file contains hidden or 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
| #!/usr/bin/env zx | |
| const fs = require('fs') | |
| async function getCurrentVersion() { | |
| let version; | |
| try { | |
| version = await $`/Applications/Chromium.app/Contents/MacOS/Chromium --version` | |
| } catch (e) { |
This file contains hidden or 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
| module.exports = { | |
| extends: ['eslint:recommended', 'plugin:vue/recommended'], | |
| parserOptions: { | |
| ecmaVersion: 2020, | |
| sourceType: 'module', | |
| }, | |
| env: { | |
| amd: true, | |
| browser: true, | |
| es6: true, |
This file contains hidden or 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
| query ($owner: String!, $after: String) { | |
| user (login: $owner) { | |
| sponsorshipsAsMaintainer(first: 100, after: $after, includePrivate: true) { | |
| totalCount | |
| nodes { | |
| sponsorEntity { | |
| ... on User { | |
| login | |
| } | |
| } |
This file contains hidden or 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
| <toolSet name="External Tools"> | |
| <tool name="PHP CS Fixer" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="false" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true"> | |
| <exec> | |
| <option name="COMMAND" value="/Users/claudiodekker/.composer/vendor/friendsofphp/php-cs-fixer/php-cs-fixer" /> | |
| <option name="PARAMETERS" value="--verbose fix $FilePath$" /> | |
| <option name="WORKING_DIRECTORY" value="$ProjectFileDir$" /> | |
| </exec> | |
| </tool> | |
| </toolSet> |
This file contains hidden or 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
| #!/bin/bash | |
| v2gif() { | |
| # Based on https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/ | |
| ffmpeg="" | |
| filter="" | |
| palettegen="palettegen" | |
| paletteuse="paletteuse" | |
| while getopts "w:f:is:t:" opt; do |
I hereby claim:
- I am claudiodekker on github.
- I am claudiodekker (https://keybase.io/claudiodekker) on keybase.
- I have a public key ASAB8_E1VCkbFUMNPLgdKz2-uEDn6bC5MUJ5XE_1tVM2Qgo
To claim this, I am signing this object: