Skip to content

Instantly share code, notes, and snippets.

View dongpei021's full-sized avatar

Karen Brown dongpei021

View GitHub Profile
⻓辉⼯业精选(2022.10–2023.7/30 )
注:本⻚⾯为加拿⼤ 留学Slack社区(RunToCanada.com)聊天记录整理,⽆特定主题,
建议使⽤搜索关键字的⽅法查找感兴趣内容。
内容格式:成员姓名+聊天记录原⽂+编辑补充
如何加⼊社区?
请发邮件到chenyongren0813@gmail.com,简单介绍您的申请背景(比如年龄,学历,⽬标,
资⾦情况等),确认后会回复您付款⽅式(100RMB/⼈),付款后24⼩时内发邀请您进⼊社区。
请勿使用163邮箱,会屏蔽邮件。
@dongpei021
dongpei021 / ss-redir 透明代理.md
Created May 16, 2017 02:31 — forked from wen-long/ss-redir 透明代理.md
ss-redir 透明代理.md

##ss-redir 的 iptables 配置(透明代理)

透明代理指对客户端透明,客户端不需要进行任何设置就使用了网管设置的代理规则

创建 /etc/ss-redir.json 本地监听 7777 运行ss-redir -v -c /etc/ss-redir.json

iptables -t nat -N SHADOWSOCKS
# 在 nat 表中创建新链
iptables -t nat -A SHADOWSOCKS -p tcp --dport 23596 -j RETURN
# 23596 是 ss 代理服务器的端口,即远程 shadowsocks 服务器提供服务的端口,如果你有多个 ip 可用,但端口一致,就设置这个
#include <string>
#include <queue>
#include <iostream>
using namespace std; // This is to make available the names of things defined in the standard library.
int main()
{
priority_queue<int> pq; // Creates a priority queue pq to store strings, and initializes the queue to be empty.
@dongpei021
dongpei021 / 0_reuse_code.js
Created December 19, 2015 11:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console