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 | |
/** | |
* IndonesiaDateTime. | |
* | |
* Extends Class DateTime agar memberikan format penamaan hari dan bulan dalam | |
* bahasa Indonesia. | |
* | |
* @author: IjorTengab | |
* @last_update: 2020 11 14 |
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 | |
// Direktori: /usr/local/ispconfig/interface/lib | |
$conf['webmail_url'] = 'https://webmail.example.com'; |
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
#!/bin/bash | |
# Filename: pull-db.sh | |
# Author: IjorTengab (http://ijortengab.id) | |
# Last Update: 2018-02-19 | |
# Begin of Variables. Set by your own value. | |
# SSH. | |
REMOTE_SSH_HOST=example.com | |
REMOTE_SSH_PORT=22 | |
REMOTE_SSH_USER=user |
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 | |
namespace IjorTengab; | |
class Directory | |
{ | |
protected $path; | |
protected $list = array(); | |
protected $filter_dir_only = false; | |
protected $has_listing = false; |
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
#!/bin/bash | |
# Filename: mysqldump.sh | |
# Author: IjorTengab (http://ijortengab.id) | |
# Last Update: 2018-02-07 | |
# | |
# Variables. Set by your own value. | |
HOST= | |
USER= | |
PASSWORD= | |
DATABASE= |
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 | |
function apakahIniGanjil($nilai) { | |
$nilai = intval($nilai); | |
return ($nilai % 2 == 1); | |
} | |
function cetakPertanyaanJawaban($nilai) { | |
$jawaban = apakahIniGanjil($nilai) ? 'Ya':'Tidak'; | |
echo "Apakah $nilai adalah bilangan ganjil?"; |
NewerOlder