Skip to content

Commit 8bd7f6e

Browse files
committed
modify some old note
1 parent 30f7bf8 commit 8bd7f6e

File tree

5 files changed

+39
-5
lines changed

5 files changed

+39
-5
lines changed

Notes/Underlaying/HTTP权威指南.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ Web 网关在一侧使用 HTTP 协议,另一次使用其他协议。通常可
253253
- 词典攻击:密码猜测型攻击方式
254254
- 恶意代理攻击和中间人攻击
255255
- 选择明文攻击:在摘要认证的时候篡改随机数
256+
- [中间人攻击](https://zh.wikipedia.org/wiki/%E4%B8%AD%E9%97%B4%E4%BA%BA%E6%94%BB%E5%87%BB)
256257

257258
需要解决的认证问题:
258259

Notes/Underlaying/Linux.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,12 +650,21 @@ $ date --date "2017-04-01" +%s # 将字符串类型日期输入,并转换格
650650
%s
651651
```
652652

653-
### 系统
653+
### Others
654654

655-
查看机器内网和外网 IP
655+
- cURL
656+
657+
[Linux命令行:cURL的十种常见用法](https://juejin.im/post/5915204b44d904006c463c61)
658+
659+
- 查看机器内网和外网 IP
656660

657661
```bash
658662
$ hostname -I
659663
# 内网 IP 外网 IP
660664
```
661665

666+
### 通过 bash 发送邮件
667+
668+
- [5 Ways to Send Email From Linux Command Line](https://tecadmin.net/ways-to-send-email-from-linux-command-line/)
669+
- [3 minute tip: Configure a Linux server to send email](https://rianjs.net/2013/08/send-email-from-linux-server-using-gmail-and-ubuntu-two-factor-authentication)
670+
- [“Mail” command hangs and maillogs shows error [closed]](https://serverfault.com/questions/548771/mail-command-hangs-and-maillogs-shows-error)

Notes/Underlaying/Shell.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,3 +253,12 @@ done
253253

254254
### 函数
255255

256+
### Others
257+
258+
#### Check if file exists
259+
260+
```bash
261+
if [ ! -f /tmp/foo.txt ]; then
262+
echo "File not found!"
263+
fi
264+
```

Notes/Underlaying/服务器配置记录.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
```bash
2626
# 创建新用户
2727
# http://wiki.ubuntu.org.cn/%E6%96%B0%E5%BB%BA%E7%94%A8%E6%88%B7%E5%B9%B6%E6%B7%BB%E5%8A%A0%E5%88%B0%E7%AE%A1%E7%90%86%E7%BB%84
28+
# $ userdel username 删除用户
2829
$ adduser ecmadao # 新建用户
2930
$ gpasswd -a ecmadao sudo # 增加权限
31+
# $ passwd 改变当前用户的密码
3032

3133
# 切换到新用户
3234
$ sudo su ecmadao
@@ -42,7 +44,7 @@ $ chmod 600 ~/.ssh/authorized_keys
4244
$ cd ~/.ssh
4345
$ sudo apt-get install vim
4446
$ vim authorized_keys
45-
# 然后加入自己本地电脑里 ~/.ssh/id_rsa.pub的内容
47+
# 然后加入自己本地电脑里 ~/.ssh/id_rsa.pub 的内容
4648
$ exit # 退出登录再重新登入,验证是否成功
4749

4850
$ cd /etc/ssh/
@@ -52,6 +54,11 @@ $ sudo service ssh restart # 重启服务
5254
$ pwd # 查看路径
5355
```
5456

57+
```bash
58+
# 登录服务器安全性保障
59+
# http://jamyy.us.to/blog/2014/01/5800.html
60+
```
61+
5562
### 开发环境配置
5663

5764
#### curl
@@ -185,7 +192,7 @@ server {
185192
root /home/ecmadao/www/hacknical/public;
186193
location / {
187194
index index.html index.htm;
188-
proxy_pass http://127.0.0.13000;
195+
proxy_pass http://127.0.0.1:3000;
189196
proxy_set_header Host $http_host;
190197
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
191198
}

Tools/Framework/Javascript-Frameworks.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,12 @@
4747

4848
- [scrape-it](https://github.com/IonicaBizau/scrape-it)
4949

50-
> 基于 Node.js 的爬虫框架
50+
> 基于 Node.js 的爬虫框架
51+
52+
### Wiki
53+
54+
- [Outline](https://github.com/outline/outline)
55+
- [Wiki.js](https://github.com/Requarks/wiki)
56+
- [jingo](https://github.com/claudioc/jingo)
57+
- [Total.js](https://www.totaljs.com/wiki/)
58+
- [Matterwiki](https://github.com/Matterwiki/Matterwiki)

0 commit comments

Comments
 (0)