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 / BPJS-AKTIF-CEK
Created February 22, 2025 21:28
BPJS-AKTIF-CEK
function checkStatusAktifBpjs() {
var jenis_identitas = $('.jenis_identitas').val();
if(jenis_identitas=='NIK'){
var jml_karakter = 16;
var jenis_identitas = 'nik';
var nomor_asuransi = $('.ktp').val();
}else{
var jml_karakter = 13;
var jenis_identitas = 'nomor_kartu';
@mdestafadilah
mdestafadilah / CALL-IHS-SATUSEHAT
Last active February 22, 2025 20:48
CALL-IHS-SATUSEHAT
// SOURCE: https://app.klikmedis.com/satusehat/patient/by_nik?nik=NIK&nama=NAMA
function validateKTP(input) {
var ktpValue = input.value;
var errorMessage = document.getElementById('ktpError');
if (ktpValue.length !== 16) {
errorMessage.style.display = "inline";
} else {
errorMessage.style.display = "none";
}
@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