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 MetaReplacer | |
*/ | |
class MetaReplacer | |
{ | |
/** | |
* Path to HEXO source | |
* |
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name _; | |
return 301 https://$host$request_uri; | |
} |
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
http://freevps.us/downloads/bench.sh | |
====================================================== | |
yang lama: | |
root@arie:~# bash bench.sh | |
CPU model : Intel(R) Xeon(R) CPU E31230 @ 3.20GHz | |
Number of cores : 4 | |
CPU frequency : 1197.348 MHz |
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
# server #1 | |
CPU model : Intel(R) Xeon(R) CPU E31230 @ 3.20GHz | |
Number of cores : 4 | |
CPU frequency : 1197.348 MHz | |
Total amount of ram : 1536 MB | |
Total amount of swap : 0 MB | |
System uptime : 4 days, 20:46, | |
Download speed from CacheFly: 9.95MB/s | |
Download speed from Coloat, Atlanta GA: 9.48MB/s | |
Download speed from Softlayer, Dallas, TX: 9.54MB/s |
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
# | |
# Server Debian 6 | |
# Nginx 1.2.7 | |
# | |
server { | |
listen 80; | |
server_name arie.malam.or.id; | |
root /opt/sites/arie.malam.or.id; |
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 | |
defined('SYSPATH') or die('No direct script access.'); | |
class Field_Slug extends Jelly_Field_Slug | |
{ | |
public function save($model, $value, $loaded) | |
{ | |
return $this->set_slug($value); | |
} |
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
APPPATH | |
|- classes | |
|- field | |
| - slug.php // class Field_Slug | |
| | |
|- jelly | |
| - meta.php // class Jelly_Meta | |
| | |
- jelly.php // class Jelly |
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
id | name | slug | |
-------------------------------------- | |
1 | contoh kategori | contoh-kategori |
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 Model_Category extend Jelly_Model | |
{ | |
public static function initialize(Jelly_Meta $meta) | |
{ | |
/** | |
* defaultnya sih categories, tapi kalo kita punya table berbeda, | |
* pake method table() buat definisi nama table | |
*/ |
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 | |
$category = Jelly::factory('category'); | |
$category->name = 'Contoh kategori ke-2'; | |
$category->save(); |
NewerOlder