Tag:works

  • Linux temporary and permanent shutdown SELinux

    Time:2021-12-5

    To view the current SELinux status:getenforce Temporarily shut down SELinux:setenforce 0 Permanently shut down SELinux: vim /etc/sysconfig/selinux take SELINUX=enforcing Change to SELINUX=disabled This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • Command record

    Time:2021-12-3

    Java Maven related command line logs Download Maven first mvn install:install-file -Dfile=E:\work\java-web\taobao-sdk-java-auto_1479188381469-20191203.jar -DgroupId=com.dingding -DartifactId=sdk -Dversion=20191203 -Dpackaging=jar Nail nail maven This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • JS to achieve FCS effectiveness

    Time:2021-12-1

    function fcs(str) { var len = str.length; var tmp = “”; for(var i = 0;i<len;i++){ tmp = tmp ^ str[i].charCodeAt(); } var tmps = tmp.toString(16); if (tmps.Length == 1) { tmps = “0” + tmps; } return tmps; } var test = fcs(“@00RD01000007”); //50 console.log(test); This work adoptsCC agreement, reprint must indicate the author and […]

  • Cross added 40000 addresses within 2 days, and the number of NFT users reached 50000+

    Time:2021-11-30

    Cross latest news According to the tracking statistics of hecoscan data, as of 15:00 on February 4, the number of wallet addresses accessed by cross, the decentralized NFT issuance and auction platform, which has been on the fire coin ecological chain heco for three weeks, has exceeded 50000. Since the launch of cross DAPP mobile […]

  • Three threads print 1-100 in turn

    Time:2021-11-27

    use std::sync::mpsc; use std::thread; fn main() { let (s1, r1) = mpsc::channel::<usize>(); // S1 tells the next thread to print 3N + 1, and R1 receives the print number of 3N + 1 let (s2, r2) = mpsc::channel::<usize>(); // S2 tells the next thread to print 3N + 2, and R2 receives the print number […]

  • The array is split into single quotes and comma separated strings

    Time:2021-11-26

    $data = [‘character 1’, ‘character 2’, 1,2]; //Method 1 $str = “‘”.join(“‘,'”, array_values($data)).”‘”; //Method 2 $str = “‘”.str_replace(“,”,”‘,'”,implode(‘,’,$data)).”‘”; //The output results are: ” character 1 ‘,’ character 2 ‘,’ 1 ‘,’ 2 ” php This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • When DCAT admin uploads a picture, it will automatically press the picture into a 2:1 format?

    Time:2021-11-25

    The 1920×960 I uploaded shows 1600 * 800 on the foreground This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • Linux in VirtualBox: failed to load virtual CD-ROM vboxsguestadditions.iso to virtual machine

    Time:2021-11-25

    mkdir -p /media/cdrom mount /dev/sr0 /media/cdrom cd /media/cdrom ./autorun.sh sudo sh ./VBoxLinuxAdditions.run This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • IntelliJ idea configuration agent

    Time:2021-11-21

    Click IntelliJ idea in the upper left corner and click preference Find HTTP proxy. Proxy is not set by default Fill in according to your own agent configuration This work adoptsCC agreement, reprint must indicate the author and the link to this article

  • Python 3 runs the following code. There is an effect in the front, but there is an inconsistency in the format later. Please tell me

    Time:2021-11-20

    # CrowTaobaoPrice.py import requests import re from requests.exceptions import RequestException import sys import json url=’https://2018.cn/m/index.php?mod=category&catid=1&page=’ headers={‘User-Agent’: ‘Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Mobile Safari/537.36’, ‘Cookie’:’Cookie: EMARTICLE1=null; EMARTICLE2=null; EMARTICLE0=null; EMARTICLE3=05-14%2013%3A27%[email protected]%23%24%u5168%u53A6%u95E8%u4E0A%u95E8%u56DE%u6536%u9EC4%u91D1%20%u6E56%u91CC%20%u601D%u660E%20%u6D77%u6CA7%20%u7FD4%u5B89%20%u540C%u5B89%20%u96C6%u7F8E%20%u674F%u6797%20-%20%u53A6%u95E8%u7269%u54C1%u56DE%u6536%20-%20%u53A6%u95E82018%u4FE1%u606F%u6E2F%u624B%u673A%[email protected]%23%24https%3A//2018.cn/m/index.php%3Fmod%3Dinformation%26id%3D4405759; EMARTICLE4=05-14%2013%3A28%[email protected]%23%24%u4E8C%u624B%u949B%u5408%u91D1%u5C55%u67DC%u56DE%u6536%u5DE5%u827A%u54C1%u6536%u8D2D%u73E0%u5B9D%u5C55%u793A%u67DC%u4ED3%u5E93%u5C55%u793A%u67DC%u56DE%u6536%u5B9E%u6728%u67DC%u53F0%20-%20%u5317%u4EAC%u7269%u54C1%u56DE%u6536%20-%20%u5317%u4EAC2018%u4FE1%u606F%u6E2F%u624B%u673A%[email protected]%23%24https%3A//2018.cn/m/index.php%3Fmod%3Dinformation%26id%3D4448010; EMARTICLE5=05-14%2013%3A29%[email protected]%23%24%u5168%u5317%u4EAC%u9AD8%u4EF7%u4E0A%u95E8%u56DE%u6536%u529E%u516C%u5BB6%u5177%u4E2D%u592E%u7A7A%u8C03%u56DE%u6536%u529E%u516C%u7528%u54C1%20-%20%u5317%u4EAC%u5BB6%u5177/%u529E%u516C%u5BB6%u5177%20-%20%u5317%u4EAC2018%u4FE1%u606F%u6E2F%u624B%u673A%[email protected]%23%24https%3A//2018.cn/m/index.php%3Fmod%3Dinformation%26id%3D4448013; EMARTICLE7=05-14%2019%3A39%[email protected]%23%24%u5E93%u535A%u58EB%u71C3%u6C14%u7076%u79E6%u7687%u5C9B%u7EF4%u4FEE%u7535%u8BDD%u591A%u5C11%uFF1F%u7EF4%u4FEE%u5E08%u508524%u5C0F%u65F6%u4E0A%u95E8%u7EF4%u4FEE%20-%20%u79E6%u7687%u5C9B%u5176%u4ED6%u54C1%u724C%20-%20%u79E6%u7687%u5C9B2018%u4FE1%u606F%u6E2F%u624B%u673A%[email protected]%23%24https%3A//2018.cn/m/index.php%3Fmod%3Dinformation%26id%3D4456631; EMARTICLE8=05-14%2013%3A34%[email protected]%23%24%u65E0%u9521%u535A%u4E16%u6EDA%u7B52%u6D17%u8863%u673A%u5168%u5E02%u7EDF%u4E00%u670D%u52A1%u7F51%u70B924%u5C0F%u65F6%u62A5%u4FEE%u7535%u8BDD%20-%20%u65E0%u9521%u6D17%u8863%u673A%u7EF4%u4FEE%20-%20%u65E0%u95212018%u4FE1%u606F%u6E2F%u624B%u673A%[email protected]%23%24https%3A//2018.cn/m/index.php%3Fmod%3Dinformation%26id%3D4456634; EMARTICLE9=05-14 19:39:[email protected]#$%u4E1C%u839E%u4E1C%u57CE%u5E9F%u94C1%u5E9F%u94A2%u56DE%u6536%u516C%u53F8%u9AD8%u4EF7%u56DE%u6536%u5851%u80F6%u5E9F%u6A21%u5177%u62A5%u4EF7%20-%20%u4E1C%u839E%u7269%u54C1%u56DE%u6536%20-%20%u4E1C%u839E2018%u4FE1%u606F%u6E2F%u624B%u673A%[email protected]%23%24https%3A//2018.cn/m/index.php%3Fmod%3Dinformation%26id%3D4456318; EMARTICLE6=05-15 20:31:[email protected]#$%u5409%u6797%u5E02%u5404%u79CD%u9AD8%u4F4E%u7AEF%u914D%u7F6E%u7535%u8111%u56DE%u6536%u8BC4%u4F30%u4E0A%u95E8%u53D6%u8D27%u4EE5%u4E00%u6761%u9F99%20-%20%u5409%u6797%u7269%u54C1%u56DE%u6536%20-%20%u5409%u67972018%u4FE1%u606F%u6E2F%u624B%u673A%[email protected]%23%24https%3A//2018.cn/m/index.php%3Fmod%3Dinformation%26id%3D4456630; UM_distinctid=17208040fa497-05e8cc9963ce1-d373666-1fa400-17208040fa5564; CNZZDATA1253450280=2048944961-1589270953-https%253A%252F%252Fwww.baidu.com%252F%7C1589545383′} def grt_one_page(url): try: response = requests.get(url,headers=headers) if response.status_code == 200: […]

  • Good luck! Cross blind box game you can’t miss at the beginning of the year

    Time:2021-11-17

    Hello, everyone. Today is the seventh day of the Lunar New Year and a good day for construction. So far, cross has 250000 user addresses. The development of cross, a decentralized NFT distribution and auction platform built with the support of cybervein foundation, is also ongoing. In the first quarter, in addition to opening b-end […]

  • PHP ?? Convenient

    Time:2021-11-14

    $post = [ ‘page’ => 10, ‘b’ => 200 ]; $page = $post[‘page’] ?? 1; //Equivalent to $page = isset($post[‘page’]) ? $post[‘page’] :1; $page = $post[‘page’] ?: 1; //Equivalent to $page = $post[‘page’] ? $post[‘page’] :1; //This is the method of uploading files. False is returned if it fails $res = $this->uploadfile(); $img_path = $res […]