Skip to content

Instantly share code, notes, and snippets.

# Build Python 3.6.x di Ubuntu 9test 14.04,16.04
# dengan --enable-optimizations, butuh test 2 jam-an :(
./configure --prefix=/opt/python36 --enable-shared \
--enable-loadable-sqlite-extensions \
--with-dbmliborder=bdb:gdbm \
--with-computed-gotos \
--without-ensurepip \
--with-system-expat \
--with-system-libmpdec \
--with-system-ffi \
<?php
function Redirect($url, $permanent = false) {
if (headers_sent() === false)
{
header('Location: ' . $url, true, ($permanent === true) ?
301 : 302);
}
exit();
<?php
/**
* This script can be used for generating PHP model for PDT.
* It builds PHP functions according to the loaded extensions in running PHP,
* using complementary information gathered from PHP.net documentation
*
* @author Michael Spector <[email protected]>
*/
if (version_compare(phpversion(), "5.0.0") < 0) {
<?php
/**
* This script can be used for generating PHP model for PDT.
* It builds PHP functions according to the loaded extensions in running PHP,
* using complementary information gathered from PHP.net documentation
*
* @author Michael Spector <[email protected]>
*/
if (version_compare(phpversion(), "5.0.0") < 0) {
@gwijayas
gwijayas / gist:2f2efa78ff665a6638b9
Created March 21, 2015 09:05
ubuntu install python 2.7.9 with pyenv
CONFIGURE_OPTS="--enable-unicode=ucs4 --with-dbmliborder=bdb:gdbm --with-system-expat --with-system-ffi --with-fpectl --enable-ipv6" pyenv install 2.7.9
perl Makefile.PL MP_TRACE=0 MP_USE_DSO=1 MP_USE_STATIC=0 MP_APR_CONFIG=/home/wijaya/opt/apache/bin/apr-1-config MP_APXS=/home/wijaya/opt/apache/bin/apxs
perl Makefile.PL --with-apache2-apxs=/home/wijaya/opt/apache/bin/apxs --prefix=/home/wijaya/opt/apache
@gwijayas
gwijayas / gist:3689ae2501828dd0ae3b
Last active August 29, 2015 14:04
build perl static
CFLAGS='-O3 -march=native -mtune=native' ./Configure -des -Uuseshrplib -Dusethreads -Duselargefiles -Dprefix=/home/wijaya/opt/perl -Duse64bitint -Uafs -Ud_csh -Ud_ualarm -Uusesfio -Uusenm -Ui_libutil -A ccflags=-fPIC
@gwijayas
gwijayas / gist:9927465
Created April 2, 2014 03:25
update git submodule
git submodule foreach git pull origin master
@gwijayas
gwijayas / gist:8744115
Created January 31, 2014 21:58
ct spywaredomains.zones
grep -Eo "zone \"([a-z0-9.\-]+)" spywaredomains.zones | cut -d\" -f2