Skip to content

Instantly share code, notes, and snippets.

View mdestafadilah's full-sized avatar
🧠
I'm an Intuiting Ekstrovert (IE) with B Blood Type.

mDestaFadilah mdestafadilah

🧠
I'm an Intuiting Ekstrovert (IE) with B Blood Type.
View GitHub Profile
@mdestafadilah
mdestafadilah / nginx-file-access
Created January 10, 2025 22:43
nginx-file-access
location ~* \.(jpg|jpeg|gif|png|bmp|ico|flv|swf|js|css|ttf|woff|woff2) {
add_header Cache-Control public;
add_header Cache-Control must-revalidate;
expires 7d;
}
location ^~ /public/ {
deny all;
}
@mdestafadilah
mdestafadilah / unseed dangers
Created November 8, 2024 21:13
unseed dangers
source: https://collinsadi.hashnode.dev/unseen-dangers-how-developers-fall-prey-to-hidden-security-threats
```
const { spawn } = require("child_process");
// Importing the `spawn` function from the "child_process" module to execute system commands.
const os = require("os");
// Importing the `os` module to detect the platform (Windows, Linux, or macOS).
const fs = require("fs");
// Importing the `fs` (file system) module to handle file reading and writing.
@mdestafadilah
mdestafadilah / INVENTORI
Created November 6, 2024 08:57
INVENTORI
- https://github.com/Mustaghfiril05/Inventory
- https://github.com/HenSetiawan/laravel-inventori
- https://github.com/sheptianbagjautama/laravel-inventory-stock
- https://github.com/ZibranovSky/Web-Inventory-Barang
- https://github.com/anoerman/invenitri
- https://github.com/zahidin/web-aplikasi-inventory-gudang
- https://github.com/yogski/stock-opname
- https://github.com/arman9189/Inventory-Manager
@mdestafadilah
mdestafadilah / Shieldon Codeigniter 4
Last active October 31, 2024 07:41
Shieldon Codeigniter 4
<?php
/*
* This file is part of the Shieldon package.
*
* (c) Terry L. <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* File Correction: APP\vendor\Shieldon\src\Firewall\Integration\CodeIgniter4
@mdestafadilah
mdestafadilah / nginx.conf
Created September 27, 2024 03:44
Aksara CMS in nginx config
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
add_header X-Permitted-Cross-Domain-Policies "none";
add_header Strict-Transport-Secuirty "max-age=31536000; includeSubDomains; preload";
include /www/server/nginx/conf/idFlorin.conf; # you can remove this line
# sumber: https://github.com/abydahana/aksara/issues/580#issuecomment-2376320598
@mdestafadilah
mdestafadilah / FASTAPI AAPANEL
Created July 23, 2024 10:27
FASTAPI AAPANEL
python3 -m uvicorn sql_app.main:app --reload --host 0.0.0.0 --port 8000
@mdestafadilah
mdestafadilah / SOLUTION X100C
Created June 29, 2024 07:23
SOLUTION X100C
Setting solutioncloud.co.id
Untuk koneksi ke solutioncloud.co.id perlu di setting ADMS / cloud servernya, masuk menu mesin, commsetting, ADMS/ pengaturan server cloud
 Enable domain di OFF
 Alamat server address: 119.235.252.10
 Server port: 80
 Enable proxy di OFF
 Enable HTTPS di OFF
Ciri mesin sudah terkoneksi ke solutioncloud.co.id dapat di lihat di layar mesin pojok kanan atas ada bola dunia / data statusnya sudah tidak ada tanda silang atau merah
Total biaya yang dibutuhkan
solar : 2.900.000
Baterai : 2.800.000
SSC : 115.000
Inverter : 440.000
Kwh Meter :110.000
MCB DC 2p : 74.000
MCB DC 1P x2 = 105.000
Terminal blok : 23.000
MCB AC 3A : 30.000
@mdestafadilah
mdestafadilah / PLTS SEDERHANA
Created June 14, 2024 06:57
PLTS SEDERHANA
SOURCE: https://youtu.be/EQmGsBYVU3k?si=ynyqo16vqYmo_vC-
===========================================
Panel surya 10wp https://shope.ee/LRXCIHmtU
SCC PWM 10A https://s.shopee.co.id/40Kqolanua
Baterai Lifepo4 12v 6Ah https://shope.ee/2fpTDM4K5T
Kabel srabut 2.5mm https://s.shopee.co.id/5pmV14xOm2
Lampu DC 5watt https://s.shopee.co.id/3VOaFrsLar
Lampu DC 3Watt https://shope.ee/6zySQaGI58
MCB DC 6A https://s.shopee.co.id/2AtCeUu39g
@mdestafadilah
mdestafadilah / javascript-itram
Created June 11, 2024 10:24
javascript-itram
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/images/itram/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/images/itram/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/images/itram/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="/images/itram/apple-touch-icon-57-precomposed.png">