You're taking your first steps into Ruby
A good introduction to programming in general. Easy on newer programmers.
tcpdump -i eth0 -A -s 10240 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | egrep --line-buffered "^........(GET |HTTP\/|POST |HEAD )|^[A-Za-z0-9-]+: " | sed -r 's/^........(GET |HTTP\/|POST |HEAD )/\n\1/g' |
You're taking your first steps into Ruby
A good introduction to programming in general. Easy on newer programmers.
# Usage: | |
# In your (Application)Controller: | |
# include Concerns::ForceNonSSL | |
# force_non_ssl | |
# | |
# You can use the same options as with force_ssl. | |
# See: http://api.rubyonrails.org/classes/ActionController/ForceSSL/ClassMethods.html#method-i-force_ssl | |
# | |
# Code based on: https://github.com/rails/rails/blob/ab08519b1aed46dbd4b3e13932bbaddfe42d8315/actionpack/lib/action_controller/metal/force_ssl.rb | |
# |
# SSL self signed localhost for rails start to finish, no red warnings. | |
# 1) Create your private key (any password will do, we remove it below) | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
# Test1 | |
module M | |
def foo | |
puts "M" | |
end | |
end | |
module N | |
include M | |
def foo |