sysctl -w vm.swappiness=1
echo "vm.swappiness = 1" | sudo tee -a /etc/sysctl.conf
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
// https://aka.ms/devcontainer.json | |
{ | |
"name": "Existing Docker Compose (Extend)", | |
"dockerComposeFile": [ | |
"../docker-compose.yml" | |
], | |
"service": "laravel.test", | |
"workspaceFolder": "/var/www/html", | |
"customizations": { | |
"vscode": { |
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 | |
use Illuminate\Foundation\Application; | |
use Illuminate\Foundation\Configuration\Exceptions; | |
use Illuminate\Foundation\Configuration\Middleware; | |
use App\Http\Middleware\HandleInertiaRequests; | |
return Application::configure(basePath: dirname(__DIR__)) | |
->withRouting( | |
web: __DIR__.'/../routes/web.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
<!DOCTYPE html> | |
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title inertia>{{ config('app.name', 'Laravel') }}</title> | |
<!-- Fonts --> | |
<link rel="preconnect" href="https://fonts.bunny.net"> |
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 | |
declare(strict_types=1); | |
namespace App\Traits\Components; | |
trait Enums | |
{ | |
/** | |
* @return array |
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 | |
// This file is part of Moodle - http://moodle.org/ | |
// | |
// Moodle is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// | |
// Moodle is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
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] | |
;;;;;;;;;;;;;;;;;;;; | |
; Language Options ; | |
;;;;;;;;;;;;;;;;;;;; | |
engine = On | |
short_open_tag = Off | |
precision = 14 | |
output_buffering = 4096 |
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 | |
defined( '\\ABSPATH' ) || exit; | |
// phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact, Generic.WhiteSpace.ScopeIndent.Incorrect | |
if ( ! defined( 'WP_REDIS_DISABLED' ) || ! WP_REDIS_DISABLED ) : | |
/** | |
* Determines whether the object cache implementation supports a particular feature. |
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
version: '2' | |
services: | |
mariadb: | |
container_name: ${NAME}-database | |
image: mariadb:10.6 | |
environment: | |
- ALLOW_EMPTY_PASSWORD=yes | |
- MARIADB_USER=moodle_user | |
- MARIADB_DATABASE=moodle | |
- MARIADB_CHARACTER_SET=utf8mb4 |
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
{ | |
"customizeUI.stylesheet": { | |
".decorationsOverviewRuler": "display: none;", | |
".editor-group-container .title *": "display: none;", | |
".editor-group-container .title": "pointer-events: none;", | |
".editor-group-container.empty": "-webkit-app-region: drag;", | |
".monaco-editor .scroll-decoration": "box-shadow: none;" | |
}, | |
"customizeUI.titleBar": "inline", | |
"debug.console.fontFamily": "JetBrains Mono", |
NewerOlder