上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页
摘要: fpath赋值, 一定要在compinit之前!!!!!!!!!!!!!!!! http://bewatermyfriend.org/p/2012/003/ 可以参考我写的: https://github.com/7-Leaf/del 阅读全文
posted @ 2020-10-19 21:48 twfb 阅读(563) 评论(0) 推荐(0)
摘要: set tabstop=4 set expandtab set shiftwidth=4 syntax on syntax enable set number set cursorline set hlsearch set background=dark set termguicolors set 阅读全文
posted @ 2020-10-14 12:44 twfb 阅读(82) 评论(0) 推荐(0)
摘要: 今天发现用taskkill /im需要管理员权限, 而taskkill /pid不需要 import os def kill_process_by_name(process_name): for i in os.popen('tasklist').read().split('\n'): if pro 阅读全文
posted @ 2020-09-30 18:21 twfb 阅读(362) 评论(0) 推荐(0)
摘要: tty查看当前tty 核心命令: echo "XXX" > /dev/pts/XXX 使用python代码 #!/usr/bin/env python3 import os import sys def message(content): for tty in os.popen("ps ua | g 阅读全文
posted @ 2020-08-20 10:27 twfb 阅读(257) 评论(0) 推荐(0)
摘要: import time import os from multiprocessing import Process def demo(): time.sleep(20) def main(): Process(target=demo).start() os.system("kill -KILL {} 阅读全文
posted @ 2020-08-20 10:23 twfb 阅读(293) 评论(0) 推荐(0)
摘要: from hashlib import pbkdf2_hmac password = '12345678' SSID = 'ssid' PMK = pbkdf2_hmac('sha1', str.encode(password), str.encode(SSID), 4096, 32).hex() 阅读全文
posted @ 2020-07-30 15:34 twfb 阅读(578) 评论(0) 推荐(0)
摘要: any?: least one is true. all?{ |i| !i }: opposite of any?: all are false 阅读全文
posted @ 2020-07-27 14:01 twfb 阅读(140) 评论(0) 推荐(0)
摘要: 大家参考着写 start_vm.bat "C:\Program Files (x86)\VMware\VMware Workstation\vmware-kvm.exe" "C:\OS X\OS X\macOS 10.15.vmx" start_vm.vbs createobject ("wscri 阅读全文
posted @ 2020-07-08 17:41 twfb 阅读(1927) 评论(0) 推荐(0)
摘要: Win + R 输入 WF.msc 删除选中的sshd规则或者把所有四个sshdd规则都删了 阅读全文
posted @ 2020-07-06 18:05 twfb 阅读(644) 评论(0) 推荐(0)
摘要: git 的输出是错误输出, 所以执行git clone git://xxx/xxx.git 2>&1 linux中的文件描述符 0, 1, 2: 标准输入, 标准输出, 错误输出 cmd >&n 把输出送到文件描述符n 阅读全文
posted @ 2020-06-12 10:59 twfb 阅读(353) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页