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 / realtime-speach-voice-to-text
Created July 29, 2025 05:36
realtime-speach-voice-to-text
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 0 auto;
padding: 20px;
}
@mdestafadilah
mdestafadilah / PRAYER JS
Created July 23, 2025 03:21
PRAYER.JS EXAMPLE
<script>
function updateClock() {
const clockElement = document.getElementById("jam");
const now = new Date();
const hours = now.getHours().toString().padStart(2, "0");
const minutes = now.getMinutes().toString().padStart(2, "0");
const seconds = now.getSeconds().toString().padStart(2, "0");
clockElement.textContent = `${hours}:${minutes} WIB`;
}
setInterval(updateClock, 1000);
@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