Skip to content

Instantly share code, notes, and snippets.

@GregIngelmo
GregIngelmo / mitmproxy.md
Last active August 29, 2015 14:00
Mitmpoxy Notes

Mitmproxy

Type l and paste the following filter. It will remove all html specfic elements from a capture session.

!(~ts "application/javascript") !(~ts "text/javascript") !(~ts "text/css") !(~ts "image/*") !(~ts "application/vnd.google.safebrowsing-*")
@GregIngelmo
GregIngelmo / redhat.md
Last active August 29, 2015 14:00
Base config for Redhat Servers

Base config for Redat servers

Base dev libs

sudo yum groupinstall "Development Tools" -y

Install EPEL

@GregIngelmo
GregIngelmo / gist:5542927
Last active December 17, 2015 03:28
Interactive Mongo queries
# Launch pry based interactive Rails console
$> pry -r ./config/environment.rb
# redirect Mongoid logging to console
pry(main)> Mongoid.logger = Logger.new($stdout)
# run a query
pry(main)> User.where(:username => "greg").first()
# Mongoid spits out the query, but, I actually want to see the raw Mongo query