This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem 要替换这些文件夹中的一个文件,注意是文件,不是目录 | |
rem 假设用D:\Data\123.txt替代D:\testData\下面所有的123.txt | |
set filename=123.txt | |
set pathname=D:\testData | |
set srcfile=D:\Data\123.txt | |
for /f "delims=" %%i in ('dir %pathname%\%filename% /s /b /a-d') do ( | |
echo %%i | |
copy "%srcfile%" "%%i" /y | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
开放端口 | |
永久的开放需要的端口 | |
sudo firewall-cmd --zone=public --add-port=3000/tcp --permanent | |
sudo firewall-cmd --reload | |
之后检查新的防火墙规则 | |
firewall-cmd --list-all | |
关闭防火墙 | |
由于只是用于开发环境,所以打算把防火墙关闭掉 | |
//临时关闭防火墙,重启后会重新自动打开 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
必要的更新 | |
apt-get update && apt-get upgrade | |
安装必要组件 | |
apt-get install --no-install-recommends build-essential autoconf libtool libssl-dev gawk debhelper dh-systemd init-system-helpers pkg-config asciidoc xmlto apg libpcre3-dev | |
下载shadowsocks-libev源码包并编译 | |
git clone https://github.com/shadowsocks/shadowsocks-libev.git | |
cd shadowsocks-libev | |
// 拷贝必要的文件 | |
mkdir -p /etc/shadowsocks-libev | |
cp ./debian/shadowsocks-libev.init /etc/init.d/shadowsocks-libev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Debian | |
cd /tmp | |
# 下载源码 | |
git clone https://github.com/shadowsocks/shadowsocks-libev.git | |
# 开始编译 | |
cd shadowsocks-libev | |
./autogen.sh | |
./configure --prefix=/usr && make | |
make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
一般查找域名对应的IP,可以用这个命令 nslookup <域名>,但这样找,返回的ip比较少,今天看到一条命令,可以批量查找Google当前的IP范围。 | |
命令及返回的结果如下: | |
# nslookup -q=TXT _netblocks.google.com 8.8.8.8 | |
Server: 8.8.8.8 | |
Address: 8.8.8.8#53 | |
Non-authoritative answer: | |
_netblocks.google.com text = "v=spf1 ip4:64.18.0.0/20 ip4:64.233.160.0/19 ip4:66.102.0.0/20 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:74.125.0.0/16 ip4:108.177.8.0/21 ip4:173.194.0.0/16 ip4:207.126.144.0/20 ip4:209.85.128.0/17 ip4:216.58.192.0/19 ip4:216.239.32.0/19 ~all" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Google是个人最常用的搜索引擎,没有之一,这里简单整理记录一下常用的一些Google搜索技巧,用好了,在搜索时能起到事半功倍的效果。 | |
1、或操作 | |
一般搜索时,如果输入多个词,默认是与的关系,如输入词1和词2,即搜索同时包含词1和词2的网页,如果想搜包含词1 或包含词2 或同时都包含的网页,可以使用大写的 OR(不能用小写)。 | |
举例:电影《肖申克的救赎》在台湾的翻译是《刺激1995》,如搜索关于这个电影的相关内容,搜索条件可以输入 肖申克的救赎 OR 刺激1995,可以把相关的内容一次全搜索出来。 | |
2、减号 |
NewerOlder