# PHP
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php &&
sudo apt install php8.3-common \
php-json \
mysql-client \
mysql-server \
php8.3-mysql \
php8.3-xml \
# Required library
sudo apt-get install libasound2t64
# Download installer
wget https://app.warp.dev/download?package=deb -O warp.deb
# Install warp
sudo apt install -y ./warp.deb
# or use `sudo dpkg -i warp.deb`
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
import { spawn } from "node:child_process"; | |
import { fileURLToPath } from "node:url"; | |
import path from "node:path"; | |
const __filename = fileURLToPath(import.meta.url); | |
const __dirname = path.dirname(__filename); | |
function startLaravelServer(config = {}) { | |
const { | |
host = "127.0.0.1", |
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 | |
$endPoint = 'https://api.github.com/graphql'; | |
$query = <<<'GRAPHQL' | |
query getUsers { | |
user { | |
id | |
name | |
} |
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
{ | |
"editor.fontFamily": "'Fira Code', 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
"editor.fontSize": 16, | |
"editor.lineHeight": 34, | |
"editor.autoClosingBrackets": "always", | |
"editor.inlineSuggest.enabled": true, | |
"editor.cursorBlinking": "expand", | |
"editor.formatOnSave": true, | |
"editor.codeActionsOnSave": { |
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
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false |
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
import "./bootstrap"; | |
import "../css/app.css"; | |
import { createApp, h } from "vue"; | |
import { createInertiaApp, Link, Head } from "@inertiajs/inertia-vue3"; | |
import { InertiaProgress } from "@inertiajs/progress"; | |
import { resolvePageComponent } from "laravel-vite-plugin/inertia-helpers"; | |
import { ZiggyVue } from "../../vendor/tightenco/ziggy/dist/vue.m"; | |
import DashboardLayout from "@/Layout/DashboardLayout.vue"; |
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
git init | |
//. para upar tudo | |
git add . | |
// ver aquivos modificados | |
git status | |
// Fazer o comit e colocar o nome | |
git commit -m "" |
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
wsl --shutdown // shutdown wsl | |
wsl -l // list all distros | |
wslconfig /unregister ubuntu // remove every distro, because for me none of them worked anymore | |
wsl --install --distribution Ubuntu // reinstall Ubuntu |
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
export default defineConfig({ | |
plugins: [ | |
laravel({ | |
input: 'resources/js/app.js', | |
refresh: true, | |
}), | |
vue({ | |
template: { | |
transformAssetUrls: { | |
base: null, |
NewerOlder