Find file created or modified within certain time range

# ctime search in created at time
# mtime search in modified at time
# -1 in this example is 1 day
find . -type f -ctime -1 -exec ls -al {} \;
find . -type f -mtime -1 -exec ls -al {} \;
# this line search in between time
# this example search all file changed on 1st of Oct 2010
find . -type f -newermt 2010-10-01 ! -newermt 2010-10-02

Optimizing server running Magento

Obviously the actual value depends on your hardware and website. These settings are for 3g RAM server. Might tweak further with more statistics coming in.

my.cnf of mysql

[mysqld]
key_buffer = 256M
max_allowed_packet = 32M
myisam_sort_buffer_size = 32M
tmp_table_size = 64M
table_cache = 512
sort_buffer_size = 4M
read_buffer_size = 4M
read_rnd_buffer_size = 2M
query_cache_type = 1
query_cache_size = 64M
query_cache_limit = 2M
thread_cache_size = 8
innodb_buffer_pool_size = 128M
innodb_thread_concurrency = 6

apache.conf

KeepAlive on
KeepAliveTimeout 2
MaxKeepAliveRequests 100

Note: setting innodb_buffer_pool_size will cause innodb to fail

Git checkout previous deleted content

#Find the last commit that affected the given path. As the file isn't in the HEAD commit, this commit must have deleted it.
git rev-list -n 1 HEAD -- <file_path>

#Then checkout the version at the commit before.
git checkout <deleting_commit>^ -- <file_path>

#Or in one command, if $file is the file in question.
git checkout $(git rev-list -n 1 HEAD -- "$file")^ -- "$file"

Source: http://stackoverflow.com/questions/953481/restore-a-deleted-file-in-a-git-repo