• Solution for Linux user forgetting password


    Grub: on the boot loader menu, type [e] to enter edit mode. You will face a list of guided projects. Find a sentence line similar to the following output:   kernel /vmlinuz-2.4.18-0.4 ro root=/dev/hda2 Press the arrow keys until the line is highlighted, and then press [e]. You can now leave a space at the […]

  • Writing custom cli tools


    Simple demo Code package json { “name”: “daytoy”, “version”: “0.0.1”, “description”: “nodejs cli program”, “main”: “index.js”, “scripts”: { “test”: “echo \”Error: no test specified\” && exit 1″ }, “author”: “daytoy”, “license”: “ISC”, “bin”: { “toy”: “index.js” } } binProperty has an executable,cliCommand required to runindex.jsDocuments. Preparation of executable documents #! node console.log(‘DAY DAY TOY !’); […]

  • CentOS root space expansion


    There are too many applications installed in VMware virtual machine, resulting in insufficient root directory space. Is there any way to expand the root directory space?After collecting various data, the problem was solved successfully, and the space of the server was expanded from 6G to 8g. The whole implementation process is summarized as follows for […]

  • The 30th anniversary of vim’s birth: author Bram Molenaar and developer Alex Baldwin wrote articles to celebrate


    Since its release in 1991, VIM has now been in a polarized developer community for 30 years. Just now, the author Bram Molenaar and the developer Alex Baldwin sent messages to express their feelings and congratulations on “the 30th anniversary of vim’s birth”. VIM author Bram Molenaar said in the latest celebration email: The first […]

  • What is the difference between Python and go?


    Python and go are powerful and advanced programming languages used to write web applications. They have a wide range of fields and prospects. What is the difference between them? Let’s take you to Python and go. What is Python? Python is a powerful high-level programming language, which is mainly used for scientific and engineering calculation. […]

  • Big data development: Spark framework dataset API


    As a necessary framework for big data technology ecology, the importance of spark has long been neglected. In the existing big data technology ecosystem, spark is still an important skill that big data development engineers need to master. Today’s big data development, learning and sharing, we will mainly talk about spark framework dataset API. Spark2. […]

  • Kali Linux simple anonymous processing method


    #0x01 simple environment preparation The following environment is required:-tar、git、tor、curl、python3、python3-scapy Native version: Debian 5.14.16-1kali1 (2021-11-05) My is the lack of tor. I suggest you directly type the following command to check that the installation is in place with one click apt update && sudo apt install tar tor curl python3 python3-scapy network-manager     #2. Install, […]

  • Android development environment configuration based on Android studio


    1、 JDK (Java) installation and environment variable setting(1) JDK DownloadJDK download address:Official address:https://www.oracle.com/technetwork/java/javase/downloads/index.html 20190423101056139.png 20190423101112591.png Mirror address:https://www.androiddevtools.cn/ 20190423101447797.png (2) JDK installationInstall jdk-8u211-windows-x64.exe to disk D (3) JDK environment variable configuration JAVA_HOME D:\Java\jdk1.8.0_202 Path %JAVA_HOME%\bin %JAVA_HOME%\jre\bin Note: in windows10, the path variable is displayed in strips. We need to add “% java_home% \ bin” and “% […]

  • Time synchronization of PLC or CP using NTP (Siemens plc1500)


    Time synchronization of PLC or CP using NTP (Siemens plc1500) Time synchronization of PLC or CP using NTP (Siemens plc1500) Jingzhun electronic technology official wechat – ahjzsz 1. Products supporting NTPNetwork time protocol (NTP) is a standard for computer system clock synchronization through packet based communication network. NTP is a general mode for synchronizing system […]

  • Day 7 of golang Learning Series: operating redis


    0. Please refer to the redis memo for redis installation 1. Golang redis Switch to the golang working directory, create a new project redis, and then establish a file connected to redis [[email protected] src]# pwd /dongguangming/goworkspace/src [[email protected] src]# mkdir redis [[email protected] src]# cd redis/ [[email protected] redis]# touch redis-conn.go Edit the redis-conn.go file, which is [[email protected] […]

  • Basic chapter – installation and use of pychar for beginners. This chapter is enough


    brief introduction Pychart is one of the most recommended editing and debugging software in Python programming. It is simple to use and has a friendly interface. It has also become one of the software that must be learned on the way to learn python. This tutorial briefly introduces the basic functions of Windows users from […]

  • Why use Ctrl + Z to exit Python under windows and Ctrl + D under Linux?


    Open our command line and enterpython, we’ll enterpythonInteractive mode. When we want to quitpython, return to ourshellHow will you exit? As mentioned above, two effective methods are inputexit()perhapsquit()To stop thispythonProcess. In addition, there is a more well-known way:Use the shortcut key to exit。 And this operation isWindowsandLinuxThe two platforms are different – the former usesCtrl […]