n2n内穿透

之前一直使用frp.然后看到frp 有个xtcp.试了一下,家里和公司完全穿透不起来.网上一查,n2n的效果很一些.这里是软件地址ntop n2n mac os 需要先安装tuntap brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup /usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” brew cask install tuntap 编译安装.由于新版本mac os系统限制.我把Makefile里安装帮助文档和工具部分注释掉了. install: edge supernode edge.8.gz supernode.1.gz n2n.7.gz echo “MANDIR=$(MANDIR)” $(MKDIR) $(SBINDIR) $(MAN1DIR) $(MAN7DIR) $(MAN8DIR) $(INSTALL_PROG) supernode $(SBINDIR)/ $(INSTALL_PROG) edge $(SBINDIR)/ #$(INSTALL_DOC) edge.8.gz $(MAN8DIR)/ #$(INSTALL_DOC) supernode.1.gz $(MAN1DIR)/… Continue reading n2n内穿透

环境变量all_proxy

下载软件的时候,由于墙,经常很慢.以前是通过开代理,然后用polipo转http,然后在各个软件工具里面配置代理. 最近发现原来,一般yum curl git wget 等工具都支持环境变量all_proxy.赶紧mark一下.  alias huiproxy=’export all_proxy=socks5h://127.0.0.1:1080 && curl ip.sb’ alias huiproxyno=’unset all_proxy && curl ip.sb’ 因为用了ssr,我这里用了socks5h.socks5和socks5h的区别可以看这里Differentiate socks5h from socks5 and socks4a from socks4 when handling proxy string 1. In a proxy string, socks5h:// and socks4a:// mean that the hostname isresolved by the SOCKS server. 2. socks5:// and socks4:// mean that the… Continue reading 环境变量all_proxy

Published
Categorized as linux

建立文章列表页面

建了个文章目录页面.展示文章的标题.因为发现自己经常要回来找命令.这里记录一下免得升级被覆盖了. 将下面文件放入wp-content/themes/twentytwenty/templates/目录下面.新建页面的时候,可以选择的模板就会多一个Article Archive Template.

Published
Categorized as web

linux信号量

文章来源:编程思想博客 信号量 信号名称 编号 能否屏蔽 默认动作 俗称 SIGINT 2 YES 进程自己退出 自杀 SIGTERM 15 YES 进程自己退出 自杀 SIGQUIT 3 YES 执行 core dump 进程自己退出 自杀 SIGKILL 9 NO 进程被内核干掉 它杀

Published
Categorized as linux