Skip to content

Instantly share code, notes, and snippets.

View borjadotai's full-sized avatar
🏗️
building

Borja Leiva borjadotai

🏗️
building
View GitHub Profile
@borjadotai
borjadotai / gist:2967bce8f035abbf9d8e1fd97792e0a2
Created February 4, 2017 14:01 — forked from gwenshap/gist:11390102
Generate fake apache access logs
#!/usr/bin/python
import time
import datetime
import random
timestr = time.strftime("%Y%m%d-%H%M%S")
f = open('access_log_'+timestr+'.log','w')
ips=["123.221.14.56","16.180.70.237","10.182.189.79","218.193.16.244","198.122.118.164","114.214.178.92","233.192.62.103","244.157.45.12","81.73.150.239","237.43.24.118"]
referers=["-","http://www.casualcyclist.com","http://bestcyclingreviews.com/top_online_shops","http://bleater.com","http://searchengine.com"]