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 | |
// | |
// + List files & directories | |
// + Write & Run PHP snipet | |
// + https://gist.github.com/665addb757cfcff9be67.git | |
// | |
ini_set("display_errors", 1); | |
error_reporting(30711); |
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
<script> | |
d=new Date() | |
tahun=d.getFullYear() | |
bulan=d.getMonth() | |
lokasi=682 // bogor | |
location="http://simbi.kemenag.go.id/sihat/site/get_sholat?tahun="+ tahun +"&bulan="+ (bulan+1) +"&lokasi="+ lokasi +"&h=0&type=html" | |
</script> |
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
@echo off | |
if "%PHPBIN%" == "" set PHPBIN=C:\path\to\php.exe | |
"%PHPBIN%" "C:\path\to\composer.phar" %* |
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 //ext/tree/Node.php | |
namespace app\ext\tree; | |
use Yii; | |
class Node extends \kartik\tree\models\Tree | |
{ | |
public static function tableName() { | |
return 'tbl_tree'; | |
} |
Requirements:
- Ubuntu 16.04
- Apache2
- DNSMASQ
misalnya:
- http://site1.local --> /home/suphm/sites/site1/web
- http://site2.local --> /home/suphm/sites/site2/web
- http://subdomain.site2.local --> /home/suphm/sites/site2/web
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
<body style=width:900px><pre> | |
<?php | |
error_reporting(E_ALL); | |
createFileRecursive([ | |
'dir' => __DIR__, | |
'name' => '.nomedia', | |
'contents' => '', | |
'excludes' => [ |
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 | |
class xxx { | |
// To convert path string into multi-dimensional array compatible for jstree jquery plugin | |
public function getAllPermissions() { | |
$perms = [ | |
'usupha/repos', | |
'usupha/repos/new', | |
'usupha/projects', | |
'usupha/stars', |
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
pkexec chmod 777 /var/run/postgresql | |
/usr/lib/postgresql/10/bin/pg_ctl start -D /var/lib/postgresql/10/main | |
xfce4-terminal -e "/usr/lib/postgresql/10/bin/pg_ctl status -D /var/lib/postgresql/10/main" --hold | |
OlderNewer