Skip to content

Instantly share code, notes, and snippets.

David Soff Davidsoff

Block or report user

Report or block Davidsoff

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Davidsoff / cloud_front.rb
Created Apr 24, 2018
cloud_frond request log analyser for IP frequency
View cloud_front.rb
class CloudFront < RequestLogAnalyzer::FileFormat::Base
extend RequestLogAnalyzer::FileFormat::CommonRegularExpressions
line_definition :access do |line|
line.header = true
line.footer = true
line.regexp = /^(#{timestamp('%Y-%m-%d %H:%M:%S')})\s(\w+)\s(\d+)\s(#{ip_address})\s(\w+)\s(\S+)\s(\S+)\s(\d+)\s(\S+)\s(\S+)\s(\S+)\s(\S+)\s(\w+)\s(\S+)\s(\S+)\s(\w+)\s(\d+)\s(\S+)\s(#{ip_address}|-)\s+(\S+)\s(\S+)\s(\w+)\s(\S+)/
View wampInit.js
var autobahn = require("autobahn");
module.exports = new autobahn.Connection({
url: "ws://",
realm: "realm"
You can’t perform that action at this time.