Skip to content

Instantly share code, notes, and snippets.

View masitings's full-sized avatar
🏠
Working from home

Rafi Bagaskara Halilintar masitings

🏠
Working from home
View GitHub Profile
@masitings
masitings / laravel-fastcgi-cache-config.md
Created November 20, 2023 03:54 — forked from murdercode/laravel-fastcgi-cache-config.md
Optimizing Laravel (and Nova) with FastCGI Cache Configuration

Laravel + FastCGI Cache = ❤️

Using FastCGI cache allows you to speed up your website up to 1000x. In fact, the FastCGI cache (or Varnish) mechanism consists of putting a server-caching mechanism between a client and your web server. The whole page will be cached as an HTML output, and it will be delivered instead of using the PHP/MySQL/Redis stack, etc. for all users, but only for the first visit (and others after some specified time).

WARNING: This is not a take-away how-to. Please read it carefully and use it at your own risk.

This config is based on the ploi.io stack. We will not cover the FastCGI installation process, so please prepare FastCGI and adapt the next config if you need it.

What you need to know

@masitings
masitings / yt_ocr.ipynb
Created January 26, 2024 09:47
yt_ocr.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@masitings
masitings / yolov8_train_ktp_roboflow.ipynb
Created January 27, 2024 09:42
yolov8_train_ktp_roboflow.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@masitings
masitings / document_ai_ocr_ktp.ipynb
Created January 31, 2024 18:41
document_ai_ocr_ktp.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@masitings
masitings / franken_laravel.sh
Created December 4, 2024 09:48
FrankenPHP with Laravel
#!/bin/bash
# Function to check if a service is installed
is_installed() {
command -v "$1" &>/dev/null
}
# Function to check OS and package manager
detect_os() {
if [ -f /etc/os-release ]; then