New pages
From AWVVO
Jump to navigationJump to search
7 April 2025
- 06:2606:26, 7 April 2025 Laravel Apache (hist | edit) [1,072 bytes] Admin (talk | contribs) (Created page with "== Install Apache2 == <syntaxhighlight lang="bash" line highlight="" copy> sudo apt install apache2 sudo systemctl start apache2 sudo systemctl enable apache2 sudo systemctl status apache2 </syntaxhighlight>")
5 April 2025
- 13:3813:38, 5 April 2025 Laravel - mongodb (hist | edit) [2,084 bytes] Admin (talk | contribs) (Created page with "== Install mongodb dependency == <syntaxhighlight lang="bash" copy line highlight="0"> composer require mongodb/laravel-mongodb </syntaxhighlight> == Settings in .env == <syntaxhighlight lang="yaml" copy line highlight="0"> MONGODB_URI="mongodb+srv://..." MONGODB_DATABASE="demo" DB_CONNECTION=mongodb </syntaxhighlight>")
29 March 2025
- 18:4418:44, 29 March 2025 PHP configuration (hist | edit) [132 bytes] Admin (talk | contribs) (Created page with "== Turn of X-Powered-BY header == <syntaxhighlight lang="ini" copy line highlight="0"> # php.ini expose_php = Off </syntaxhighlight>aText Premium")
- 18:3218:32, 29 March 2025 Httpie (hist | edit) [559 bytes] Admin (talk | contribs) (Created page with "== Installation == <syntaxhighlight lang="bash" copy line highlight="0"> curl -SsL https://packages.httpie.io/deb/KEY.gpg | sudo gpg --dearmor -o /usr/share/keyrings/httpie.gpg echo "deb [arch=amd64 signed-by=/usr/share/keyrings/httpie.gpg] https://packages.httpie.io/deb ./" | sudo tee /etc/apt/sources.list.d/httpie.list > /dev/null sudo apt update sudo apt install httpie </syntaxhighlight>")
- 16:3816:38, 29 March 2025 Laravel logger (hist | edit) [1,278 bytes] Admin (talk | contribs) (Created page with "== Custom logger == <syntaxhighlight lang="php" copy line highlight="0"> <?php namespace App\Util; use Illuminate\Support\Facades\Log; class Logger { public static function info(...$args): void { $trace = collect(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)) ->first(fn ($t) => isset($t['file']) && str_contains($t['file'], base_path('app'))); $location = $trace ? basename($trace['file']) . ':' . ($trace['line'] ?? '') ....")
- 16:1616:16, 29 March 2025 Laravel middleware (hist | edit) [1,777 bytes] Admin (talk | contribs) (Created page with "== Create middleware == <syntaxhighlight lang="php" copy line highlight="0"> php artisan make:middleware EnsureTokenIsValid </syntaxhighlight> == Middleware == <syntaxhighlight lang="php" copy line highlight="0"> <?php namespace App\Http\Middleware; use Closure; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; use Symfony\Component\HttpFoundation\Response; class EnsureTokenIsValid { /** * Handle an incoming request. * * @param \Clo...")
- 12:2812:28, 29 March 2025 Laravel nginx (hist | edit) [1,260 bytes] Admin (talk | contribs) (Created page with "== Create config file == <syntaxhighlight lang="php" copy line highlight="0"> </syntaxhighlight>")
- 11:2611:26, 29 March 2025 Laravel web.php (hist | edit) [220 bytes] Admin (talk | contribs) (Created page with "== web.php == <syntaxhighlight lang="php" copy line highlight="0"> <?php use Illuminate\Support\Facades\Route; use App\Http\Controllers\IndexController; Route::resource('/', IndexController::class); </syntaxhighlight>")
- 10:2210:22, 29 March 2025 Laravel template (hist | edit) [463 bytes] Admin (talk | contribs) (Created page with "== Generate app key == <syntaxhighlight lang="bash" copy line highlight="0"> php artisan key:generate </syntaxhighlight> == Set database settings == <syntaxhighlight lang="php" copy line highlight="0"> DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=mydb DB_USERNAME=root DB_PASSWORD= </syntaxhighlight> == Set rotating log files == <syntaxhighlight lang="ini" copy line highlight="0"> # .env LOG_CHANNEL=daily LOG_DAILY_DAYS=1 </syntaxhighlight>")
24 March 2025
- 15:3815:38, 24 March 2025 Linux development (hist | edit) [366 bytes] Admin (talk | contribs) (Created page with "Development installation script")
- 14:5914:59, 24 March 2025 Multipass (hist | edit) [2,578 bytes] Admin (talk | contribs) (Created page with "Multipass is a lightweight VM manager developed by Canonical that lets you easily run Ubuntu instances on macOS, Windows, and Linux, ideal for development and testing. Example to launch Ubuntu 24.04 LTS with 1 CPU and 2GB memory: == Launch an instance == <syntaxhighlight lang="php" copy line highlight="0"> multipass launch 24.04 --name ubuntu24 --cpus 1 --mem 2G </syntaxhighlight>")
22 March 2025
- 08:0908:09, 22 March 2025 Serverless.com (hist | edit) [105 bytes] Admin (talk | contribs) (Created page with "== Install == <syntaxhighlight lang="php" copy line highlight="0"> npm i serverless -g </syntaxhighlight>")
16 March 2025
- 06:3406:34, 16 March 2025 ChatGPT (hist | edit) [486 bytes] Admin (talk | contribs) (Created page with "== ChatGPT API key == https://platform.openai.com/docs/overview == Javascript quickstart == <syntaxhighlight lang="javascript" copy line highlight="0"> import OpenAI from "openai"; const client = new OpenAI(); const completion = await client.chat.completions.create({ model: "gpt-4o", messages: [{ role: "user", content: "Write a one-sentence bedtime story about a unicorn.", }], }); console.log(completion.choices[0].message.content); </synta...")
11 February 2025
- 10:5510:55, 11 February 2025 Git force pull (hist | edit) [162 bytes] Admin (talk | contribs) (Created page with "== Git force pull == <syntaxhighlight lang="bash" line highlight="" copy> git fetch --all git reset --hard origin/BRANCH git pull origin BRANCH </syntaxhighlight>")
- 09:3709:37, 11 February 2025 Laravel version (hist | edit) [112 bytes] Admin (talk | contribs) (Created page with "== Show version == <syntaxhighlight lang="bash" line highlight="" copy> php artisan --version </syntaxhighlight>")
5 February 2025
- 06:5106:51, 5 February 2025 Storybook publish package (hist | edit) [2,227 bytes] Admin (talk | contribs) (Created page with "== Prepare package.json == <syntaxhighlight lang="json" highlight="1,3-11, 13,14, 16,17" line copy> { "name": "@avorsterman/vue-components", "version": "0.0.3", "description": "Reusable Vue 3 components with Vuetify", "private": false, "type": "module", "main": "dist/vue-components.umd.js", "module": "dist/vue-components.es.js", "exports": { "import": "./dist/vue-components.es.js", "require": "./dist/vue-components.umd.js" }, "files": [ "d...")
1 February 2025
- 16:4516:45, 1 February 2025 Storybook (hist | edit) [1,096 bytes] Admin (talk | contribs) (Created page with "== Add to an existing projec without Storybook == <syntaxhighlight lang="bash" copy> npx storybook@latest init </syntaxhighlight>")
- 08:2108:21, 1 February 2025 Website scanner (hist | edit) [32 bytes] Admin (talk | contribs) (Created page with "https://hostedscan.com/dashboard")
- 07:2207:22, 1 February 2025 NPM (hist | edit) [561 bytes] Admin (talk | contribs) (Created page with "== Check for outdated packages == <syntaxhighlight lang="bash" copy> npm outdated Package Current Wanted Latest Location Depended by sass-loader 13.0.0 13.3.3 16.0.4 node_modules/sass-loader fmeo tailwindcss 3.4.17 3.4.17 4.0.2 node_modules/tailwindcss fmeo vuetify 3.7.7 3.7.9 3.7.9 node_modules/vuetify fmeo </syntaxhighlight> == List outdated packages == <syntaxhighlight lang="bash" copy> ncu </syntaxhighlight>...")
- 05:1705:17, 1 February 2025 Find file (hist | edit) [467 bytes] Admin (talk | contribs) (Created page with "== Powershell == <syntaxhighlight lang="bash" copy> try { Get-ChildItem -Path "C:\" -Filter "myfile.txt" -Recurse -ErrorAction Stop } catch { } </syntaxhighlight>")
30 January 2025
- 05:2305:23, 30 January 2025 Laravel cookie (hist | edit) [1,903 bytes] Admin (talk | contribs) (Created page with "== Set Cookie == <syntaxhighlight lang="php" copy> Cookie::queue( 'name', // 1. Cookie name auth()->user()["name"], // 2. Cookie value 999999, // 3. Duration in minutes '/', // 4. Path where cookie is available null, // 5. Domain false, // 6. Secure flag (HTTPS only) false, // 7. HTTP only flag false...")
29 January 2025
- 12:3512:35, 29 January 2025 GIT (hist | edit) [1,732 bytes] Admin (talk | contribs) (Created page with "== Show current branch == <syntaxhighlight lang="bash" line highlight="" copy> @echo off for /f "delims=" %%a in ('git rev-parse --abbrev-ref HEAD') do ( set "current_branch=%%a" ) echo Current branch is: %current_branch% </syntaxhighlight> == Create new branch == <syntaxhighlight lang="bash" line highlight="" copy> git checkout -b newbranch </syntaxhighlight>")
- 10:5510:55, 29 January 2025 Mysql backup & restore (hist | edit) [247 bytes] Admin (talk | contribs) (Created page with "== Backup == <syntaxhighlight lang="bash" line highlight="" copy> mysqldump -u root -p --add-drop-database --delete-all-tables sfc > /tmp/sfc.sql </syntaxhighlight> == Restore == <syntaxhighlight lang="bash" line highlight="" copy> mysql -u root -p newdb < backup.sql </syntaxhighlight>")
- 10:1510:15, 29 January 2025 Laravel testing (hist | edit) [239 bytes] Admin (talk | contribs) (Created page with "== Run test == <syntaxhighlight lang="" line highlight="" copy> php artisan test </<syntaxhighlight>")
- 05:2105:21, 29 January 2025 Pinia (hist | edit) [1,007 bytes] Admin (talk | contribs) (Created page with "= Add Pinia to Vue = == Installation == <syntaxhighlight lang="php" copy> npm install pinia </syntaxhighlight> == Initialize == <syntaxhighlight lang="php" copy> import { createApp } from 'vue' import { createPinia } from 'pinia' import App from './App.vue' import vuetify from './plugins/vuetify' // Adjust if necessary const app = createApp(App) app.use(createPinia()) app.use(vuetify) app.mount('#app') </syntaxhighlight> == Create store src/stores/counter.js == <s...")
28 January 2025
- 17:4817:48, 28 January 2025 Concurrently (hist | edit) [351 bytes] Admin (talk | contribs) (Created page with "== Install concurrently == <syntaxhighlight lang="bash" copy> npm install concurrently --save-dev </syntaxhighlight> == package.json == <syntaxhighlight lang="json" copy> "scripts": { "launch": "concurrently \"php artisan serve\" \"npm run dev\"" } </syntaxhighlight> == run == <syntaxhighlight lang="bash" copy> npm run launch </syntaxhighlight>")
25 January 2025
- 08:2808:28, 25 January 2025 Vuetify - defaults (hist | edit) [529 bytes] Admin (talk | contribs) (Created page with "== Vuetify defaults == <syntaxhighlight lang="javascript" copy> import '@mdi/font/css/materialdesignicons.css' import 'vuetify/styles' import { createVuetify } from 'vuetify' export default createVuetify({ theme: { defaultTheme: 'light', }, defaults: { VBtn: { style: { 'text-transform': 'none' } } } }) </syntaxhighlight>")
- 07:0207:02, 25 January 2025 Vue - custom component (hist | edit) [481 bytes] Admin (talk | contribs) (Created page with "== Vue custom component template == <syntaxhighlight lang="html" copy> <template> <div> <h2>{{ title }}</h2> <form @submit.prevent="handleSubmit"> <slot></slot> <button type="submit">Submit</button> </form> </div> </template> <script setup> const props = defineProps({ title: { type: String, default: 'Form' } }) const emit = defineEmits(['submit']) const handleSubmit = (event) => { emit('submit', event) } </script> </syntaxhigh...")
24 January 2025
- 10:5910:59, 24 January 2025 Linux create user (hist | edit) [89 bytes] Admin (talk | contribs) (Created page with "== Create user == <syntaxhighlight lang="bash" code> sudo adduser john </syntaxhighlight>")
- 10:4910:49, 24 January 2025 Linux show users (hist | edit) [86 bytes] Admin (talk | contribs) (Created page with "== List users == <syntaxhighlight lang="bash" code> cat /etc/passwd </syntaxhighlight>")
23 January 2025
- 08:1308:13, 23 January 2025 Linux find (hist | edit) [103 bytes] Admin (talk | contribs) (Created page with "== Find file == <syntaxhighlight lang="bash"copy> sudo find ./home -name "test*.sh" </syntaxhighlight>")
20 January 2025
- 17:0417:04, 20 January 2025 Vuetify (hist | edit) [108 bytes] Admin (talk | contribs) (Created page with "== Create new vuetify app == <syntaxhighlight lang="bash" copy> npm create vuetify@latest </syntaxhighlight>")
19 January 2025
- 19:4419:44, 19 January 2025 Windows Forms App (hist | edit) [98 bytes] Admin (talk | contribs) (Created page with "== Center form == <syntaxhighlight lang="C#" copy> StartPosition = CenterScreen </syntaxhighlight>") Tag: Visual edit: Switched
- 17:5517:55, 19 January 2025 Laravel form request (hist | edit) [2,237 bytes] Admin (talk | contribs) (Created page with "== FormRequest template == <syntaxhighlight lang="php" copy> <?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\ValidationException; use Illuminate\Contracts\Validation\Validator; use Illuminate\Http\Exceptions\HttpResponseException; class StoreFmeoRequest extends FormRequest { →* * Determine if the user is authorized to make this request. * * @return bool: public function authorize()...")
18 January 2025
- 17:4717:47, 18 January 2025 Laravel service (hist | edit) [122 bytes] Admin (talk | contribs) (Created page with "== Create service class == <syntaxhighlight lang="bash" copy> php artisan make:class Services/MyService </syntaxhighlight>")
- 17:2717:27, 18 January 2025 Laravel environment (hist | edit) [321 bytes] Admin (talk | contribs) (Created page with "== Get environment == <syntaxhighlight lang="php" copy> App::environment(); </syntaxhighlight> == enable routes in development mode only == <syntaxhighlight lang="php" copy> // Conditional /test Route if (! App::environment('production')) { Route::get('/test', [TestController::class, 'index']); } </syntaxhighlight>")
- 17:1217:12, 18 January 2025 Laravel logging (hist | edit) [4,321 bytes] Admin (talk | contribs) (Created page with "== View log == <syntaxhighlight lang="php" copy> // create batch file viewlog.bat powershell -file viewlog.ps1 // create viewlog.ps1 get-content -path storage\logs\laravel.log -wait // run viewlog.bat </syntaxhighlight>")
- 16:5616:56, 18 January 2025 Laravel .env (hist | edit) [177 bytes] Admin (talk | contribs) (Created page with "== Get .env variable == <syntaxhighlight lang="php" copy> // .env APP_MY_VAR="xyz" // get value $value = env('APP_MY_VAR', 'default'); </syntaxhighlight>")
- 12:4112:41, 18 January 2025 Laravel controller (hist | edit) [946 bytes] Admin (talk | contribs) (Created page with "== action template == <syntaxhighlight lang="php" copy> public function index() { $data = []; return response()->json($data); } </syntaxhighlight>")
- 06:3206:32, 18 January 2025 Wikimedia (hist | edit) [641 bytes] Admin (talk | contribs) (Created page with "== syntaxhighlight == <syntaxhighlight lang="python" copy> def quick_sort(arr): less = [] </syntaxhighlight>")
- 06:3106:31, 18 January 2025 Mysql (hist | edit) [767 bytes] Admin (talk | contribs) (Created page with "== Create user ==")
17 January 2025
- 18:2818:28, 17 January 2025 Nestjs (hist | edit) [182 bytes] Admin (talk | contribs) (Created page with "<syntaxhighlight lang="bash" line="1" copy> copy code </syntaxhighlight>") Tag: Visual edit: Switched
15 January 2025
- 20:1820:18, 15 January 2025 Svelte (hist | edit) [126 bytes] Admin (talk | contribs) (Created page with "== Installation == <syntaxhighlight lang="bash" line> npx sv create myapp cd myapp npm install npm run dev </syntaxhighlight>")
- 19:3619:36, 15 January 2025 Laravel (hist | edit) [1,070 bytes] Admin (talk | contribs) (Created page with "== Install composer == <syntaxhighlight lang="bash"> php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');" </syntaxhighlight>") Tag: Visual edit