Tag:Script

  • A simple process management tool

    Time:2020-11-28

    New arrival, please take care of it!Hello, my name is Sean. Today I share a simple process management tool.The code is relatively simple, mainly involving shell, Python and some knowledge on Linux.Through simple configuration, it can manage many programs in a unified way, and also can operate a certain process. It has the functions of […]

  • Bash technique: a simple and fast shell script for CD to multi-level parent directory

    Time:2020-11-27

    In Linux, when you need to CD to a multi-level parent directory, you need to entercd ../../../And so on. When the input speed is relatively fast, there will be an extra dot or less input in the middle, which needs to be deleted and re entered. In the actual development work, especially in the Android […]

  • How does BCH send wrong address lose money?

    Time:2020-11-27

    In the morning, I saw the microblog of a big V in a currency circle. He said that because Bitcoin.com Taking bitcoin cash wallet as the default wallet causes users to lose money. I quickly updated it bitcoin.com The wallet tried it out. The change of wallet is very simple. Bitcoin cash wallets is the […]

  • Electron Guide – quick start

    Time:2020-11-26

    quick get start Electron provides a rich native (operating system) API that allows you to create desktop applications using pure JavaScript. And other kinds of Node.js The runtime difference is that electron focuses on desktop applications rather than web servers. This does not mean that electron is a JavaScript library bound to a graphical user […]

  • Electron Guide – debug main process

    Time:2020-11-24

    Debug main process Devtools for browser windows can only debug scripts for rendering processes (such as web pages). To provide a way to debug scripts in the main process, electron provides–debugas well as–debug-brkOption switch. command line switch Use the following command line to switch to debug electron’s main process mode: –debug=[port] This switch will enable […]

  • The difference between login and non login shell

    Time:2020-11-24

    Shell is the interface that Linux uses to send the user‘s input instructions to the kernel, and returns the results of the kernel’s execution instructions to the output. Here we use bash shell as an example. Shells can be divided into two types: login shell and non login shell. The two types execute different scripts […]

  • Electron OCR: OCR tool under MacOS based on electron + react + Tesseract

    Time:2020-11-23

    GitHub repo addressArticle addressDownload maxos Darwin x64 The author has not found too comfortable OCR tools on MacOS, resulting in a lot of things can only hand hit when reading, slightly annoyed. Just a few days ago, Tesseract was used to encapsulate one with electron. Here, we will briefly describe some pits and key points […]

  • The problem that the name of the form modified by the file type = file cannot be echoed normally

    Time:2020-11-23

        The code under easyUI framework is as follows: css:  .file_box{ float: right; width: 1035px; border: 1px solid #999; height: 32px; line-height: 35px; padding-left: 10px; margin-right: 25px; }.file{ float: right; outline: none; border:none; background: #67BEF4; border-radius: 4px; padding: 4px 12px; cursor:pointer; color: #fff; font-size:18px; line-height: 20px; vertical-align: middle; margin: 2px;} HTML page: Select attachment […]

  • Shell script instance

    Time:2020-11-23

    1. Hello world script #!/bin/bash echo “hello world” 2. Create user: 2.1 creating users through location variables #!/bin/bash #$1 is the first parameter (user name) to execute the script and $2 is the second parameter (password) to execute the script useradd “$1” echo “$2” | passwd –stdin “$1” 2.2 prompt the user to enter the […]

  • ‘ascii’ codec can’t encode characters in position

    Time:2020-11-23

    ‘ascii’ codec can’t encode characters in position problem Error in running Python 3 script output to command line in Ubuntu Solution Add Lang or LC_ All is set to en_ US.utf8 Or zh_ CN.utf8 List current settings [email protected]:~# locale LANG=zh_CN.UTF-8 LANGUAGE= LC_CTYPE=”en_US.UTF-8″ LC_NUMERIC=”en_US.UTF-8″ LC_TIME=”en_US.UTF-8″ LC_COLLATE=”en_US.UTF-8″ LC_MONETARY=”en_US.UTF-8″ LC_MESSAGES=”en_US.UTF-8″ LC_PAPER=”en_US.UTF-8″ LC_NAME=”en_US.UTF-8″ LC_ADDRESS=”en_US.UTF-8″ LC_TELEPHONE=”en_US.UTF-8″ LC_MEASUREMENT=”en_US.UTF-8″ LC_IDENTIFICATION=”en_US.UTF-8″ LC_ALL=en_US.UTF-8 List […]

  • [20200814] 8K database maximum line number.txt

    Time:2020-11-22

    [20200814] 8K database maximum line number.txt –//Yesterday, I listened to someone else’s class. They wanted to demonstrate the blocking and deadlock caused by insufficient ITL slots. They said that the maximum line number of the data block in Oracle 8K should not exceed 736–//It is more accurate to say that one block (block size 8K) […]

  • Judging script of system patch with vbs

    Time:2020-11-21

      Set objSession = CreateObject(“Microsoft.Update.Session”) Set objSearcher = objSession.CreateUpdateSearcher Set objResults = objSearcher.Search(“Type=’Software’”) Set colUpdates = objResults.Updates For i = 0 to colUpdates.Count – 1    ‘ If colUpdates.Item(i).Title = _        ‘ “Security Update for Windows XP (KB899587)” Then         ‘If colUpdates.Item(i).IsInstalled <> 0 Then             ‘Wscript.Echo “This update is installed.”            ‘ Wscript.Quit         ‘Else             ‘Wscript.Echo “This update is not installed.”           ‘ Wscript.Quit         ‘End If    ‘ End If    wscript.echo colUpdates.Item(i).Title Next ‘Wscript.Echo “This update is not installed.” How to turn off the Windows XP Service Pack 2 firewall? Set objFirewall = CreateObject(“HNetCfg.FwMgr”)Set objPolicy = objFirewall.LocalPolicy.CurrentProfile objPolicy.FirewallEnabled = FALSESet objFirewall = CreateObject(“HNetCfg.FwMgr”)Set objPolicy = objFirewall.LocalPolicy.CurrentProfile objPolicy.FirewallEnabled = FALSE