- Browser
- Proxy
- Gateway
TODO Difference between proxy and gateway caches.
| #!/usr/bin/env python2 | |
| """ | |
| Author: takeshix <[email protected]> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford ([email protected]). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
| // knockout 2.3.0 | |
| ko.utils.addOrRemoveItem = function (array, value, included) { /* .. */ } | |
| ko.utils.anyDomNodeIsAttachedToDocument = function (nodes) { /* .. */ } | |
| ko.utils.arrayFilter = function (array, predicate) { /* .. */ } | |
| ko.utils.arrayFirst = function (array, predicate, predicateOwner) { /* .. */ } |
| AudioSFX = function( _p, _autoplay ) { | |
| var self = this; | |
| var parent = _p; | |
| this.sounds = new Array(); | |
| this.context = new webkitAudioContext(); | |
| this.autoplay = _autoplay; | |
| this.play = function( sound ) { |
| - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request | |
| navigationType:(UIWebViewNavigationType)navigationType { | |
| NSString *urlString = [[request URL] absoluteString]; | |
| if ([urlString hasPrefix:@"js:"]) { | |
| NSString *jsonString = [[[urlString componentsSeparatedByString:@"js:"] lastObject] | |
| stringByReplacingPercentEscapes]; | |
| NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding]; | |
| NSError *error; |
| % vagrant up --no-provision $VAGRANTBOX | |
| % vagrant ssh $VAGRANTBOX | |
| vagrant$ wget -O - http://opscode.com/chef/install.sh | sudo bash | |
| vagrant$ rm /tmp/chef*{rpm,deb} | |
| vagrant$ exit | |
| % vagrant package $VAGRANTBOX | |
| % rm -rf ~/.vagrant.d/boxes/$VAGRANTBOX | |
| % vagrant box add $VAGRANTBOX package.box |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Remove rubberband scrolling from web apps on mobile safari (iOS)</title> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta name="apple-touch-fullscreen" content="yes"> | |
| <meta id="extViewportMeta" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script> | |
| <style> | |
| html, body {margin: 0; padding: 0; overflow: hidden} |
| require 'fog' | |
| require 'chef/config' | |
| Chef::Config.from_file('./.chef/knife.rb') | |
| EC2 = Fog::Compute.new provider: 'AWS', | |
| region: Chef::Config[:knife][:region], | |
| aws_access_key_id: Chef::Config[:knife][:aws_access_key_id], | |
| aws_secret_access_key: Chef::Config[:knife][:aws_secret_access_key] | |
| servers = EC2.servers.select { |s| s.tags["Name"] =~ /ec2\-test\-/ && s.state == "running" } |
| <!-- the env variables are controlled by Chef and passed in via -D on the java command-line --> | |
| <!-- This is using the appender here: https://github.com/t0xa/gelfj --> | |
| <appender name="graylog2" class="org.graylog2.log.GelfAppender"> | |
| <param name="graylogHost" value="${graylog.server}"/> | |
| <param name="originHost" value="${graylog.origin}"/> | |
| <param name="extractStacktrace" value="true"/> | |
| <param name="addExtendedInformation" value="true"/> | |
| <!-- The _web part is because a given app has multiple components --> | |
| <!-- This app might have a _web as well as an _batch component --> | |
| <param name="facility" value="${graylog.facility}_web"/> |
| #!/usr/bin/env ruby | |
| # Check on the load times for Ohai plugins. | |
| # To disable from chef-solo and chef-client runs see | |
| # http://wiki.opscode.com/display/chef/Disabling+Ohai+Plugins | |
| require 'benchmark' | |
| require 'rubygems' | |
| require 'ohai' |