git worktree add --detach <worktree-path> <branch-name>
git worktree add --detach <worktree-path> <remote-name>/<branch-name>
git worktree add --detach
| FROM php:8.1-apache | |
| RUN apt-get update && apt-get install -y git \ | |
| libpng-dev \ | |
| zlib1g-dev \ | |
| libwebp-dev \ | |
| libjpeg62-turbo-dev \ | |
| libpng-dev libxpm-dev \ | |
| libfreetype6-dev | |
| RUN docker-php-ext-configure gd \ |
| RewriteEngine on | |
| # Disable Directory listing | |
| Options -Indexes | |
| # Redirect Trailing Slashes If Not A Folder... | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_URI} (.+)/$ | |
| RewriteRule ^ %1 [L,R=301] |
| SET @target_table = '`klame_new`.`url`'; | |
| SET @source_table = '`klame_url`.`url`'; | |
| SELECT GROUP_CONCAT(column_name) | |
| FROM INFORMATION_SCHEMA.COLUMNS a | |
| WHERE a.TABLE_NAME = 'url' | |
| AND a.TABLE_SCHEMA = 'klame_url' | |
| AND a.COLUMN_NAME IN ( | |
| SELECT b.COLUMN_NAME | |
| FROM INFORMATION_SCHEMA.COLUMNS b |
| function fallbackCopyTextToClipboard(text) { | |
| var textArea = document.createElement("textarea"); | |
| textArea.value = text; | |
| // Avoid scrolling to bottom | |
| textArea.style.top = "0"; | |
| textArea.style.left = "0"; | |
| textArea.style.position = "fixed"; | |
| document.body.appendChild(textArea); |
| import { defineConfig } from 'vite'; | |
| import laravel from 'laravel-vite-plugin'; | |
| export default defineConfig({ | |
| server: { | |
| https: { | |
| key: "/opt/homebrew/etc/httpd/certs/syanat-app.test-key.pem", | |
| cert: "/opt/homebrew/etc/httpd/certs/syanat-app.test.pem", | |
| }, | |
| host: 'syanat-app.test', |
| export function decode(querystring: string): object { | |
| function parseValue(value: string): any { | |
| if (value === 'TRUE') return true; | |
| if (value === 'FALSE') return false; | |
| return isNaN(Number(value)) ? value : Number(value); | |
| } | |
| function dec(list: any[], isArray = false): object { | |
| let obj: any = isArray ? [] : {}; |
| # Node Js | |
| curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - | |
| sudo yum install nodejs | |
| node --version | |
| npm --version | |
| # Redis |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Facades\Blade; | |
| use Illuminate\Support\ServiceProvider; | |
| class JsTranslationsServiceProvider extends ServiceProvider | |
| { | |
| public function register(): void |
| FROM node:lts-alpine3.18 | |
| WORKDIR /app | |
| COPY package.json . | |
| RUN yarn | |
| COPY . . | |
| RUN yarn build | |
| EXPOSE 3000 | |
| CMD [ "yarn", "start:prod" ] |