Archive for January 19th, 2010
-
Backup all databases & store procs
Tuesday, January 19th, 2010
mysqldump -u root -pMysqlPassword -R –all-databases > alldbdump_1Jan2010.sql
-
Modification of QUERY STRING in apache
Tuesday, January 19th, 2010
Case-1) Browser URL ~ http://server1.domain.com/site/test.act?affiliate=123456 When you access this url then internal rewrite rule will change url to -> http://server1.domain.com/app/test_123456.php Physical file – [root@server1 app]# cat /var/www/html/app/test_123456.php Hello “String redirect to here” [root@server1 app]# Case-2) Browser URL ~ http://server1.domain.com/app/reverse_123456.php OR http://server1.domain.com/app/reverse_ABCD1234.php When you access this url then internal rewrite rule will change the url to [...]
-
How to convert bash scripts into binary’s, so no one can read it
Tuesday, January 19th, 2010
shc Shc is a generic shell script compiler. It takes a script which is specified on the command line and produces C source code. The generated source code is then compiled and linked to produce a stripped binary executable. http://www.datsi.fi.upm.es/~frosal/ Easy to use. Its current version is 3.8.6. Typical install: make test make strings make [...]
-
Setup VPN in Linux
Tuesday, January 19th, 2010
Login As root Vi /etc/ppp/chap-secrets # Secrets for authentication using CHAP # client server secret IP addresses ####### redhat-config-network will overwrite this part!!! (begin) ########## ####### redhat-config-network will overwrite this part!!! (end) ############ #VPN username channelName “VPN password” * vi /etc/ppp/peers/channelName # written by pptpsetup pty “pptp vpn.company.com –nolaunchpppd” lock noauth nobsdcomp nodeflate name VPN [...]




