Wlxyzxyz's Blog

ssh端口转发

2020/3/12

修改公网机器的配置 ``` 修改sshd_config vim /etc/ssh/sshd_config #GatewayPorts no => GatewayPorts yes #

禁止cloudflare以外的ip访问nginx的网站

2019/9/1

添加一个文件cf.conf,里面记录的是允许访问的ip ``` # https://www.cloudflare.com/ips # IPv4 allow 173.245.48.0/2

用nginx部署flask

2019/9/1

## 安装uWSGI https://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html ``` apt-get install

angular-matSort

2019/8/27

angular中使用matSort对表格进行排序 https://material.angular.io/components/sort/overview ```html <ng-c

linux常用命令

2019/8/25

# 查看端口占用 lsof -i:{port} netstat -anp|grep {port} # 终止进程 kill -9 {PID}

sony-dpt获得root权限

2019/8/19

https://github.com/HappyZ/dpt-tools/wiki/The-Ultimate-Rooting-Guide 测试连接是否成功 python3 dpt-tools.p

powerline配置

2019/8/2

# 安装 ``` pip install powerline-status pip show powerline-status//查看安装位置 ``` ``` mac 修改~/

css相关

2019/8/1

css显示1/3的宽度 使用css calc() ``` .tab { width: calc(100%/3); } ``` refer: https://stackoverfl

python虚拟环境

2019/7/31

创建虚拟环境 python3 -m venv {venvname} 进入虚拟环境 source venv/bin/activate

rclone挂载网盘到vps

2019/7/30

https://rclone.org/onedrive/ ## 1. 在有图形界面的机器上面授权 下载rclone https://rclone.org/downloads/ ```