Skip to content

Instantly share code, notes, and snippets.

View fatkulnurk's full-sized avatar
🤫
Bernafaslah, agar memberikan makanan bagi tanaman

Fatkul Nur Koirudin fatkulnurk

🤫
Bernafaslah, agar memberikan makanan bagi tanaman
View GitHub Profile
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 20 Jul 2018 pada 16.23
-- Versi server: 10.1.30-MariaDB
-- Versi PHP: 7.2.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
/**
* {@inheritdoc}
*/
public static function findIdentity($id)
{
return static::findOne($id);
}
/**
public function actionLogin()
{
if (!Yii::$app->user->isGuest) {
return $this->goHome();
}
$session = Yii::$app->session;
$session->open();
echo "
zone \"fatkul.com\"{
type master;
file \"/var/cache/bind/db.fatkulcom\";
};
zone \"fatkul.edu\"{
type master;
file \"/var/cache/bind/db.fatkuledu\";
};
@fatkulnurk
fatkulnurk / php-Knuth-Morris.php
Created December 4, 2017 14:39
Algoritma Knuth-Morris-Pratt
<?php
// Referensi :
// https://id.wikipedia.org/wiki/Algoritma_Knuth-Morris-Pratt
// https://stackoverflow.com/questions/44081348/is-it-possible-to-use-knuth-morris-pratt-algorithm-for-string-matching-on-text-t
// http://www.elangsakti.com/2013/03/implementasi-algoritma-string-matching.html
// https://stackoverflow.com/questions/29439930/knuth-morris-pratt-string-search-algorithm
// https://stackoverflow.com/questions/5873935/how-to-optimize-knuth-morris-pratt-string-matching-algorithm
// https://stackoverflow.com/questions/13271856/understanding-knuth-morris-pratt-algorithm
//
//
@fatkulnurk
fatkulnurk / .htaccess
Created December 3, 2017 03:54
Expire headers .htaccess code.
<IfModule mod_expires.c>
ExpiresActive on
# Perhaps better to whitelist expires rules? Perhaps.
ExpiresDefault "access plus 1 month"
# Data
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"