search files with multiple patterns in linux
Well today I have to search files with *.php and with *.html . How to do that ? Solution is : find ./ \( -name "*.php" -o -name "*.html" \)
Well today I have to search files with *.php and with *.html . How to do that ? Solution is : find ./ \( -name "*.php" -o -name "*.html" \)
Creating an auto scaled system using an Amazon load balancer is an interesting task that I did recently. Here are the list of commands that I used to setup from the command line : as-create-launch-config ec2elbconfig –image-id ami-xxxxx –instance-type m1.large –key key_name Also if you don’t have already setup credentials you may append -I amazonid [...]
If you’re thinking of doing Radi10 on the ephemeral storage disks attached to an Ec2 instance, this post is for you. Well first of all you have to chose a instance with 4 drives. You may chose m1.xlarge or c1.xlarge or cc2.8xlarge . This are only instances with 4 drives. On other instances you may chose to make Raid0, witch [...]
Hello Bellow is a script for backup up a redis on a unmounted ebs volume . First of all you have to create this file on that ebs /mnt/backup/mounted Why I use this ? Well I use it because I want to run on multiple servers. #!/bin/bash instance=i-xxxxx volume=vol-xxxx iplocalhost=10.00.00.111 mkdir /mnt/backup [...]
Well a few day’s ago I have to setup a domain to use loadbalancer from Amazon. Well there are 2 posibilities 1. You may associate a subdomain with CNAME to loadbalancer, however this is not a good solution because you may not use ex: matrafox.info you may use only www.matrafox.info 2. Move the domain to [...]