Skip to content

Instantly share code, notes, and snippets.

View deanet's full-sized avatar
:octocat:
talk is cheap, show me the code

deanetdavid deanet

:octocat:
talk is cheap, show me the code
View GitHub Profile
# /etc/X11/xorg.conf
# Created by KNOPPIX # Delete this line if you don't want KNOPPIX to overwrite your /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
# Since evdev, manual keyboard/mice entries are mostly ignored:
# Keyboard auto-probed
@deanet
deanet / install-postgreesql-cpanel.sh
Created June 23, 2011 09:51
Installing Postgreesql on CPANEL
root@tera [~]# /scripts/installpostgres
This script will install PostgreSQL 7.3.x or later
If you have an older version installed you wil need to
Dump your databases to a file and then restore them
after the install as 7.3.x is not backwards compatible.
If you do not have any databases, you can just run:
mv /var/lib/pgsql /var/lib/pgsql.old
/sbin/service postgresql stop
/sbin/service postgresql start
to force creating a 7.3.x style setup. Do not do this if
@deanet
deanet / Enable PHP Internal WHM support PostgreSQL
Created June 24, 2011 01:59
installing PHP Postgresql Module
1. Edit /var/cpanel/easy/apache/profile/makecpphp.profile.yaml
ubah value :
Cpanel::Easy::PHP5::Pgsql: 1
2. eksekusi /scripts/makecpphp
@deanet
deanet / migrate-package-on-cpanel.bash
Created June 24, 2011 02:45
Migrate Package CPANEL
root@oberon [~]# /scripts/pkgacct aqiqah
pkgacct started.
pkgacct version 10 - user : aqiqah - tarball: 1 - target mysql : default - split: 0 - incremental: 0 - homedir: 1 - archive version: 3 - running with uid 0
pkgacct working dir : /home/cpmove-aqiqah
Copying Reseller Config...Done
Copying Suspension Info (if needed)...Done
Copying SSL Certificates, CSRS, and Keys...Done
Copying Domain Keys....Done
Copying Counter Data....Done
Copying Bandwidth Data......aqiqahaqilah.com-all-peak.rrd....aqiqah-imap-peak.rrd....aqiqahaqilah.com-http-peak.rrd....aqiqah-pop3-peak.rrd....aqiqah-pop3-rate.rrd....aqiqah-imap-rate.rrd....mail.aqiqahaqilah.com....aqiqah-smtp-rate.rrd....mail.aqiqahaqilah.com-all-peak.rrd....aqiqahaqilah.com-http-rate.rrd....mail.aqiqahaqilah.com-http-peak.rrd....aqiqah-ftp-rate.rrd....aqiqah-http-peak.rrd....aqiqah-smtp-peak.rrd....aqiqahaqilah.com-all-rate.rrd....aqiqah-ftp-peak.rrd....aqiqah-all-rate.rrd....aqiqahaqilah.com....mail.aqiqahaqilah.com-http-rate.rrd....aqiqah-all-peak.rrd....mail.a
@deanet
deanet / install-apc-and-uploadprogress.sh
Created June 24, 2011 07:22
INSTALL uploadprogress && INSTALL APC
## INSTALL uploadprogress dari pecl.php.net
masuk ke WHM, klik Module installer, pilih manage pecl, search upload progress lalu klik install. hasil ada di log-uploadprogress.txt
lalu kopi extension.so ke path lib yg dipake
root@neptune [~]# cp -a /usr/lib/php/extensions/no-debug-non-zts-20060613/uploadprogress.so /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
root@neptune [~]# php -m | grep upload
PHP: Error parsing /usr/local/lib/php.ini on line 790
@deanet
deanet / rm-rf.bash
Created June 25, 2011 03:15
BLOCK_IMAGE_FOREVER
bash-4.1$ cat filter.txt
[Adblock Plus 1.1]
! Checksum: CrhVbpiiXMGMRPg7bglwqQ
||static.4shared.com/images/*
||static.4shared.com^
||creative.ak.fbcdn.net/v41818/flyers/96/3/*
||creative.ak.fbcdn.net^
||kad.kaskus.us/banner/view/23/4/*
||http://photos-b.ak.fbcdn.net/*
@deanet
deanet / install-rrdtool-1.4.5.bash
Created June 30, 2011 09:54
Install RRD TOOL 1.4.5
428 wget -c http://oss.oetiker.ch/rrdtool/pub/libs/pixman-0.10.0.tar.gz
430 tar -xvf pixman-0.10.0.tar.gz
431 cd pixman-0.10.0
443 ./configure
444 make
445 make install
419 wget -c http://oss.oetiker.ch/rrdtool/pub/libs/cairo-1.6.4.tar.gz
@deanet
deanet / openldap.sh
Created July 31, 2011 03:55
Open LDAP
#!/bin/bash
#
# ldap This shell script takes care of starting and stopping
# ldap servers (slapd and slurpd).
#
# chkconfig: - 27 73 description: LDAP stands for Lightweight Directory Access Protocol, used \
# for implementing the industry standard directory services. processname: slapd config:
# /etc/openldap/slapd.conf pidfile: /var/run/openldap/slapd.pid
# Source function library.
export PATH=/usr/local/openldap2.4/bin:/usr/local/openldap2.4/sbin:/usr/local/openldap2.4/libexec:$PATH
@deanet
deanet / 0.readme
Created August 6, 2011 23:43
CGI WRAP PERL FCGI
http://alinux.web.id/2011/08/07/install-nginx-php-and-fcgi-perl-on-ubuntu.html
@deanet
deanet / 0.readme
Created August 14, 2011 06:14
MySQL Configuration
http://alinux.web.id/tags/MySQL.html