Required Headers
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 | |
// file name to put json | |
$fileName = '/path/to/data.json'; | |
/** | |
* This just sample stmt | |
* @var \PDO $pdo | |
* @var \PDOStatement $stmt | |
*/ | |
$stmt = $pdo | |
->query("SELECT * FROM XXXXXXXX"); |
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 | |
// sample HTML | |
$url = 'https://www.shunt-magetan.org/wp-content/uploads/wordpress-popular-posts/1904-featured-75x75.jpg?test=1'; | |
$url2 = 'https://www.shunt-magetan.org/wp-content/uploads/wordpress-popular-posts/1904-featured-2-75x75.jpg?test=2'; | |
$html = <<<HTML | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf8"> | |
<title>SAMPLE</title> |
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
{ | |
"uri": "(string:url:endpoint:follow the stage)", | |
"path": "/kk", | |
"method" : "POST", | |
"headers": { | |
"Content-Type": "application/json" | |
}, | |
"body": { | |
"fileName": "(string:plain => FileName.jpeg)", | |
"image": "(string:base64Encoded => image binary)" |
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 | |
# Binary Compilation Placed on | |
# /opt/ | |
# Please Make Sure no /opt/bin/ or /opt/lambda/ directory | |
# CENTOS x64 only | |
######################################################## | |
#### NOTE PLEASE RUN ##### | |
#$ rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm | |
# |
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
{ | |
"data": { | |
"sub_header": { | |
"head_of_household": "", | |
"sub_district": "", | |
"address": "", | |
"urban_village": "", | |
"city": "", | |
"rt_rw": "", | |
"postal_code": "", |
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
{ | |
"time": 1543829671, | |
"data": { | |
"id": 2, | |
"kode": "31", | |
"nama": "Provinsi DKI Jakarta", | |
"portal": "jakarta.prov", | |
"kabupaten": [ | |
{ | |
"id": 66, |
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
/* | |
* Resolve Google Map v3 without API Key | |
* since june 22 2016 | |
* Put on body and load before map render | |
*/ | |
(function (window) { | |
if (!window.document) { | |
return; | |
} |
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 | |
# | |
# Pentagonal | |
# Ubuntu (Based) Php, Nginx, MariaDB Installer | |
# youtube: https://www.youtube.com/pentagonalOrg | |
# email: [email protected] | |
# | |
isDefaultOk=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
<?php | |
/** | |
* Copyright (c) 2017. | |
* @license GPL-3 or Later {@link https://www.gnu.org/licenses/gpl-3.0.html} | |
*/ | |
declare(strict_types=1); | |
namespace Pentagonal\Sample\Util; |
NewerOlder