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
vcl 4.0; | |
import std; | |
import directors; | |
backend server1 { # Define one backend | |
.host = "localhost"; | |
.port = "8080"; | |
.max_connections = 300; |
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
+---------------------------------+------------------------------------------+ | |
| Variable_name | Value | | |
+---------------------------------+------------------------------------------+ | |
| auto_increment_increment | 1 | | |
| auto_increment_offset | 1 | | |
| automatic_sp_privileges | ON | | |
| back_log | 50 | | |
| basedir | / | | |
| binlog_cache_size | 32768 | | |
| bulk_insert_buffer_size | 8388608 | |
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
[mysql] | |
# CLIENT # | |
port = 3306 | |
socket = /var/lib/mysql/mysql.sock | |
[mysqld] | |
# GENERAL # | |
user = mysql | |
default-storage-engine = InnoDB |
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
Timeout 150 | |
TraceEnable Off | |
ServerSignature Off | |
ServerTokens ProductOnly | |
FileETag None | |
StartServers 3 | |
<IfModule prefork.c> | |
MinSpareServers 5 | |
MaxSpareServers 10 | |
</IfModule> |
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
/* | |
Buat file dengan nama read_time.php | |
taruh di dalam main theme | |
/themes/<nama theme>/ | |
*/ | |
<?php | |
$post = get_post(); | |
$mycontent = $post->post_content; | |
$word = str_word_count(strip_tags($mycontent)); | |
$m = floor($word / 200); $s = floor($word % 200 / (200 / 60)); |
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
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteCond %{REQUEST_URI} !/repair.html$ [NC] | |
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC] | |
RewriteRule .* /repair.html [R=302,L] | |
</IfModule> | |
#repair.html adalah halaman untuk menampilkan pemberitahuan bahwa situs maintenance |
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
/* | |
@author by Faris | |
@php version php 5.4.24 | |
@wordpress 4.5 | |
@plugin FL3R FeelBox Version 8.0 | |
Error | |
Parse error: syntax error, unexpected T_FUNCTION in /fl3r-feelbox/feelbox-admin.php on line 246 | |
*/ | |
/* | |
error at line 246 |
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
function jetpack_infinite_scroll_query_args( $args ) { | |
$args['order'] = 'ASC'; | |
$args['orderby'] = 'name'; | |
return $args; | |
} | |
add_filter( 'infinite_scroll_query_args', 'jetpack_infinite_scroll_query_args' ); |
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 | |
//Pilihan_Atas : 11 | |
//Pilihan_Bawah : 12 | |
//Featured : 13 | |
//Function mode | |
// | |
function the_category_filter($thelist,$separator='') { | |
if(!defined('WP_ADMIN')) { | |
//list exclude |
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
/* | |
Konversi angka, | |
nah angka disini yaitu 1000 dan 1000000.. | |
untuk angka 1000 menjadi 1K | |
nah untuk 1000000 menjadi 1M | |
*/ | |
// konversi | |
function round_numb($totalshares){ | |
if( $totalshares > 1000000 ) { | |
$totalshares = round( $totalshares / 1000000, 1 ) . 'M'; |
OlderNewer