kk Blog —— 通用基础


date [-d @int|str] [+%s|"+%F %T"]
netstat -ltunp
sar -n DEV 1

git pull 跳过压缩 remote compression

https://www.itguest.com/post/bbbdgg1a2.html

git pull

1
remote: Compressing objects: 24%

来自 git 文档:

1
2
3
4
5
6
7
8
9
10
11
12
13
core.bigFileThreshold   

    Files larger than this size are stored deflated, without 
    attempting delta compression.  Storing large files without 
    delta compression avoids excessive memory usage, at the 
    slight expense of increased disk usage. 

Default is 512 MiB on all platforms. 
This should be reasonable for most projects as source code and other  
text files can still be delta compressed,  
but larger binary media files won't be. 

Common unit suffixes of 'k', 'm', or 'g' are supported

可以使用

1
git config --add core.bigFileThreshold 1

JavaScript URLdecode函数

https://www.qttc.net/244-javascript-urldecode.html

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<script>

  function StringToAscii(str) {
      return str.charCodeAt(0).toString(16);
  }

  function AsciiToString(asccode) {
      return String.fromCharCode(asccode);
  }

  function UrlDecode(zipStr) {
      var uzipStr = '';
      for (var i = 0; i < zipStr.length; i += 1) {
          var chr = zipStr.charAt(i);
          if (chr === '+') {
              uzipStr += ' ';
          } else if (chr === '%') {
              var asc = zipStr.substring(i + 1, i + 3);
              if (parseInt('0x' + asc) > 0x7f) {
                  uzipStr += decodeURI('%' + asc.toString() + zipStr.substring(i+3, i+9).toString());
                  i += 8;
              } else {
                  uzipStr += AsciiToString(parseInt('0x' + asc));
                  i += 2;
              }
          } else {
              uzipStr += chr;
          }
      }
      return uzipStr;
  }

  // 来自url的参数
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i = 0; i < vars.length; i ++) {
      var pair = vars[i].split("=");
      if (pair[0] == 'query') {
          document.getElementById('word').value = UrlDecode(pair[1]);
          search_word();
          break;
      }
  }

</script>

企业微信 通讯录人数上限

https://open.work.weixin.qq.com/help2/pc/14936?person_id=1

通讯录 -> 通讯录配置 -> 通讯录/企业人数上限 -> 通讯录人数上限

通讯录人数上限

企业通讯录人数分为以下情况:

未认证企业,可使用人数上限为100人,通讯录人数上限1000人。

已认证小规模,可使用人数上限为1000人,到达上限后需要认证更大规模;通讯录初始值人数为1000人,支持免费申请扩容。

已认证中规模,可使用人数上限为10000人,到达上限后需要认证更大规模;通讯录初始值人数为10000人,支持免费申请扩容。

已认证大规模,可使用人数无上限;通讯录初始值人数为10000人,支持免费申请扩容。

其他还在缓冲期的企业,未认证通讯录1000人上限,到达上限后需要认证;已认证和已验证通讯录到达上限后支持免费申请扩容。

注:扩容通讯录初始值人数需审核。