vault backup: 2025-11-22 08:14:07
This commit is contained in:
84
Work/Random/Horizon.md
Normal file
84
Work/Random/Horizon.md
Normal file
@@ -0,0 +1,84 @@
|
||||
``` bash
|
||||
php artisan make:command CheckStatusCommand && php artisan make:notification HorizonIsInactiveNotification
|
||||
```
|
||||
|
||||
``` php CheckStatusCommand
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Notifications\HorizonIsInactiveNotification;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
use Laravel\Horizon\Contracts\MasterSupervisorRepository;
|
||||
|
||||
class CheckStatusCommand extends Command
|
||||
{
|
||||
protected $description = 'Command description';
|
||||
protected $signature = 'horizon:check-status';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*/
|
||||
public function handle(): void
|
||||
{
|
||||
if (!$this->shouldBeActive()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($this->isHorizonActive()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->error('Horizon is inactive on: ' . config('app.name'));
|
||||
|
||||
Flare::report(new Exception('Horizon is inactive'));
|
||||
|
||||
Notification::route('mail', 'dev@strixi.nl')
|
||||
->notify(new HorizonIsInactiveNotification());
|
||||
}
|
||||
|
||||
protected function isHorizonActive(): bool
|
||||
{
|
||||
if (!$masters = app(MasterSupervisorRepository::class)->all()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return collect($masters)->some(fn($master): bool => $master->status !== 'paused');
|
||||
}
|
||||
|
||||
protected function shouldBeActive(): bool
|
||||
{
|
||||
return config('queue.default') === 'redis';
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
``` php HorizonIsInactiveNotification
|
||||
<?php
|
||||
|
||||
namespace App\Notifications;
|
||||
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
use Illuminate\Notifications\Notification;
|
||||
|
||||
class HorizonIsInactiveNotification extends Notification
|
||||
{
|
||||
public function via(object $notifiable): array
|
||||
{
|
||||
return ['mail'];
|
||||
}
|
||||
|
||||
public function toMail(object $notifiable): MailMessage
|
||||
{
|
||||
return (new MailMessage)
|
||||
->subject('Horizon is inactive on: ' . config('app.name'))
|
||||
->line('Horizon is inactive on: ' . config('app.name'))
|
||||
->action('Goto site', url(config('app.url')));
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
``` php kernel or bootstrap
|
||||
$schedule->command(\App\Console\Commands\CheckStatusCommand::class)->everyFifteenMinutes();
|
||||
```
|
||||
35
Work/Random/MacPlugin.md
Normal file
35
Work/Random/MacPlugin.md
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
created: 2025-07-09 08:56
|
||||
updated: 2025-11-06 13:45
|
||||
---
|
||||
<!-- ShareMyPlugin begin -->
|
||||
|
||||
- [⬇️](obsidian://SP-install?id=remotely-save&enable=true) [**Remotely Save**](https://obsidian.md/plugins?id=remotely-save) by [*fyears*](https://github.com/fyears) [♡](https://remotelysave.com) ^[Yet another unofficial plugin allowing users to synchronize notes between local device and the cloud service.]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-tasks-plugin&enable=true) [**Tasks**](https://obsidian.md/plugins?id=obsidian-tasks-plugin) by [*Clare Macrae and Ilyas Landikov (created by Martin Schenck)*](https://github.com/obsidian-tasks-group) [♡](https://github.com/sponsors/claremacrae) ^[Track tasks across your vault. Supports due dates, recurring tasks, done dates, sub-set of checklist items, and filtering.]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-linter&enable=true) [**Linter**](https://obsidian.md/plugins?id=obsidian-linter) by [*Victor Tao*](https://github.com/platers) ^[Formats and styles your notes. It can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular markdown contents like list, italics, and bold styles; and more with the use of custom rule options as well.]
|
||||
- [⬇️](obsidian://SP-install?id=callout-manager&enable=true) [**Callout Manager**](https://obsidian.md/plugins?id=callout-manager) by [*eth-p*](https://github.com/eth-p) ^[Easily create and customize callouts.]
|
||||
- [⬇️](obsidian://SP-install?id=smart-composer&enable=true) [**Smart Composer**](https://obsidian.md/plugins?id=smart-composer) by [*Heesu Suh*](https://github.com/glowingjade) [♡](https://buymeacoffee.com/kevin.on) ^[AI chat with note context, smart writing assistance, and one-click edits for your vault.]
|
||||
- [⬇️](obsidian://SP-install?id=folder-notes&enable=true) [**Folder notes**](https://obsidian.md/plugins?id=folder-notes) by [*Lost Paul*](https://github.com/LostPaul) [♡](https://ko-fi.com/paul305844) ^[Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-banners&enable=true) [**Banners**](https://obsidian.md/plugins?id=obsidian-banners) by [*Danny Hernandez*](https://github.com/noatpad) ^[Add banner images to your notes!]
|
||||
- [⬇️](obsidian://SP-install?id=calendar&enable=true) [**Calendar**](https://obsidian.md/plugins?id=calendar) by [*Liam Cain*](https://github.com/liamcain/) ^[Calendar view of your daily notes]
|
||||
- [⬇️](obsidian://SP-install?id=colored-tags&enable=true) [**Colored Tags**](https://obsidian.md/plugins?id=colored-tags) by [*Pavel Frankov*](https://github.com/pfrankov) ^[Colorizes tags in different colors. Colors of nested tags are mixed with the root tag to improve readability. Text color contrast is automatically matched to comply with AA level of WCAG 2.1.]
|
||||
- [⬇️](obsidian://SP-install?id=code-styler&enable=true) [**Code Styler**](https://obsidian.md/plugins?id=code-styler) by [*Mayuran Visakan*](https://github.com/mayurankv) [♡](https://www.buymeacoffee.com/mayurankv2) ^[Style and customize codeblocks and inline code in both editing mode and reading mode.]
|
||||
- [⬇️](obsidian://SP-install?id=omnisearch&enable=true) [**Omnisearch**](https://obsidian.md/plugins?id=omnisearch) by [*Simon Cambier*](https://github.com/scambier/obsidian-omnisearch) [♡](https://github.com/sponsors/scambier)/[♡](https://ko-fi.com/scambier) ^[A search engine that just works]
|
||||
- [⬇️](obsidian://SP-install?id=cmdr&enable=true) [**Commander**](https://obsidian.md/plugins?id=cmdr) by [*jsmorabito & phibr0*](https://github.com/phibr0) [♡](https://ko-fi.com/phibr0) ^[Customize your workspace by adding commands everywhere, create Macros and supercharge your mobile toolbar.]
|
||||
- [⬇️](obsidian://SP-install?id=tag-wrangler&enable=true) [**Tag Wrangler**](https://obsidian.md/plugins?id=tag-wrangler) by [*PJ Eby*](https://github.com/pjeby) [♡](https://dirtsimple.org/tips/tag-wrangler) ^[Rename, merge, toggle, and search tags from the tags view]
|
||||
- [⬇️](obsidian://SP-install?id=homepage&enable=true) [**Homepage**](https://obsidian.md/plugins?id=homepage) by [*novov*](https://novov.me) [♡](https://ko-fi.com/novov) ^[Open a specified note, canvas, base, or workspace on startup, or set it for quick access later.]
|
||||
- [⬇️](obsidian://SP-install?id=custom-sort&enable=true) [**Custom File Explorer sorting**](https://obsidian.md/plugins?id=custom-sort) by [*SebastianMC*](https://github.com/SebastianMC) ^[Allows for manual and automatic, config-driven reordering and sorting of files and folders in File Explorer]
|
||||
- [⬇️](obsidian://SP-install?id=smart-connections&enable=true) [**Smart Connections**](https://obsidian.md/plugins?id=smart-connections) by [*Brian Petro*](https://wfhbrian.com) ^[Chat with your notes & see links to related content with Local or Remote models.]
|
||||
- [⬇️](obsidian://SP-install?id=text-extractor&enable=true) [**Text Extractor**](https://obsidian.md/plugins?id=text-extractor) by [*Simon Cambier*](https://github.com/scambier/obsidian-text-extractor) [♡](https://github.com/sponsors/scambier)/[♡](https://ko-fi.com/scambier) ^[A (companion) plugin to facilitate the extraction of text from images (OCR) and PDFs.]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-reveal-active-file&enable=true) [**Automatically reveal active file**](https://obsidian.md/plugins?id=obsidian-reveal-active-file) by [*Matt Sessions*](https://www.matthewsessions.com) ^[This plugin will reveal the active file in the navigation when a file is opened.]
|
||||
- [⬇️](obsidian://SP-install?id=update-time-on-edit&enable=true) [**Update time on edit**](https://obsidian.md/plugins?id=update-time-on-edit) by [*@beaussan*](https://github.com/beaussan) ^[Keep front matter in sync with the last edit time]
|
||||
- [⬇️](obsidian://SP-install?id=lazy-plugins&enable=true) [**Lazy Plugin Loader**](https://obsidian.md/plugins?id=lazy-plugins) by [*Alan Grainger*](https://github.com/alangrainger) [♡](https://ko-fi.com/alan_) ^[Load plugins with a delay on startup, so that you can get your app startup down into the sub-second loading time.]
|
||||
- [⬇️](obsidian://SP-install?id=share-my-plugin-list&enable=true) [**Share my plugin list**](https://obsidian.md/plugins?id=share-my-plugin-list) by [*Benature*](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature)/[⚡️](https://afdian.net/a/Benature-K)/[♡](https://s2.loli.net/2024/01/30/jQ9fTSyBxvXRoOM.png) ^[Share the enabled plugins in list/table format.]
|
||||
- [⬇️](obsidian://SP-install?id=periodic-notes&enable=true) [**Periodic Notes**](https://obsidian.md/plugins?id=periodic-notes) by [*Liam Cain*](https://github.com/liamcain/) ^[Create/manage your daily, weekly, and monthly notes]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-link-embed&enable=true) [**Link Embed**](https://obsidian.md/plugins?id=obsidian-link-embed) by [*SErAphLi*](https://github.com/Seraphli) ^[This plugin auto-fetches page metadata to embed Notion-style link preview cards.]
|
||||
- [⬇️](obsidian://SP-install?id=table-editor-obsidian&enable=true) [**Advanced Tables**](https://obsidian.md/plugins?id=table-editor-obsidian) by [*Tony Grosinger*](https://grosinger.net) [♡](https://github.com/sponsors/tgrosinger)/[♡](https://buymeacoffee.com/tgrosinger)/[♡](https://paypal.me/tgrosinger) ^[Improved table navigation, formatting, manipulation, and formulas]
|
||||
- [⬇️](obsidian://SP-install?id=terminal&enable=true) [**Terminal**](https://obsidian.md/plugins?id=terminal) by [*polyipseity*](https://github.com/polyipseity) [♡](https://buymeacoffee.com/polyipseity)/[♡](https://github.com/sponsors/polyipseity) ^[Integrate consoles, shells, and terminals.]
|
||||
|
||||
|
||||
|
||||
<!-- ShareMyPlugin end -->
|
||||
3
Work/Random/Max Children.md
Normal file
3
Work/Random/Max Children.md
Normal file
@@ -0,0 +1,3 @@
|
||||
```bash
|
||||
sudo grep 'seems busy' /var/log/php8.3-fpm.log
|
||||
```
|
||||
20
Work/Random/MobilePlugin.md
Normal file
20
Work/Random/MobilePlugin.md
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
created: 2025-07-04 05:07
|
||||
updated: 2025-11-04 15:19
|
||||
---
|
||||
<!-- ShareMyPlugin begin -->
|
||||
|
||||
- [⬇️](obsidian://SP-install?id=remotely-save&enable=true) [**Remotely Save**](https://obsidian.md/plugins?id=remotely-save) by [*fyears*](https://github.com/fyears) [♡](https://remotelysave.com) ^[Yet another unofficial plugin allowing users to synchronize notes between local device and the cloud service.]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-icon-folder&enable=true) [**Iconize**](https://obsidian.md/plugins?id=obsidian-icon-folder) by [*Florian Woelki*](https://florianwoelki.com/) ^[Add icons to anything you desire in Obsidian, including files, folders, and text.]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-tasks-plugin&enable=true) [**Tasks**](https://obsidian.md/plugins?id=obsidian-tasks-plugin) by [*Clare Macrae and Ilyas Landikov (created by Martin Schenck)*](https://github.com/obsidian-tasks-group) [♡](https://github.com/sponsors/claremacrae) ^[Track tasks across your vault. Supports due dates, recurring tasks, done dates, sub-set of checklist items, and filtering.]
|
||||
- [⬇️](obsidian://SP-install?id=cmdr&enable=true) [**Commander**](https://obsidian.md/plugins?id=cmdr) by [*jsmorabito & phibr0*](https://github.com/phibr0) [♡](https://ko-fi.com/phibr0) ^[Customize your workspace by adding commands everywhere, create Macros and supercharge your mobile toolbar.]
|
||||
- [⬇️](obsidian://SP-install?id=omnisearch&enable=true) [**Omnisearch**](https://obsidian.md/plugins?id=omnisearch) by [*Simon Cambier*](https://github.com/scambier/obsidian-omnisearch) [♡](https://github.com/sponsors/scambier)/[♡](https://ko-fi.com/scambier) ^[A search engine that just works]
|
||||
- [⬇️](obsidian://SP-install?id=custom-sort&enable=true) [**Custom File Explorer sorting**](https://obsidian.md/plugins?id=custom-sort) by [*SebastianMC*](https://github.com/SebastianMC) ^[Allows for manual and automatic, config-driven reordering and sorting of files and folders in File Explorer]
|
||||
- [⬇️](obsidian://SP-install?id=various-complements&enable=true) [**Various Complements**](https://obsidian.md/plugins?id=various-complements) by [*tadashi-aikawa*](https://github.com/tadashi-aikawa) ^[This plugin enables you to complete words like the auto-completion of IDE]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-advanced-uri&enable=true) [**Advanced URI**](https://obsidian.md/plugins?id=obsidian-advanced-uri) by [*Vinzent*](https://github.com/Vinzent03) [♡](https://ko-fi.com/vinzent) ^[Advanced modes for Obsidian URI]
|
||||
- [⬇️](obsidian://SP-install?id=share-my-plugin-list&enable=true) [**Share my plugin list**](https://obsidian.md/plugins?id=share-my-plugin-list) by [*Benature*](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature)/[⚡️](https://afdian.net/a/Benature-K)/[♡](https://s2.loli.net/2024/01/30/jQ9fTSyBxvXRoOM.png) ^[Share the enabled plugins in list/table format.]
|
||||
- [⬇️](obsidian://SP-install?id=terminal&enable=true) [**Terminal**](https://obsidian.md/plugins?id=terminal) by [*polyipseity*](https://github.com/polyipseity) [♡](https://buymeacoffee.com/polyipseity)/[♡](https://github.com/sponsors/polyipseity) ^[Integrate consoles, shells, and terminals.]
|
||||
|
||||
|
||||
|
||||
<!-- ShareMyPlugin end -->
|
||||
12
Work/Random/New Laravel.md
Normal file
12
Work/Random/New Laravel.md
Normal file
@@ -0,0 +1,12 @@
|
||||
- [ ] Change font
|
||||
- [ ] Add flare
|
||||
- [ ] Enforce morphmap
|
||||
- [ ] Add the mixins
|
||||
- [ ] Add laravel actions
|
||||
- [ ] Add eslint
|
||||
- [ ] Add laravel deployment actions
|
||||
- [ ] barryvdh/laravel-debugbar
|
||||
- [ ] driftingly/rector-laravel
|
||||
- [ ] staudenmeir/eloquent-has-many-deep
|
||||
- [ ] Add telescope
|
||||
|
||||
17
Work/Random/PluginsDesktop.md
Normal file
17
Work/Random/PluginsDesktop.md
Normal file
@@ -0,0 +1,17 @@
|
||||
<!-- ShareMyPlugin begin -->
|
||||
|
||||
- [⬇️](obsidian://SP-install?id=remotely-save&enable=true) [**Remotely Save**](https://obsidian.md/plugins?id=remotely-save) by [*fyears*](https://github.com/fyears) [♡](https://remotelysave.com) ^[Yet another unofficial plugin allowing users to synchronize notes between local device and the cloud service.]
|
||||
- [⬇️](obsidian://SP-install?id=table-editor-obsidian&enable=true) [**Advanced Tables**](https://obsidian.md/plugins?id=table-editor-obsidian) by [*Tony Grosinger*](https://grosinger.net) [♡](https://github.com/sponsors/tgrosinger)/[♡](https://buymeacoffee.com/tgrosinger)/[♡](https://paypal.me/tgrosinger) ^[Improved table navigation, formatting, manipulation, and formulas]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-minimal-settings&enable=true) [**Minimal Theme Settings**](https://obsidian.md/plugins?id=obsidian-minimal-settings) by [*@kepano*](https://www.twitter.com/kepano) [♡](https://www.buymeacoffee.com/kepano) ^[Change the colors, fonts and features of Minimal Theme.]
|
||||
- [⬇️](obsidian://SP-install?id=harper&enable=true) [**Harper**](https://obsidian.md/plugins?id=harper) by [*Elijah Potter*](https://elijahpotter.dev) ^[The Grammar Checker for Developers]
|
||||
- [⬇️](obsidian://SP-install?id=smart-connections&enable=true) [**Smart Connections**](https://obsidian.md/plugins?id=smart-connections) by [*Brian Petro*](https://wfhbrian.com) ^[Find links to similar notes using artificial intelligence from OpenAI.]
|
||||
- [⬇️](obsidian://SP-install?id=copilot&enable=true) [**Copilot**](https://obsidian.md/plugins?id=copilot) by [*Logan Yang*](https://twitter.com/logancyang) [☕️](https://www.buymeacoffee.com/logancyang)/[♡](https://github.com/sponsors/logancyang) ^[Your AI Copilot: Chat with Your Second Brain, Learn Faster, Work Smarter.]
|
||||
- [⬇️](obsidian://SP-install?id=journals&enable=true) [**Journals**](https://obsidian.md/plugins?id=journals) by [*Sergii Kostyrko*](https://github.com/srg-kostyrko) ^[Manage your journals in Obsidian]
|
||||
- [⬇️](obsidian://SP-install?id=share-my-plugin-list&enable=true) [**Share my plugin list**](https://obsidian.md/plugins?id=share-my-plugin-list) by [*Benature*](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature)/[⚡️](https://afdian.net/a/Benature-K)/[♡](https://s2.loli.net/2024/01/30/jQ9fTSyBxvXRoOM.png) ^[Share the enabled plugins in list/table format.]
|
||||
- [⬇️](obsidian://SP-install?id=folder-notes&enable=true) [**Folder notes**](https://obsidian.md/plugins?id=folder-notes) by [*Lost Paul*](https://github.com/LostPaul) [♡](https://ko-fi.com/paul305844) ^[Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.]
|
||||
- [⬇️](obsidian://SP-install?id=homepage&enable=true) [**Homepage**](https://obsidian.md/plugins?id=homepage) by [*novov*](https://novov.me) [♡](https://ko-fi.com/novov) ^[Open a specified note, canvas, base, or workspace on startup, or set it for quick access later.]
|
||||
- [⬇️](obsidian://SP-install?id=custom-sort&enable=true) [**Custom File Explorer sorting**](https://obsidian.md/plugins?id=custom-sort) by [*SebastianMC*](https://github.com/SebastianMC) ^[Allows for manual and automatic, config-driven reordering and sorting of files and folders in File Explorer]
|
||||
|
||||
|
||||
|
||||
<!-- ShareMyPlugin end -->
|
||||
15
Work/Random/ShareMyPlugin.md
Normal file
15
Work/Random/ShareMyPlugin.md
Normal file
@@ -0,0 +1,15 @@
|
||||
<!-- ShareMyPlugin begin -->
|
||||
|
||||
- [⬇️](obsidian://SP-install?id=remotely-save&enable=true) [**Remotely Save**](https://obsidian.md/plugins?id=remotely-save) by [*fyears*](https://github.com/fyears) ^[Yet another unofficial plugin allowing users to synchronize notes between local device and the cloud service.]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-minimal-settings&enable=true) [**Minimal Theme Settings**](https://obsidian.md/plugins?id=obsidian-minimal-settings) by [*@kepano*](https://www.twitter.com/kepano) [♡](https://www.buymeacoffee.com/kepano) ^[Change the colors, fonts and features of Minimal Theme.]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-icon-folder&enable=true) [**Iconize**](https://obsidian.md/plugins?id=obsidian-icon-folder) by [*Florian Woelki*](https://florianwoelki.com/) ^[Add icons to anything you desire in Obsidian, including files, folders, and text.]
|
||||
- [⬇️](obsidian://SP-install?id=custom-sort&enable=true) [**Custom File Explorer sorting**](https://obsidian.md/plugins?id=custom-sort) by [*SebastianMC*](https://github.com/SebastianMC) ^[Allows for manual and automatic, config-driven reordering and sorting of files and folders in File Explorer]
|
||||
- [⬇️](obsidian://SP-install?id=share-my-plugin-list&enable=true) [**Share my plugin list**](https://obsidian.md/plugins?id=share-my-plugin-list) by [*Benature*](https://github.com/Benature) [☕️](https://www.buymeacoffee.com/benature)/[⚡️](https://afdian.net/a/Benature-K)/[♡](https://s2.loli.net/2024/01/30/jQ9fTSyBxvXRoOM.png) ^[Share the enabled plugins in list/table format.]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-tasks-plugin&enable=true) [**Tasks**](https://obsidian.md/plugins?id=obsidian-tasks-plugin) by [*Clare Macrae and Ilyas Landikov (created by Martin Schenck)*](https://github.com/obsidian-tasks-group) [♡](https://github.com/sponsors/claremacrae) ^[Track tasks across your vault. Supports due dates, recurring tasks, done dates, sub-set of checklist items, and filtering.]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-linter&enable=true) [**Linter**](https://obsidian.md/plugins?id=obsidian-linter) by [*Victor Tao*](https://github.com/platers) ^[Formats and styles your notes. It can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular markdown contents like list, italics, and bold styles; and more with the use of custom rule options as well.]
|
||||
- [⬇️](obsidian://SP-install?id=periodic-notes&enable=true) [**Periodic Notes**](https://obsidian.md/plugins?id=periodic-notes) by [*Liam Cain*](https://github.com/liamcain/) ^[Create/manage your daily, weekly, and monthly notes]
|
||||
- [⬇️](obsidian://SP-install?id=obsidian-read-it-later&enable=true) [**ReadItLater**](https://obsidian.md/plugins?id=obsidian-read-it-later) by [*Dominik Pieper*](https://github.com/DominikPieper) ^[Saves the clipboard to a new note.]
|
||||
- [⬇️](obsidian://SP-install?id=journals&enable=true) [**Journals**](https://obsidian.md/plugins?id=journals) by [*Sergii Kostyrko*](https://github.com/srg-kostyrko) ^[Manage your journals in Obsidian]
|
||||
- [⬇️](obsidian://SP-install?id=folder-note-plugin&enable=true) [**Folder Note**](https://obsidian.md/plugins?id=folder-note-plugin) by [*xpgo*](https://github.com/xpgo/obsidian-folder-note) ^[Click a folder node to show a note describing the folder.]
|
||||
|
||||
<!-- ShareMyPlugin end -->
|
||||
35
Work/Random/Web Server Snippets.md
Normal file
35
Work/Random/Web Server Snippets.md
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
created: 2025-11-11 16:24
|
||||
updated: 2025-11-11 16:24
|
||||
---
|
||||
## Nginx
|
||||
|
||||
### Header Too Big
|
||||
Add this to your PHP location block:
|
||||
```bash
|
||||
location ~ \.php$ {
|
||||
include fastcgi_params;
|
||||
# Increase buffer sizes to handle large headers
|
||||
fastcgi_buffers 16 16k;
|
||||
fastcgi_buffer_size 32k;
|
||||
}
|
||||
```
|
||||
|
||||
## Apache
|
||||
|
||||
### Block Bots / User Agents
|
||||
```apache
|
||||
RewriteEngine On
|
||||
RewriteCond %{HTTP_USER_AGENT} (Amazonbot|SemrushBot|meta-externalagent|Bytespider) [NC]
|
||||
RewriteRule .* - [R=503,L]
|
||||
```
|
||||
|
||||
## Server Diagnostics
|
||||
|
||||
### List All Listening Ports with Process Names
|
||||
Useful for tracking multiple InertiaJS SSR servers or identifying which service is using which port.
|
||||
```bash
|
||||
sudo lsof -i -P -n | grep LISTEN
|
||||
```
|
||||
|
||||
#Snippets #Nginx #Apache #Diagnostics
|
||||
Reference in New Issue
Block a user