Skip to content

Instantly share code, notes, and snippets.

View howto-setup-transparent-proxied-router.md

如何在路由器中实现透明代理?

0 互联网现状

目前整个互联网环境,被破坏最严重地部分,是 Web 服务体验。当直接破坏难以实现时,就会从流程链的上下游着手,如:DNS 污染。

其它地互联网服务类型,例如:邮件,可能小部分会受到 Web 服务上下游破坏地余震,但整体上基本不受影响。

@g4li
g4li / maximum_subarray.php
Last active Nov 13, 2017
A PHP Solution for Maximum Subarray
View maximum_subarray.php
<?php
class SubArray
{
public $start_index;
public $length = 1;
public $sum = 0;
public $activated = true;
/** @var SubArray $maximum_subArray */
View php-fpm-cli
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Mathias Leppich <mleppich@muhqu.de>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell