30 January 2012

wget multiple urls

usualy we do wget http://www.stephin/file/download.zip


but now i am going to show tell you how to download files to server from different different urls..

make a .txt files and put all the links in that loks like

 u may use linux command to make .txt file vi links.txt


finaly run wget -i links.txt


your files will get downloaded one by one...

yum no package available

1. Create and open a new file called /etc/yum.repos.d/dag.repo
(vi /etc/yum.repos.d/dag.repo )

2. Add the following text to the file:
[dag]
name=DAG RPM Repository
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

3. Finally, save and close the file.

Proxy list

US
http://4gproxy.info/
http://www.unblockfirewall.info/
http://Marineserver.info
http://proxite.net
http://Hideipfree.com
http://Worldwidewebserver.info
http://www.webproksee.info
http://desireanonymous.info
http://decreasesurf.info
http://nutritiousproxy.info
http://unblockablesite.info
http://xproxyweb.com
http://totalsiteunblocker.info

DE
http://proxy.thirteenthfloor.org
http://proxite.de
http://hidebuzz.com
http://schools-surfs.info
http://loans-capital.info/
http://hiload.org
http://te-ka.info
http://myview-surf2.info
http://miniprox.com
http://german-proxy.de
http://ultimateprox.com


NL
http://proxy.virtuaos.com
http://iplama.com
http://proxville.info

28 January 2012

redirect domain.com to www.domain.com using .htaccess

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]

sort by occurence of anyvalue in a column

SELECT * , COUNT( ref ) AS occurances FROM table GROUP BY ref ORDER BY occurances DESC

count the occurence of a word in a string

<?php
$str="hi how how r you how?";
echo substr_count($str, 'how');
?>

this will give outpus as "3"
since "how" occured in the string 3 times.