Installing Subversion on Ubuntu

Assuming that apache is installed! Install packages apt-get install subversion libapache2-svn libapache-mod-dav Enable SSL a2enmod Add “Listen 443″ into httpd.conf if needed. Install SSL apt-get install ssl-cert mkdir /etc/apache2/ssl /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/site-name.crt Adding Basic Authentication: htpasswd2 -c -m /home/path-to/svn/project/.htpasswd username Configure site cp /etc/apache2/sites-available/default /etc/apache2/sites-available/site-name nano /etc/apache2/sites-available/site-name <VirtualHost IP_ADDRESS:443> ServerName hostname DocumentRoot /home/path-to/svn SSLEngine on [...]

0 Comments , , , , ,

Transfer files between servers

With Secure Copy (slowest) : scp -r dir user@destination-host:/tmp/ Tar through SSH: tar czpf – dir | ssh user@destination-host tar xzpf – -C /tmp/ Tar with Netcat (fastest): On destination-host: nc -l -p 7000 | tar xzpf – -C /tmp/ On source-host: tar czpf – dir | nc -w 10 destination-host 7000 For the methods [...]

0 Comments

Transfering

0 Comments

Zend Server CE (Community Edition)

Today, after a long time messing up with XAMPP, MAMP and the Web Sharing – or default Web Server of Mac OS X, I found out a very new product which is free to “grand” public: Zend Server CE (Community Edition). There are Linux, Windows and Mac OS X versions. The versions for Unix-like OS [...]

1 Comments

SSH Tunneling

If you are behind a firewall which forbids you to use some useful ports, and if you can create an SSH outside, to the “internet cloud”, here is your solution.

0 Comments

VTC – Leopard

Hôm nay ngồi lên thử VTC xem tivi quốc khánh tự nhiên thấy cái nền bắt chước MacOS X Leopard hehe nản )

0 Comments

Limit IP Connection + Apache

http://dominia.org/djao/limit/win32/mod_ipconn.zip httpd.conf LoadModule status_module modules/mod_status.so ExtendedStatus On LoadModule limitipconn_module modules/mod_limitipconn.dll <IfModule mod_limitipconn.c> <Location /> MaxConnPerIP 3 NoIPLimit images/* </Location> <Location /mp3> MaxConnPerIP 1 OnlyIPLimit audio/mpeg video </Location> </IfModule>     cd /usr/src wget http://dominia.org/djao/limit/mod_li…nn-0.04.tar.gz tar xzvf mod_limitipconn-0.04.tar.gz cd mod_limitipconn-0.04 pico Makefile find the line that reads APXS=apxs[/b] change that to  APXS=/usr/local/apache/bin/apxs press cntrl O to save then cntrl X  [...]

0 Comments

Phờ cả người

Vừa ngủ dậy, phờ phạc, chả định post gì cả nên . tại đây! need a big hug! A2AMS After Ngày hôm qua ở lại

0 Comments

WPVN-MediaTek

I made a media player plugin for WordPress which enables to embed an FLV and ,MP3 and YouTube link into player in Posts or Pages. If you do not put [=title], the file name will be put before the player. 2009.04.27: New version: 1.3.0 Updated player to v4.4 YouTube supported Media Button above the text [...]

0 Comments

WordPress Highlighted

http://codex.wordpress.org/Category_Templates

0 Comments

Ad Distribution Code Improved

After a 2-hour outage, came up with an idea to redistribute ad from two server, in which one is main server and other is the backup one, checking for the connection to the main server in 2 sec, then 2 sec for verifying the backup server is also online, if after 4 sec there is [...]

3 Comments