Save streaming video using mplayer
$ mplayer -dumpstream -dumpfile stream_video_name.wmv mms://example.com/video_name.wmv
a christian web developer’s random writings
Archive for the ‘Linux’ Category.
$ mplayer -dumpstream -dumpfile stream_video_name.wmv mms://example.com/video_name.wmv
$ iconv --from-code=ISO-8859-1 --to-code=UTF-8 latin1.txt > utf8.txt
or simply
$ iconv -f ISO-8859-1 -t UTF-8 latin1.txt > utf8.txt
$ iconv -t ISO-8859-1 -f UTF-8 inputfile > outputfile
RedirectMatch 301 (.*)$ http://www.newdomainhere.com$1
Save this into .htaccess and upload on the root directory on your old domain.
$ sudo mount -o loop /path/to/feisty-desktop-i386.iso /tmp/ubuntu-livecd
This command will replace all instances of ‘replaceme’ with ‘newstring’ in files ‘*.php’ on /home/mysite/httpdocs.
find /home/mysite/httpdocs -name '*.php' | xargs replace 'replaceme' 'newstring' --
208.67.222.222 and 208.67.220.220 on your /etc/resolv.conf.http://www.opendns.com/support/cache/ then enter the website address. cat /etc/passwd | cut -d":" -f1
Follow the links:
Virtual host examples from Apache website.
http://httpd.apache.org/docs/2.0/vhosts/examples.html
Turns out that it is possible to have multiple VirtualHosts on port 80 (Default http), but because of a limitation of SSL, we can’t have multiple VirtualHosts on port 443 (Default https).
I solved the problem as follows. I created the two VirtualHosts on port 80, one on port 443 and one on port 444.
Shared IP, multiple vhosts and multiple SSL certificates on Apache
The process is only 2 steps and involves modifying your Apache configuration.
1. Create virtual hosts “map file”.
2. Modify existing SSL vhost.Caveat: The SSL certificate used will be common to all SSL vhosts.
Hosting multiple SSL vhosts on a single IP/Port/Certificate with Apache2
The following article discusses the following:
Basics Of Virtual Hosts, Name-Based Virtual Hosts, IP-Based Virtual Hosts, Configuring IP Aliasing, Virtual Hosts with IPs, Multiple Instances of Apache, Example for name based virtual hosts, Example for IP based virtual hosts.
$ gzip -d compressed_file.gz