Skip to content

Instantly share code, notes, and snippets.

View flusher's full-sized avatar

Florian Cathala flusher

View GitHub Profile
@flusher
flusher / cache_warmer.sh
Created May 2, 2014 16:18
Website cache warmer from multipages XML sitemap
#!/bin/bash
# Warm cache from XML sitemap with multiple pages
url="www.example.com"
xmlsitemap="sitemap.xml"
pages=2
log_file="/var/log/cache_warmer.log"
echo $(date +"[%d/%m/%Y : %T]") "Cache warmer launched for $url" >> $log_file
@flusher
flusher / ab_gzip.sh
Created May 2, 2014 16:15
Apache Benchmark test load with gzip compression
ab -c 10 -n 1000 -H "Accept-Encoding: gzip,deflate" http://www.example.com/