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 / 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
@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 / 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 / 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 / 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 / probability-bean-2760.csv
Created May 4, 2023 09:51
Probability of winning the programmes of Bean #2760
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
"Total Ticket";"Probability";"Wallet Address"
"43";"9.62%";"0x3D3...74d46"
"40";"8.95%";"0x03c...9269e"
"27";"6.04%";"0xd78...f7697"
"16";"3.58%";"0x777...a1e57"
"15";"3.36%";"0xaC6...13cdd"
"13";"2.91%";"0x5b6...270EC"
"11";"2.46%";"0x781...68a67"
"9";"2.01%";"0x402...A2621"
"8";"1.79%";"0xdD6...9CEf6"
@masitings
masitings / probability-bean-2760.csv
Created May 4, 2023 09:51
Probability of winning the programmes of Bean #2760
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Total Ticket;Probability;Wallet Address
43;9.62%;0x3D3...74d46
40;8.95%;0x03c...9269e
27;6.04%;0xd78...f7697
16;3.58%;0x777...a1e57
15;3.36%;0xaC6...13cdd
13;2.91%;0x5b6...270EC
11;2.46%;0x781...68a67
9;2.01%;0x402...A2621
8;1.79%;0xdD6...9CEf6
@masitings
masitings / probability-bean-2760.tsv
Created May 4, 2023 09:48
Probability of winning the programmes of Bean #2760
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
;Total Ticket;;;Probability;;;Wallet Address;
;43;;;9.62%;;;0x3D3...74d46;
;40;;;8.95%;;;0x03c...9269e;
;27;;;6.04%;;;0xd78...f7697;
;16;;;3.58%;;;0x777...a1e57;
;15;;;3.36%;;;0xaC6...13cdd;
;13;;;2.91%;;;0x5b6...270EC;
;11;;;2.46%;;;0x781...68a67;
;9;;;2.01%;;;0x402...A2621;
;8;;;1.79%;;;0xdD6...9CEf6;
@masitings
masitings / probability-bean-2760.tsv
Created May 4, 2023 09:48
Probability of winning the programmes of Bean #2760
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
"Total Ticket";"Probability";"Wallet Address"
"43";"9.62%";"0x3D3...74d46"
"40";"8.95%";"0x03c...9269e"
"27";"6.04%";"0xd78...f7697"
"16";"3.58%";"0x777...a1e57"
"15";"3.36%";"0xaC6...13cdd"
"13";"2.91%";"0x5b6...270EC"
"11";"2.46%";"0x781...68a67"
"9";"2.01%";"0x402...A2621"
"8";"1.79%";"0xdD6...9CEf6"
@masitings
masitings / probability-bean-2760.tsv
Created May 4, 2023 09:46
Probability of winning the programmes of Bean #2760
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Total Ticket;Probability;Wallet Address
43;9.62%;0x3D3...74d46
40;8.95%;0x03c...9269e
27;6.04%;0xd78...f7697
16;3.58%;0x777...a1e57
15;3.36%;0xaC6...13cdd
13;2.91%;0x5b6...270EC
11;2.46%;0x781...68a67
9;2.01%;0x402...A2621
8;1.79%;0xdD6...9CEf6