This file contains hidden or 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($_POST["tombol"])) | |
{ | |
echo "<pre>"; | |
//print_r($_POST); | |
echo "</pre>"; | |
$head = $_POST["head"]; | |
$detail = $_POST["item"]; | |
echo "Head Looping Foreach <br/>"; |
This file contains hidden or 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
@echo off | |
@mysql -u root -ppasswordnya -e "show slave status \G;" | findstr /C:"Slave_SQL_Running: No" > NUL | |
if %errorlevel%==0 (GOTO:skipit) else (goto:fine) | |
:skipit | |
echo Skip error replikasi | |
rem buat file log error replikasi | |
echo Ada error @ %date% %time% >> "h:\executables\errorreplikasi.txt" | |
@mysql -u root -ppassword -e "show slave status \G;" >> "h:\executables\errorreplikasi.txt" | |
mysql -u root -ppasswordnya -e "stop slave;SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1;start slave;" |
This file contains hidden or 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
cls | |
echo off | |
rem Get date from google.com header and put it into file | |
@curl -s -I www.google.com | findstr "Date:" > datetime.txt | |
rem set variabel timenow as that file content, its in GMT so need to convert it into local timezone | |
@set /p timenow=< datetime.txt | |
@rem echo Jam GMT: %timenow% | |
rem Get the time only |
This file contains hidden or 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
(() => { | |
// | |
// GLOBAL VARS AND CONFIGS | |
// | |
var lastMessageOnChat = false; | |
var ignoreLastMsg = {}; | |
var elementConfig = { | |
"chats": [0, 0, 5, 2, 0, 3, 0, 0, 0], | |
"chat_icons": [0, 0, 1, 1, 1, 0], | |
"chat_title": [0, 0, 1, 0, 0, 0, 0], |