sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| #!/bin/bash | |
| # Laravel Sail Application Quick Setup Script | |
| set -e # Exit on any error | |
| echo "🚀 Starting Laravel (Sail) Application Setup..." | |
| # Colors for output | |
| RED='\033[0;31m' |
| import { Resource, convertFilter, convertParam, getModelByName } from '@adminjs/prisma' | |
| import type { Filter } from 'adminjs' | |
| import { BaseRecord, flat } from 'adminjs' | |
| import { getPrismaClient, getPrismaClientAdminjs } from '../../prisma/util.js' | |
| import type { int } from 'aws-sdk/clients/datapipeline.js' | |
| import { DMMF } from '@prisma/client/runtime/library.js'; | |
| /* | |
| Our schema is: | |
| Booking: | |
| id: int |
| { | |
| "name": "packages", | |
| "version": "1.0.0", | |
| "main": "index.js", | |
| "license": "MIT", | |
| "private": true, | |
| "scripts": { | |
| "start": "concurrently \"wsrun --parallel start\"" | |
| }, | |
| "workspaces": [ |
| # windows bash | |
| eval "$(oh-my-posh init bash --config ${POSH_THEMES_PATH}/uew.omp.json)" | |
| # macos zsh | |
| eval "$(oh-my-posh init zsh --config $(brew --prefix oh-my-posh)/themes/uew.omp.json)" |
| html, | |
| body, | |
| div, | |
| span, | |
| applet, | |
| object, | |
| iframe, | |
| h1, | |
| h2, | |
| h3, |
| @echo off | |
| echo Virtualization must be disabled to use anti-cheat clients like FACEIT and ESEA | |
| echo. | |
| net session >nul 2>&1 | |
| if %ERRORLEVEL% EQU 0 goto :chchchchoices | |
| echo This script requires elevated privileges. Re-run as Administrator to continue | |
| goto :exit | |
| :chchchchoices |
| const nested = [1, 2, [3, 4, [5, 6, [7, 8, [9, 10]]]]]; | |
| const flatten = nested.flat(Infinity); | |
| // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
| const result = flatten.join(", "); | |
| // "1, 2, 3, 4, 5, 6, 7, 8, 9, 10" |