Skip to content

Instantly share code, notes, and snippets.

@gwijayas
gwijayas / gist:8631041
Created January 26, 2014 10:42
check ip lan
for ip in $(seq 1 254); do ping -c 1 192.168.0.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.0.$ip UP" || : ; done
@gwijayas
gwijayas / gist:8333907
Last active January 2, 2016 16:59
vim YouCompleteMe clang support with system version of clang
cmake -G "Unix Makefiles" -DUSE_SYSTEM_LIBCLANG=ON . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp
make ycm_support_libs
@gwijayas
gwijayas / gist:7355665
Created November 7, 2013 14:41
compile youcompleteme
cmake -G "Unix Makefiles" -DPATH_TO_LLVM_ROOT=/opt/llvm33 . ~/.vim/bundle/YouCompleteMe/cpp
@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
@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: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: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: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:5719494
Created June 6, 2013 05:25
piecrust test default.twig
<html>
<body>
{{ content|raw }}
</body>
</html>
@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>