This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!isset($_GET['id'])) { | |
die("Anda tidak dizinkan mengakses langsung script ini!"); | |
} else { | |
if ($_GET['id'] <> '76310EEFF2B5D3C887F238976A421B638CFEB0942AB8249CD0A29B125C91B3E5') { | |
die("Anda tidak dizinkan mengakses langsung script ini!"); | |
} | |
} | |
include "../config/config.default.php"; | |
include "../config/config.function.php"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var autoRefresh = setInterval( | |
function () { | |
$('#divstatusall').load("<?= $homeurl ?>/admin/statuspeserta.php?id?id=76310EEFF2B5D3C887F238976A421B638CFEB0942AB8249CD0A29B125C91B3E5""); | |
}, 2000 | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let status_exam = $('#tablestatus').DataTable({ | |
"serverSide": true, | |
"stateSave": true, | |
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "kabehlah"]], | |
"ajax": "<?= $homeurl ?>/admin/server_side_status.php?id=76310EEFF2B5D3C887F238976A421B638CFEB0942AB8249CD0A29B125C91B3E5" | |
}); | |
setInterval(function () { | |
status_exam.ajax.reload(); | |
}, 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require("config/config.default.php"); | |
require("config/config.function.php"); | |
require("config/functions.crud.php"); | |
$idm = $_POST['id_mapel']; | |
$ids = $_POST['id_siswa']; | |
$idu = $_POST['id_ujian']; | |
$where = array( | |
'id_mapel' => $idm, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function selesaikan_ujian(id) { | |
swal({ | |
title: 'Apa anda yakin?', | |
text: "aksi ini akan menyelesaikan secara paksa ujian yang sedang berlangsung!", | |
showCancelButton: true, | |
confirmButtonColor: '#3085d6', | |
cancelButtonColor: '#d33', | |
confirmButtonText: 'Yes!' | |
}).then((result) => { | |
if (result.value) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const Blynk = require('blynk-library'); | |
const applescript = require('applescript'); | |
const AUTH = ''; | |
const blynk = new Blynk.Blynk(AUTH); | |
const volume = new blynk.VirtualPin(0) | |
const play = new blynk.VirtualPin(1) | |
const next = new blynk.VirtualPin(2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msg.payload = [0, 16833]; // hapus ini untuk melihat menkorvensi dari modbus | |
let pay = msg.payload; // mengambil data dari modbus | |
const buf = Buffer.allocUnsafe(4); | |
buf.writeInt16BE(pay[0],2); | |
buf.writeInt16BE(pay[1],0); | |
msg.payload = buf.readFloatBE(0); | |
return msg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# | |
# Improved backup script for Ubiquiti UniFi controller | |
# original source: http://wiki.ubnt.com/UniFi#Automated_Backup | |
# | |
# must contain: | |
username=YOUR_USERNAME | |
password=YOUR_PASSWORD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tripay_create($postData = false) | |
{ | |
$order_items = []; | |
$post = $postData ? $postData : $this->request->getPost(); | |
$apiKey = $this->apiKey; | |
$privateKey = $this->privateKey; | |
$merchantRef = $post['id_order']; | |
$amount = $post['biaya'] + 5000; | |
$method = $post['metode_bayar']; | |
if (isset($post['data']) and !isset($post['id_takhosus'])) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for telegraf agent | |
[agent] | |
## Default data collection interval for all inputs | |
interval = "1s" | |
## Rounds collection interval to 'interval' | |
## ie, if interval="10s" then always collect on :00, :10, :20, etc. | |
round_interval = true | |
## Telegraf will send metrics to outputs in batches of at most | |
## metric_batch_size metrics. |
OlderNewer