using wget:
---------------------------------------------------------------------------
wget \
--save-cookies ~/.cookies/rapidshare \
--post-data "login=USERNAME&password=PASSWORD" \
--no-check-certificate \
-O - \
https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi \
> /dev/null
---------------------------------------------------------------------------
--save-cookies defines the location the cookie will be stored
--post-data provides the login form with your account's data
--no-check-certificate don't validate the server's certificate
-O downloads the html page to get the cookie and then it deletes it by redirecting it to /dev/null
Of course you must replace USERNAME and PASSWORD with your account details.
create a bash script file (save as rapiddownloader.sh):
--------------------------------------------------------------
#!/bin/bash
for url in `cat $1`
do
wget -c --load-cookies ~/.cookies/rapidshare $url
done
--------------------------------------------------------------
then:
chmod +x rapiddownloader.sh
command:
./downloader.sh urls
here urls is a text file containing urls of file in rapidshare
using aria2:
aria2c --http-user=USERNAME --http-passwd=PASSWORD -i urls -j 2 -s 4
Wednesday, December 16, 2009
Friday, November 13, 2009
GWT Hosted Mode on 64 Bit Ubuntu
Here's how I got GWT 1.7 Hosted Mode to work on my 64 bit Ubuntu Karmic Koala 9.10 laptop. These instructions should also work on Jaunty (9.04)
source: from this blog
- Install ia32-sun-java6-bin:
- sudo apt-get install ia32-sun-java6-bin
sudo apt-get install ia32-sun-java6-bin
- Make sure the default Java installation remains the 64 bit one
- sudo update-java-alternatives --set java-6-sun
sudo update-java-alternatives --set java-6-sun
- Download libstdc++5 for IA32 from Jaunty repos: http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb
- Extract the libstdc++.so.5 file
- dpkg-deb --fsys-tarfile libstdc++5_3.3.6-17ubuntu1_i386.deb | tar -O --extract './usr/lib/libstdc++.so.5.0.7' > libstdc++.so.5
dpkg-deb --fsys-tarfile libstdc++5_3.3.6-17ubuntu1_i386.deb | tar -O --extract './usr/lib/libstdc++.so.5.0.7' > libstdc++.so.5
- Move the extracted file to /usr/lib32
- sudo mv libstdc++.so.5 /usr/lib32
sudo mv libstdc++.so.5 /usr/lib32
- Run
- sudo ldconfig
sudo ldconfig
- Start GWT:
- JAVA_HOME=/usr/lib/jvm/ia32-java-6-sun mvn gwt:run
- JAVA_HOME=/usr/lib/jvm/ia32-java-6-sun mvn gwt:run
Tuesday, September 29, 2009
How to Download ebooks from flazx.com
install forefox addon : Greasemonkey
insall Flazx Download Helper from this link:
http://userscripts.org/scripts/show/57408
now you can directly download ebooks :)
insall Flazx Download Helper from this link:
http://userscripts.org/scripts/show/57408
now you can directly download ebooks :)
Saturday, August 8, 2009
How to change the Ubuntu Loading screen
Run both of these and you will be fine.
sudo update-alternatives --config usplash-artwork.so
sudo dpkg-reconfigure linux-image-$(uname -r)
Both have to be ran otherwise the change you make with step one will not take effect.
sudo update-alternatives --config usplash-artwork.so
sudo dpkg-reconfigure linux-image-$(uname -r)
Both have to be ran otherwise the change you make with step one will not take effect.
Wednesday, July 8, 2009
Wednesday, June 3, 2009
Digg Inside *.dmg File
That being said - .dmg files are just compressed files, and you CAN access them - although it probably won't be of much use since you still won't be able to run the binaries enclosed within. Go to this web site, and download dmg2img source code. Now, you will need the build-essential package in order to compile from source code, so open up a terminal and type:
Code:
sudo apt-get install build-essential
Now, you need to compile dmg2img. In the terminal, use 'cd' to get to wherever the source code archive downloaded to, then:
Code:
tar -zxvf ./dmg2img.tar.gz
cd dmg2img
make all
Once that's done, use the following commands to convert, then mount, the .dmg file:
Code:
./dmg2img -i /path/to/dmg_file_to_convert.dmg -o /path/to/img_file_to_output.img
sudo modrobe hfsplus
sudo mount -t hfsplus -o loop /path/to/img_file.img /mount_point
Now you need to change to the mounted directory, and you'll be able to see the files contained in the .dmg file:
Code:
cd /mount_point
ls
Hope that helps! At least you'll be able to see what's inside the .dmg file.
If you can find Mac software which is open source, you me able to compile a version so that it runs on Linux.
Code:
sudo apt-get install build-essential
Now, you need to compile dmg2img. In the terminal, use 'cd' to get to wherever the source code archive downloaded to, then:
Code:
tar -zxvf ./dmg2img.tar.gz
cd dmg2img
make all
Once that's done, use the following commands to convert, then mount, the .dmg file:
Code:
./dmg2img -i /path/to/dmg_file_to_convert.dmg -o /path/to/img_file_to_output.img
sudo modrobe hfsplus
sudo mount -t hfsplus -o loop /path/to/img_file.img /mount_point
Now you need to change to the mounted directory, and you'll be able to see the files contained in the .dmg file:
Code:
cd /mount_point
ls
Hope that helps! At least you'll be able to see what's inside the .dmg file.
If you can find Mac software which is open source, you me able to compile a version so that it runs on Linux.
Remove MBR using dd command
Remove all:
dd if=/dev/zero of=/dev/HDD count=1 bs=512
Without partition table:
dd if=/dev/zero of=/dev/HDD bs=446 count=1
HDD is your hard drive letter
dd if=/dev/zero of=/dev/HDD count=1 bs=512
Without partition table:
dd if=/dev/zero of=/dev/HDD bs=446 count=1
HDD is your hard drive letter
Thursday, February 12, 2009
Downloading from Restrictive Sites using wget
save these strings in a file named .wgetrc in home dir
header = Accept-Language: en-us,en;q=0.5
header = Accept: text/xml,application/xml,application/xhtml+xml,--
--text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
header = Accept-Encoding: gzip,deflate
header = Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
header = Keep-Alive: 300
user_agent = Mozilla/5.0 (Windows; U;--
--Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/3.0.6
referer = http://www.google.com
-------------------------------------
cmd:wget -dnv http://web/site/add
--(must be in a single line)
download one type of file from a site using wget
wget -r -l1 -A.file_ext --no-parent http://web/location/
Sunday, January 25, 2009
Sunday, January 18, 2009
how to mirror using wget
wget --mirror –w 2 –p --html-extension --convert-links -P gwt_doc http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html
Subscribe to:
Posts (Atom)
list open ports and unix sockets
To do this I use netstat command to list all open ports: $ sudo netstat -tuplen to list open ports and unix sockets: $ sudo netstat -...
-
[ These steps may work on CentOS 5.* too] Prepare your OS for it $ sudo yum groupinstall "Development tools" $ sudo yum in...
-
I used to told my friends that "HUMAN IS GOD" and as usual they don't accept it because they cant, now its time to rethink ha ...