上一页 1 2 3 4 5 6 7 ··· 19 下一页
摘要: 支持Windows家庭版, 开发版 下载安装wsl_update_x64.msi 执行install.bat 建议国内用户, 复制粘贴到本地执行 重启 检查: 在powershell或cmd执行wsl -l -v 阅读全文
posted @ 2020-11-12 12:15 twfb 阅读(264) 评论(0) 推荐(0) 编辑
摘要: ifconfig eth0 down ifconfig eth0 up service networking restart dhcient -v 阅读全文
posted @ 2020-11-02 11:03 twfb 阅读(1429) 评论(0) 推荐(0) 编辑
摘要: fpath赋值, 一定要在compinit之前!!!!!!!!!!!!!!!! http://bewatermyfriend.org/p/2012/003/ 可以参考我写的: https://github.com/7-Leaf/del 阅读全文
posted @ 2020-10-19 21:48 twfb 阅读(551) 评论(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 阅读(74) 评论(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 阅读(354) 评论(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 阅读(242) 评论(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 阅读(285) 评论(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 阅读(536) 评论(0) 推荐(0) 编辑
摘要: any?: least one is true. all?{ |i| !i }: opposite of any?: all are false 阅读全文
posted @ 2020-07-27 14:01 twfb 阅读(132) 评论(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 阅读(1699) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 19 下一页