• PC terminal multi terminal fusion scheme


    Write a ToDo list for the next day every day. One day when I was writing, I suddenly thought that in order to make myself know what I need to do, how much I have done, and how much I have left to do, I want to write a computer-side program. I chose electron when […]

  • Using Python scripts to read data code instances from a file


    This article mainly introduces how to use Python script to read data code from the file. This article introduces the example code in detail, which has certain reference value for everyone’s study or work, and friends in need can refer to it Recently, the progress of self-learning Python is relatively slow. After work, I look […]

  • Redis and Lua and redis py application Lua


    Basic command Redis scripts use Lua interpreter to execute scripts. Reids version 2.6 supports Lua environment through embedded. The common command for executing scripts is eval. EVAL script numkeys key [key …] arg [arg …] EVAL “return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}” 2 key1 key2 first second 1) “key1” 2) “key2” 3) “first” 4) “second” 1 Eval script numkeys […]

  • Vbs script code to operate registry using WMI page 1 / 2


    oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath    oReg.SetExpandedStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue    oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue    oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue    oReg.SetBinaryValue HKEY_LOCAL_MACHINE,strPath,strValueName,uBinary    oReg.SetMultiStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,arrStringValues    oReg.DeleteKey HKEY_LOCAL_MACHINE, strKeyPath    oReg.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath,strStringValueName    oReg.GetExpandedStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue    oReg.GetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue    oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue    oReg.GetBinaryValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,uBinary    oReg.GetMultiStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,arrStringValues    ‘——————————————————————————————-    Const HKEY_CLASSES_ROOT = &H80000000    Const HKEY_CURRENT_USER = &H80000001    Const HKEY_LOCAL_MACHINE = &H80000002    Const HKEY_USERS = &H80000003    Const HKEY_CURRENT_CONFIG = &H80000005    ‘create a registry keyconst HKEY_LOCAL_MACHINE = &H80000002    strComputer = “.”   Set StdOut = WScript.StdOut    Set oReg=GetObject(“winmgmts:{impersonationLevel=impersonate}!\\” &_     strComputer & “\root\default:StdRegProv”)    strKeyPath = “SOFTWARE\System Admin Scripting Guide”   oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath    ‘create a multi string valueconst HKEY_LOCAL_MACHINE = &H80000002    strComputer = “.”   Set oReg=GetObject(“winmgmts:{impersonationLevel=impersonate}!\\” &_     strComputer & “\root\default:StdRegProv”)    strKeyPath = “SOFTWARE\System Admin Scripting Guide”   strValueName = “Multi String Value Name”   arrStringValues = Array(“first string”, “second string”,_     “third string”, “fourth string”)    oReg.SetMultiStringValue HKEY_LOCAL_MACHINE,strKeyPath,_    strValueName,arrStringValues       ‘create an extended string valueconst HKEY_LOCAL_MACHINE = &H80000002    strComputer = “.”   Set oReg=GetObject(“winmgmts:{impersonationLevel=impersonate}!\\” &_     strComputer & “\root\default:StdRegProv”)    strKeyPath = “SOFTWARE\System Admin Scripting Guide”   strValueName = “Expanded String Value Name”   strValue = “%PATHEXT%”   […]

  • [development on nervos CKB] Introduction to nervos CKB script programming [1]: Verification Model


    Introduction to CKB scripting [1]: Verification Model Author: XuejieIntroduction to CKB script programming 1: validation modelTranslator: Jason orangeLink to Translation: https://talk.nervos.org/t/ckb… So far, the cell validation model in CKB has become more or less stable, so I will start a series of articles on CKB scripting. My goal is to add all the missing details […]

  • Basic concepts of lua learning


    Basic concepts Block (chunk) definition Each source code file in Lua or a line of code entered in interactive mode (CMD) is called a block A block is a sequence of statements or commands Continuous statements in Lua do not need separators, but for readability, they can be separated by adding a new line or […]

  • Generating SQL Server table data programmatically with smo


    As a part of ETL, sometimes it is necessary to generate the insert script of the data, and then copy the human flesh to another place for execution. Students who are familiar with SMSs all know that there is a task to generate script, which can generate database create script, and in fact, it can […]

  • Principle and defense of CSRF vulnerability


    CSRFFull name:Cross Site Request ForgeryCross Site Request Forgery scene Click on a link to find: account stolen, money has been transferred, or inexplicably published some comments and other operations that they do not know. What is CSRF CSRF is a script that can send HTTP requests. It can camouflage the victim to send a request […]

  • Ansible dynamic inventory script in Python


    Ansible 1; Ansible inventory consists of static inventory and dynamic inventory. Static inventory refers to the host and group specified in the file. Dynamic inventory refers to obtaining the list of hosts through external script and returning it to ansilbe command in the format required by ansible. In this part, the host information is generally […]

  • Practice of HTTP interface automation test


    background More and more applications are built based on the separation of the front end and the back end. The back end provides data interface, and the front-end calls the interface to return the JSON data to the UI. At this time, it is more and more important to ensure the correctness of the back-end […]

  • [development on nervos CKB] Introduction to nervos CKB script programming [2]: script basis


    Introduction to CKB scripting [2]: script Basics Original author: XuejieIntroduction to CKB script programming 2: ScriptTranslator: shooter, Jason, orange In the last article, we introduced the current CKB verification model. This article will show you how to deploy CKB code to the network. I hope that after you read this article, you will be able […]

  • Service of Linux command — management system service


    The service command is used to manage system servicesFor exampleStart、Stop、Restart、View statusEtc. The related commands also include chkconfig, ntsysv, etc. chkconfig is used to view and set the running level of services, and ntsysv is used to intuitively and conveniently set whether each service starts automatically.The service command itself is a shell scriptIt looks for the […]