分类 默认分类 下的文章

脚本语言的第一行,目的就是指出,你想要你的这个文件中的代码用什么可执行程序去运行它,就这么简单。
#!/usr/bin/python3是告诉操作系统执行这个脚本的时候,调用 /usr/bin 下的 python3 解释器;

#!/usr/bin/env python3 这种用法是为了防止操作系统用户没有将 python3 装在默认的 /usr/bin 路径里。当系统看到这一行的时候,首先会到 env 设置里查找 python3 的安装路径,再调用对应路径下的解释器程序完成操作。

#!/usr/bin/python3 相当于写死了 python3 路径;

#!/usr/bin/env python3 会去环境设置寻找 python3 目录,推荐这种写法。

1,显示不可见字符
"draw_white_space": "all"
2,tab换成空格

// The number of spaces a tab is considered equal to
"tab_size": 4,

// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": false,

// If translate_tabs_to_spaces is true, use_tab_stops will make tab and
// backspace insert/delete up to the next tabstop
"use_tab_stops": true,

Jan 25 15:19:57 主机名 multipathd[583]: sda: failed to get udev uid: Invalid argument
Jan 25 15:19:57 主机名 multipathd[583]: sda: failed to get sysfs uid: Invalid argument
Jan 25 15:19:57 主机名 multipathd[583]: sda: failed to get sgio uid: No such file or directory

在国外网站找到原因了。两种解决方案:
1, editing the VM configuration in ESXi
The resolution is to put

disk.EnableUUID = "TRUE"

to the virtual machine definition, i.e. into the *.vmx file or via Edit Settings -> Options tab -> General -> Configuration Parameters in ESX UI.

2, editing /etc/multipath.conf

blacklist {
    devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st|sda)[0-9]*"
}

FROM
https://askubuntu.com/questions/1242731/ubuntu-20-04-multipath-configuration

企业直播不知道在哪改。

GET /activity.php?a=userAssign&id=555555&userid=00001901a6bb42de53d23f1fde0f9999&name=%E6%AC%A7%E9%98%B3%E9%94%8B&avatar=https://tvax1.sinaimg.cn/crop.0.0.1080.1080.50/005Q2ErNly8gmo938bamfj30u00u0428.jpg&key= HTTP/1.1
Host: mudu.tv
Connection: close
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: cross-site
Sec-Fetch-Mode: navigate
Sec-Fetch-Dest: document
Referer: https://www.google.com/
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: Hm_lvt_22db863c7d7b02b102cf93831ce76aa6=1611121707; Hm_lpvt_22db863c7d7b02b102cf93831ce76aa6=1611124590

下面是评论的发包,抽奖时候可用。。

POST /comments/api/activities/oxxxxxm/comment HTTP/1.1
Host: mudu.tv
Connection: close
Content-Length: 47
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
X-CSRF-TOKEN: 
Content-Type: application/json; charset=UTF-8
Accept: */*
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://www.google.com
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: 

{"message":"吐槽吐槽食堂吧","images":[]}