Skip to content

Instantly share code, notes, and snippets.

@gwijayas
gwijayas / git2.php
Created December 9, 2012 04:15
php-git class and function list
<?php
// Start of git2 v.0.2.1
class Git2_Repository {
/**
* @param repository_path
*/
public function __construct ($repository_path) {}
<?php
use PieCrust\IPieCrust;
use PieCrust\Formatters\IFormatter;
class SundownFormatter implements IFormatter
{
protected $pieCrust;
@gwijayas
gwijayas / gist:5719483
Created June 6, 2013 05:23
piecrust test config.yml
site:
title: 'My New Website'
description: 'A website recently generated with PieCrust.'
author: jaya
pretty_urls: true
markdown:
use_markdown_extra: true
@gwijayas
gwijayas / gist:5719488
Created June 6, 2013 05:24
piecrust test _index.html
---
title: my Blog
format: none
layout: default.twig
---
{% for post in pagination.posts %}
<article>
<h2>{{ post.title }}</h2>
<p>{{ post.content|raw }}</p>
</article>
@gwijayas
gwijayas / gist:5719494
Created June 6, 2013 05:25
piecrust test default.twig
<html>
<body>
{{ content|raw }}
</body>
</html>
@gwijayas
gwijayas / gist:5719519
Created June 6, 2013 05:31
2013-05-11_semoga-bisa.md
title
Test Post Pertama

Hello World

lorem ipsum dolar sit amet

the World, What a beautiful it is.

@gwijayas
gwijayas / gist:5719523
Created June 6, 2013 05:32
2013-05-12_semoga-bisa2.md
title
Test Post Pertama2

Hello World2

lorem ipsum dolar sit amet

the World, What a beautiful it is.

@gwijayas
gwijayas / gist:7117738
Created October 23, 2013 12:28
Apache 2.2 MPM Prefork
./configure --prefix=/opt/apache --with-included-apr --enable-so --with-program-name=apache2 --enable-log-config=static --enable-logio=static --enable-version=static --with-pcre=yes --enable-pie --enable-authn-alias=shared --enable-disk-cache=shared --enable-cache=shared --enable-mem-cache=shared --enable-file-cache=shared --enable-cern-meta=shared --enable-dumpio=shared --enable-ext-filter=shared --enable-charset-lite=shared --enable-cgi=shared --enable-log-forensic=shared --enable-proxy=shared --enable-proxy-connect=shared --enable-proxy-http=shared --enable-proxy-ajp=shared --enable-proxy-scgi=shared --enable-proxy-balancer=shared --enable-ssl=shared --enable-authn-dbm=shared --enable-authn-anon=shared --enable-authn-dbd=shared --enable-authn-file=shared --enable-authn-default=shared --enable-authz-host=shared --enable-authz-groupfile=shared --enable-authz-user=shared --enable-authz-dbm=shared --enable-authz-owner=shared --enable-authz-default=shared --enable-auth-basic=shared --enable-auth-digest=shared -
@gwijayas
gwijayas / gist:7124113
Created October 23, 2013 18:37
php 5.4 mod_php
./configure --prefix=/opt/php/5.4 --with-regex=php --disable-debug --disable-rpath --with-pic --with-layout=GNU --without-pear --enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-bcmath --with-bz2 --enable-ctype --with-db4 --without-gdbm --with-iconv --enable-exif --enable-ftp --with-gettext --enable-mbstring --with-pcre-regex=/usr --enable-shmop --enable-sockets --enable-wddx --with-libxml-dir=/usr --with-zlib --with-kerberos=/usr --with-openssl --enable-soap --enable-zip --with-mhash=yes --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-apxs2=/opt/apache/bin/apxs --with-config-file-path=/opt/php/5.4/etc --with-config-file-scan-dir=/opt/php/5.4/etc/conf.d --without-mm --with-curl=shared,/usr --with-enchant=shared,/usr --with-zlib-dir=/usr --with-gd --enable-gd-native-ttf --with-gmp=shared,/usr --with-jpeg-dir=shared,/usr --with-xpm-dir=shared,/usr/X11R6 --with-png-dir=shared,/usr --with-freetype-dir=shared,/usr --enable-intl=shared --without-t1lib --with-ldap=shared,/usr --with-l
@gwijayas
gwijayas / gist:7355646
Created November 7, 2013 14:40
compile vim
./configure --prefix=/opt/vim --enable-fail-if-missing --enable-cscope --enable-gpm --with-features=huge --enable-multibyte --enable-acl --with-x --enable-xim --enable-gui=gtk2 --disable-gnome-check --enable-gtk2-check --disable-motif-check --disable-athena-check --disable-fontset --enable-pythoninterp --enable-luainterp --enable-perlinterp --disable-mzschemeinterp --disable-python3interp --enable-rubyinterp