sudo apt-get update
cd && sudo apt-get install git bc
# Get varnish version | |
varnishd -V | |
# most frequent cookies | |
varnishtop -i RxHeader -I Cookie | |
# continually updated list of frequent URLs | |
varnishtop -i RxURL | |
# most frequent UA strings |
# remove all inline style tags | |
(style=")([a-zA-Z0-9:;\.\s\(\)\-\,]*)(") | |
#remove all self closing tags and replace with correct tag | |
# find | |
<\s*([^\s>]+)([^>]*)/\s*> | |
# replace | |
<$1$2></$1> |
# call fucntion in vcl_res | |
# Throw error on spam bot comment attempt | |
# if first letter of comment ID is not numeric, throw 404. | |
sub clean_comment { | |
if (req.url ~ "comment\/reply\/\d*\/\D") { | |
error 404 "Page Not Found"; | |
} | |
} | |
wrapper.aggregate = function(startDate, endDate) { | |
var model = mongoose.model('Action'); | |
model.aggregate([ | |
{'$match': { cd: { '$gt': startDate, '$lt': endDate }, actionType: 'Click' }}, | |
{'$group': { _id: '$ad', clk: { '$sum': '$value' }}} | |
]).exec(function(err, results) { | |
console.log(results); | |
}); | |
} |
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome tmp=`date +%Y%m%d%H%M%S`;open -na "Google Chrome" --args --user-data-dir=/tmp/$tmp --no-first-run --disable-extensions --safe-plugins --disable-default-apps --disable-save-password-bubble --disable-session-storage --disable-sync --disable-zero-browsers-open-for-tests --lang=en-US |
I hereby claim:
To claim this, I am signing this object: