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 / UUID PROCEDURE MYSQL
Created May 20, 2025 21:29
UUID PROCEDURE MYSQL
DELIMITER //
CREATE PROCEDURE generate_uuid(OUT uuid_value VARCHAR(36))
BEGIN
SET uuid_value = UUID();
END //
DELIMITER ;
@mdestafadilah
mdestafadilah / TOOLS PROJECT SARIASIH
Created May 18, 2025 14:34
TOOLS PROJECT SARIASIH
https://scribd.vdownloaders.com/
https://wordtohtml.net/site/index?tour=1
https://wordtohtml.net/convert/docx-to-html
https://cloudconvert.com/docx-to-html
@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