2020年12月15日
摘要: #!/usr/bin/env python3 # -*- coding: utf-8 -*- import pdfplumber import time from tqdm import tqdm import pandas as pd def get_balance_table(file): # 阅读全文
posted @ 2020-12-15 00:05 boye169 阅读(220) 评论(0) 推荐(0) 编辑
2020年12月4日
摘要: git config --global core.autocrlf false 不会自动将UNIX 格式转换为DOS格式 git config --global user.name "liboye" # 配置用户名 git config --global user.email "liboye@126 阅读全文
posted @ 2020-12-04 23:46 boye169 阅读(70) 评论(0) 推荐(1) 编辑
摘要: 创建用户、授权用户 create user 'deploy' @'%' identified by '123456' 创建用户 grant select,insert,update,delete on * to deploy 授权用户 flush privileges 立即生效 命令格式 mysql 阅读全文
posted @ 2020-12-04 23:38 boye169 阅读(73) 评论(0) 推荐(0) 编辑
2020年12月2日
摘要: 实现简单的文件上传于下载功能(支持多文件上传) #!/usr/bin/env python3# -*- coding:utf-8 -*-import os, sysfrom flask import Flask, render_template, request, send_file, send_f 阅读全文
posted @ 2020-12-02 00:03 boye169 阅读(2630) 评论(0) 推荐(0) 编辑
2020年12月1日
摘要: 添加文件可写权限 chmod 644 /etc/sudoers 编辑/etc/sudoers文件 vim /etc/sudoers 添加下面一行: boye ALL=(ALL) NOPASSWD: ALL 阅读全文
posted @ 2020-12-01 23:24 boye169 阅读(1331) 评论(0) 推荐(0) 编辑
摘要: 生成秘钥 ssh-keygen -t rsa 复制SSH密钥到目标主机 -方式1 ssh-copy-id -i ~/.ssh/id_rsa.pub test@192.168.2.100 复制SSH密钥到目标主机 -方式2 将本地机器的 ~/.ssh/id_rsa.pub文件内容复制到目标机器的~/. 阅读全文
posted @ 2020-12-01 00:39 boye169 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 创建用户 useradd [-d home] [-s shell] [-c comment] [-m [-k template]] [-f inactive] [-e expire ] [-p passwd] [-r] name 主要参数 -c:加上备注文字,备注文字保存在passwd的备注栏中。 阅读全文
posted @ 2020-12-01 00:32 boye169 阅读(751) 评论(0) 推荐(0) 编辑
2020年11月25日
摘要: tqdm库 #!/usr/bin/env python3 # -*- coding: utf-8 -*- # pip3 install tqdm import time from tqdm import tqdm for i in tqdm(range(10)): time.sleep(0.5) 阅读全文
posted @ 2020-11-25 23:52 boye169 阅读(99) 评论(0) 推荐(0) 编辑
2020年11月12日
摘要: 获取文件名的md5值 find test.txt -type f -print|xargs md5sum 阅读全文
posted @ 2020-11-12 00:55 boye169 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 批量压缩文件 ls |xargs -ti tar -zcvf {}.tar.gz {} 批量解压文件 ls *.tar.gz|xargs -n1 tar -zxvf 阅读全文
posted @ 2020-11-12 00:49 boye169 阅读(1838) 评论(0) 推荐(0) 编辑