浏览器提供了一个 opener 属性,供弹出的窗口访问来源页。但该规范设计的并不合理,导致通过超链接打开的页面,也能使用 opener。
因此,用户点了网站里的超链接,导致原页面被打开的第三方页面控制。
虽然两者受到同源策略的限制,第三方无法访问原页面内容,但可以跳转原页面。
| #!/usr/bin/env dart | |
| class Array { | |
| var | |
| list | |
| , index = 0 | |
| ; | |
| Array (list) { |
| #!/usr/bin/env bash | |
| CWD="$(cd -P -- "$(dirname -- "$0")" && pwd -P)" | |
| _PWD=$PWD | |
| EDITOR='atom-beta' | |
| # cd $CWD | |
| dirlist=(*) | |
| projects=() |
浏览器提供了一个 opener 属性,供弹出的窗口访问来源页。但该规范设计的并不合理,导致通过超链接打开的页面,也能使用 opener。
因此,用户点了网站里的超链接,导致原页面被打开的第三方页面控制。
虽然两者受到同源策略的限制,第三方无法访问原页面内容,但可以跳转原页面。
Amazon EC2 user-data file for automatic configuration of IPsec/L2TP VPN server on a Ubuntu or Debian instance. Tested with Ubuntu 14.04 & 12.04 and Debian 8 & 7.
With minor modifications, this script can also be used on dedicated servers or any KVM- or XEN- based Virtual Private Server (VPS) from other providers.
My VPN tutorial with detailed usage instructions
Alternative VPN script for CentOS/RHEL
| #!/usr/bin/env python | |
| import envoy | |
| import os | |
| import shutil | |
| _path_ = { | |
| 'home': os.environ['HOME'], | |
| 'script': os.path.split(os.path.realpath(__file__))[0] | |
| } |
(based on this pastebin i've found via Google, markdownified and adjusted to work with the official Yosemite release)
Yosemite's first developer preview was released right after Monday's WWDC opening keynote. For the general public, an open beta will be available to download later this summer. However, for those who want a sneak peek at the new hotness, there is a way to safely install it without risking your machine, using the free and powerful VirtualBox application from Oracle.
(LEGAL DISCLAIMER: This guide aims to explain how to create a virtual machine on a regularly purchased Apple computer, running a genuine Mac OS X operating system, for testing purposes only.)
| #user nobody; | |
| worker_processes 1; | |
| #error_log logs/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| #pid logs/nginx.pid; | |