# Converts a date to a string following the ISO 8601 Extended Format. > newDate(1616485415008).toISOString() '2021-03-23T07:43:35.008Z' # Converts a date to a string using the UTC timezone. > newDate(1616485415008).toUTCString() 'Tue, 23 Mar 2021 07:43:35 GMT' # The toGMTString method converts a date to a string, using Internet GMT conventions.[Deprecated(被遗弃)] > newDate(1616485415008).toGMTString() 'Tue, 23 Mar 2021 07:43:35 GMT'
接着查看系统的加密策略,执行以下命令返回DEFAULT,继续搜索文档The default system-wide cryptographic policy level offers secure settings for current threat models. It allows the TLS 1.2 and 1.3 protocols, as well as the IKEv2 and SSH2 protocols. The RSA keys and Diffie-Hellman parameters are accepted if they are at least 2048 bits long.发现DEFAULT策略要求key的长度最少为2048
# GNU Screen - main configuration file # All other .screenrc files will source this file to inherit settings. # Author: Christian Wills - cwills.sys@gmail.com
# Allow bold colors - necessary for some reason attrcolor b ".I"
# Tell screen how to set colors. AB = background, AF=foreground termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' # Enables use of shift-PgUp and shift-PgDn # termcapinfo xterm|xterms|xs|rxvt ti@:te@ termcapinfo xterm* ti@:te@ # Erase background with current bg color defbce "on"
# Enable 256 color term term xterm-256color
# Cache 30000 lines for scroll back defscrollback 30000
# change command character from ctrl-a to ctrl-b (emacs users may want this) #escape ^Bb
### pass commands to screen for describing windows shelltitle '$ |zsh'
timeout - integer containing number of milliseconds, controls two timeouts. Read timeout: Time to wait for a server to send response headers (and start the response body) before aborting the request. Connection timeout: Sets the socket to timeout after timeout milliseconds of inactivity. Note that increasing the timeout beyond the OS-wide TCP connection timeout will not have any effect (the default in Linux can be anywhere from 20-120 seconds)
该参数为设置了4秒。但是有些请求竟然1分15秒才返回。
curl对代理进行测试结果如下,由此可见timeout参数并没有生效。
1 2 3 4 5 6 7 8 9
time curl -vvv -x http://106.5.193.161:4245 baidu.com * Trying 106.5.193.161... * TCP_NODELAY set * Connection failed * connect to 106.5.193.161 port 4245 failed: Operation timed out * Failed to connect to 106.5.193.161 port 4245: Operation timed out * Closing connection 0 curl: (7) Failed to connect to 106.5.193.161 port 4245: Operation timed out curl -vvv -x http://106.5.193.161:4245 baidu.com 0.00s user 0.01s system 0% cpu 1:15.76 total
// Select the node that will be observed for mutations const targetNode = document.getElementById('some-id');
// Options for the observer (which mutations to observe) const config = { attributes: true, childList: true, subtree: true };
// Callback function to execute when mutations are observed const callback = function(mutationsList, observer) { // Use traditional 'for loops' for IE 11 //如果需要调试的话,只需要在callback里面执行debugger就可以了 for(const mutation of mutationsList) { if (mutation.type === 'childList') { console.log('A child node has been added or removed.'); } else if (mutation.type === 'attributes') { console.log('The ' + mutation.attributeName + ' attribute was modified.'); } } };
// Create an observer instance linked to the callback function const observer = new MutationObserver(callback);
// Start observing the target node for configured mutations observer.observe(targetNode, config);
// Later, you can stop observing observer.disconnect();