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
<div style="background-color:#ecf0f1; font-family:Open Sans, Helvetica, sans-serif; font-size:15px; line-height:1.5em; color:#2c3e50; padding:30px; margin:auto;"> | |
<div id="header" style="margin-bottom:20px; width: auto; padding:20px; margin:auto; max-width: 600px; font-family:Open Sans, Helvetica, sans-serif; font-size:28px; font-weight:500; line-height:1.5em; color:#2c3e50;"><a class="brand" href="http://{$site_url}" style="color:#2c3e50;">{$site_title}</a></div> | |
<div id="body" style="margin-bottom:20px; background-color:#fff; padding:20px; border-radius:4px; -moz-border-radius:4px; -webkit-border-radius:4px; border:1px solid #e8e8e8; width: auto; max-width: 600px; margin:auto;"> | |
<p>{$email_content}</p> | |
</div> | |
<div class="footer" style="text-align: center; color: #7F8C8D; font-size: 14px; max-width: 600px; padding: 20px; margin: auto;"></div> | |
</div> |
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
INSERT INTO `users` (`id`, `firstname`, `lastname`, `email`, `username`, `password`, `modified`) VALUES | |
(28, 'John', 'Dalisay', '', 'john', 'john123', '2012-01-15 07:26:14'), | |
(39, 'Jem', 'Panlilio', '', 'jemboy09', 'jem123', '2012-01-15 07:26:46'), | |
(40, 'Darwin', 'Dalisay', '', 'dada08', 'dada123', '2012-01-15 07:25:34'), | |
(46, 'Jaylord', 'Bitamug', '', 'jayjay', 'jay123', '2012-01-15 07:27:04'), | |
(49, 'Justine', 'Bongola', '', 'jaja', 'jaja123', '2012-01-15 07:27:21'), | |
(50, 'Jun', 'Sabayton', '', 'jun', 'jun123', '2012-02-05 10:15:14'), | |
(51, 'Lourd', 'De Veyra', '', 'lourd', 'lourd123', '2012-02-05 10:15:36'), | |
(52, 'Asi', 'Taulava', '', 'asi', 'asi123', '2012-02-05 10:15:58'), | |
(53, 'James', 'Yap', '', 'james', 'jame123', '2012-02-05 10:16:17'), |
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
CREATE TABLE IF NOT EXISTS `users` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`firstname` varchar(32) NOT NULL, | |
`lastname` varchar(32) NOT NULL, | |
`email` varchar(32) NOT NULL, | |
`username` varchar(32) NOT NULL, | |
`password` varchar(32) NOT NULL, | |
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ; |
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 | |
/** | |
* simple encrypt & decrypt for POC | |
* @param type $string | |
* @param type $key | |
* @return type | |
*/ | |
function encrypt($string, $key) | |
{ |
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
openssl.cafile=/Applications/XAMPP/etc/cacert.pem |
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
[Composer\Downloader\TransportException] | |
The "https://getcomposer.org/version" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: | |
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed | |
Failed to enable crypto | |
failed to open stream: operation failed |
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
~ java -version | |
java version "1.8.0_25" | |
Java(TM) SE Runtime Environment (build 1.8.0_25-b17) | |
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode) |
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 | |
/** | |
* 1st. make sure you've created your access key in IAM. then configure credential file in the following path | |
* | |
* ~/.aws/credentials | |
* enter credentials info as below.. | |
[default] | |
aws_access_key_id = YOUR_ACCESS_KEY_ID | |
aws_secret_access_key = YOUR_SECRET_ACCESS_KEY |
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 | |
//contoh hash yang hendak di semak | |
$lookup_txt = 'sample1-123'; | |
var_dump(is_txt_exist('ibnuyahya.com',$lookup_txt)); | |
function is_txt_exist($tld,$lookup_txt){ | |
$txts = dns_get_record($tld,DNS_TXT); | |
foreach ($txts as $txt) { | |
if($lookup_txt ==$txt['txt'] ) |
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 | |
$arr = [ | |
'a' => [ | |
0=>[ | |
'file_name'=>'abc', | |
'file_type'=>'image/jpeg', | |
], | |
1=>[ | |
'file_name'=>'def', |