home page
Message Board
About us
Friendly Links
Search
one
Using idle mobile phones to build a local WEB environment+ngrok intranet penetration to achieve external network access
48563 Reading
two
Xiaomi 8 installs Google Play service suite
31581 Reading
three
The single player landlords' non networked green version is suitable for the elderly
24355 Reading
four
Chinese and English names of 224 countries in the world
21894 Reading
five
Emlog, wordpress, typecho articles, whether Baidu has included detection codes
16797 Reading
Default classification
Source code tutorial
Life essay
Code Notes
Sign in
Search
Tag Search
SSL
vps
CentOS
AppNode
Intranet penetration
Node.js
Hairpin
GitHub
python
Google Voice
Local environment
Linux panel
Google Play
MarkDown
Vue
yarn
Small shop
Applet
Remote Desktop
frp
www.9ywk.com
Accumulated writing
seventy-four
Articles
Accumulated receipt
sixty-four
Comments
home page
column
Default classification
Source code tutorial
Life essay
Code Notes
page
Message Board
About us
Friendly Links
Search to
sixty-two
Article and
Results for
2023-05-07
This content is password protected
Encrypted article, please go to the inside page to check the details
May 7, 2023
75 Reading
0 Comments
0 likes
2022-08-10
Fastboot wire brush ROM and repair boot no root no twrp brush mask
There are risks in the machine brushing, so please be careful!!!
There are risks in the machine brushing, so please be careful!!!
There are risks in the machine brushing, so please be careful!!!
The premise is to unlock the mobile phone BL (Baidu itself and understand the risks of unlocking the mobile phone,
Select and patch a file. Find the boot.img patch just extracted. Wait patiently
The repaired boot file is in the download directory of the mobile phone, and its name is: magic
Img places the boot file on the computer and renames it to boot.img 3. fastboot brushes in the patch boot. First download the adb and fastboot tools to decompress them. Move the newly patched boot image to the images directory and click to open the CMD command line. bat Mobile phones enter the rabbit mode and connect the computer to brush in the patch boot.img. Note the boot location fastboot devices # Check whether the device is loaded normally
fastboot flash boot boot.img
Fastboot reboot # Restart the phone line brush ROM to be continued
August 10, 2022
1778 Reading
0 Comments
0 likes
2022-04-02
Windows - Screen strobe resolution
The old laptop on hand has been used for many years. After using the computer for a while, my eyes are very tired. I usually don't pay much attention to this detail problem. Today, I was bored to open the camera to check the screen flicker problem. I was shocked at the sight. The stroboscopic is very serious, and it hurts my eyes too much!!!
{alert type="success"} Professional mode of mobile camera, set ISO to the maximum, aim at the screen to view {/alert} View the default strobe. So I found a software to change strobe on the Internet,
View the default strobe, and there is only 200 cmd window to execute the software: PWMHelper.exe View the default strobe, and modify the strobe to 2000 cmd window to execute the software: PWMHelper.exe 2000 Modify the strobe to 2000 {message type="info" content="It is recommended to modify it moderately. It may be too large to affect the screen hardware.",
It was restored to its original state after restart.
Use bat script to realize automatic modification when starting up.
1. Create a script @ echo off with the bat suffix
start "wumin" "C:\Windows\System32\cmd.exe"
C:\Users\jiuyue\Desktop\CMD\PWMHelper.exe 2000
taskkill /f /im cmd.exe
Exit {collapse} {collapse item label="The above script command explanation - click expand"} The first line is the command to execute batch processing.
The second line is the start command, which is responsible for starting the cmd.exe program.
As for wumin, which is the name of the cmd command length, it can be omitted.
The following is the storage path of cmd.
The third line is the command to be executed in cmd.
The fourth line is to close the cmd command window after executing the command.
The fifth line is also the exit command, which seems dispensable.
{/collapse item} {/collapse} 2. Put this script in C: ProgramData Microsoft Windows Start Menu Programs StartUp to realize boot up and execute command modification.
If the above directory cannot be found, you can find it through "Run" – "shell: startup".
Download github:
https://github.com/anatoliis/PWMHelper
From My Love Forum:
https://www.52pojie.cn/thread-1225198-1-1.html
April 2, 2022
1212 Reading
0 Comments
1 Like
2022-02-07
Xiaomi 8 Brush Win11/Android dual system
This tutorial is Xiaomi 8UD 8+128G version, but it is not Xiaomi 8 that can use the Windows system. You can check the Windows device support status:
https://renegade-project.cn
The tutorials are similar to each other, but some of the files used are different.
Risk of machine brushing!
Be careful!
Risk of machine brushing!
Be careful!
Risk of machine brushing!
Be careful!
It is stated that the machine brushing method and all documents of this project are not developed or produced by myself. I have only done resource integration, and the documents are all obtained through the network, and have been uploaded to Alibaba's online disk. I can only learn and communicate, and do not do business transactions. I have nothing to do with the economic disputes and legal responsibilities arising therefrom.
As well as the risks brought by unlocking the mobile phone, we hope you all know. Therefore, the way to unlock the mobile phone is to consult Baidu or Xiaomi Community. This is a tutorial. If the software and hardware damage and other consequences after unlocking and brushing the phone have nothing to do with me, we recommend that you do not try using the main machine!
Those who watch videos or download online files agree to this statement by default.
1、 Hardware environment Computer, type-c OTG cable, USB docking station, keyboard, mouse, 16G+U disk, Xiaomi 8 screen fingerprint version 8+128 II. Software preparation About the description of mobile phone driver code,
Don't download wrong Xiaomi 8 ordinary version: dipper Xiaomi 8 screen fingerprint version: equuleus name description placement location download address extraction code dism++release image tool USB stick None None SDM845SDM845 latest drive USB stick WOA Drivers None win11Win image USB stick None KMS activation tool USB stick None PE command USB stick None PE image computer dial 1234ADBadb Computer None None MIUI system Computer None None None None none P
Artedparted mobile phone partition file computer none none UEFI1.1win boot image computer none one button TWRP third-party rec computer none none {dotted startColor="# ff6c6c" endColor="# 1989fa"/} 3. For Xiaomi8, swipe MIUI12 and PE1, unlock the mobile phone (self Baidu and understand the risks of unlocking the mobile phone!!!) 2. Swipe recovery+copy partition file (parted) ①
After the phone is unlocked, enter the rabbit mode (fastboot mode) and connect to the computer (press the shutdown key and volume - after shutdown) ② Open: the recovery twrp one key brush in tool. bat (made by wzsx150) in the one key TWRP folder of Xiaomi 8UD Android 10. Press the prompt to operate, the phone will restart several times to enter TWRP ③ After entering TWRP, advanced - signature boot (prevent re from restarting) ④
Copy the parted file in the "parted file (phone partition file)" folder to the internal storage root directory of the phone 3. Configure the adb environment for the computer (skip if any) ①. Right click the computer - Properties - Advanced System Settings - Advanced - Environment Variables ②. At the system variable below, find the variable named Path, double-click ③
New - Copy the unzipped "file address" here (it is recommended to unzip it to a place without Chinese), and then click three to exit. 4. Partition the phone (ensure that the power of your phone is greater than 80% at this time) ①. Run the command prompt as an administrator to ensure that the phone is in TWRP and connected to the computer ②
Enter adb shell on the command line to copy the following contents line by line to the command line window and press cp/sdcard/parted/sbin/&chmod 755/sbin/parted
umount /data && umount /sdcard
parted /dev/block/sda
P # Enter a p to display your phone partition information
Rm 21 # 21 is the userdata partition number
mkpart esp fat32 1611MB 2100MB
mkpart pe fat32 2100MB 5100MB
mkpart win ntfs 5100MB 68GB
mkpart userdata ext4 68GB 123GB
Set 21 esp on ③, restart rec5, format partition ①, enter the adb shell again at the command line, copy the following content line by line to the command line window and press Enter.
mkfs.fat -F32 -s1 /dev/block/by-name/pe
mkfs.fat -F32 -s1 /dev/block/by-name/esp
mkfs.ntfs -f /dev/block/by-name/win
Mke2fs - t ext4/dev/block/by name/userdata6, line brush MIUI12 ①, shut down the mobile phone, restart it to enter the rabbit mode (fastboot mode) and connect it to the computer (press the shutdown button and volume - after shutdown) ②, open the XiaoMiFlash.exe software in the folder "MIUI V12.5.1 line brush package" ③, click the drive in the upper left corner to install the drive,
And select the folder dipper in the newly unzipped wire brush package_
images_
V12.5.1.0.QEACNXM_
20210602.0000.00_
10.0_
Cn ④. Load the device, click Delete All at the bottom after the device appears (remember not to lock the phone again), and then click Refresh ⑤. Wait for the automatic startup to complete after the line is brushed. 7. Press Recovery ① again for Xiaomi 8. Press Shutdown and Volume after shutdown - enter the rabbit mode (fastboot mode) and connect the computer ②
Open: Xiaomi 8UD Android 10 One click TWRP folder in the recovery twrp one click tool. bat (produced by wzsx150), follow the prompts, and the phone will restart several times to enter TWRP ③. After entering TWRP, advanced - signature boot (to prevent restarting rec) 8. Copy the PE image and UEFI file to the phone's internal storage, and mount the PE partition to/mnt ①. Restart the phone to TWRP ②
Install the boot-equoleus.img file in the "UEFI1.1" folder and the 20h2pe file in the "PE Mirror" folder_
Copy the new folder into the internal storage root directory of the phone ③, enter adb shell again on the command line to mount the PE partition to/mnt, copy the following content line by line to the command line window and press Enter.
mount /dev/block/by-name/pe /mnt
cp -r /sdcard/20h2pe_
New/*/mnt9. Install the image image ①, restart to enter TWRP, backup – partition – boot (to prevent the Android system from failing to return later) ②, install – brush the image image – boot-equoleus.img – boot partition – restart the phone At this time, if successful, the loading interface will appear and enter pe.
If it fails (running a lot of English), jump back to step 8 ③ Repeat {dotted startColor="# ff6c6c" endColor="# 1989fa"/} IV. Install win111, connect your keyboard, mouse, and USB flash drive to your phone through USB docking station and OTG cable (ensure that your phone's power is greater than 80% at this time) 2. Set the drive character for efi system partition, and the command line window does not need to be closed in the whole process ①
Open the PE command. txt file in the USB flash drive (this computer - your USB flash drive - PE command. txt) ② Copy the upper half of the PE command. txt file, copy it line by line to the command line window and press diskpart # Enter, and then wait a little while
select disk 0
list part
Select part 21 # 21 is your esp partition number
assign letter=Y
Exit3. Release the Win11 image and install the driver ①. Open the "2. Dism++Release Image Tool" folder in the USB flash drive, double-click Dism++ARM64.exe, enter the software, and click Accept ②. Click the file in the upper left corner - Release Image ③. Select the ISO image of win11 placed in the USB flash drive. Select the largest disk to release. Remember to check Add Boot ④. Wait patiently,
After installation, click OK ⑤, click Open Session, select the left drive management, click Add Drive in the blue at the bottom right corner ⑥, open the "1. SDM845 Drive" folder in the USB flash drive, select output, click Select Folder, and wait patiently ⑦, click OK to close the software Disc++ARM64.exe4, close and close the driver signature ①
Go back to the command window and the PE command. txt ②. Copy the following line by line to the command window. Enter bcdedit/store Y: efi microsoft boot bcd/set {Default} testing on
Bcdedit/store Y: efi microsoft boot bcd/set {Default} nointegritychecks on5. Restart, enter the win11 system ①, copy the following contents to the command window to shut down the phone shutdown - s - t 0 ②, turn off the shutdown screen for a few seconds, press the power on key, and wait patiently for about 5 minutes to complete the startup ③, enter the Windows system, and open the activation tool HEU in the USB flash drive_
KMS_
Activator_
V23.10.exe software, click Start {dotted startColor="# ff6c6c" endColor="# 1989fa"/} V. Touch and brightness come from selfless group friends: @ Aoshi Jinghun provides ①, copy the one click change DSDT folder in "One click change DSDT mi8 touch brightness repair beta" to the computer desktop ②, right click the change DSDT.cmd file to run as an administrator,
Six, how to switch Android system/Win11 system after reboot. 1. Backup boot1. Backup Android system boot has just finished running Android system boot 2. Backup Win11 boot ①. Press the power on button+volume increase button to enter TWRP under shutdown status. ② Backup – partition – boot2. Switch Android system/Win11 system ①. Click Restore ② in TWRP
According to the backup time, you can know which is Android and which is Win11. Click Restart to start the corresponding system.
{dotted startColor="# 6353df" endColor="# 8794a1"/} For video tutorial, refer to station B up: Xinxu nanny level computer brushing video link: BV1pU4y1A7QV Dual system video link: BV1dL4y187XX_
P1 No clip One time brushing dual system video link: BV1dL4y187XX_
P2up main QQ communication group: 978259281up main Baidu online disk extraction code: 1j2t This article comes from the tutorial document of the B station up: Xinxu Baidu online disk, slightly modified, and simply backed up.
In case of no trouble for a long time, I'm afraid to forget: (funny)
February 7, 2022
4006 Reading
0 Comments
4 likes
CentOS7 Add or Modify SSH Ports
Vim Edit ssh Configure vim/etc/ssh/sshd_
Config finds "# Port 22", and directly type "yyp" in this line to copy this line to the next line. Then remove the comments in the two lines and change them to Port 22
The default listening port of Port 10086SSH is 22. If you do not force other ports to be specified, "Port 22" is an open 22 access port.
I reserved port 22 above to prevent access to port 22 from becoming impossible due to various permissions and configuration problems. When everything is OK, close port 22.
Restart the server shutdown - r now
December 10, 2021
659 Reading
1 Comments
0 likes
2021-04-07
Updated the lower drive
Just downloaded AI software and opened the prompt video: NVIDIA GeForce 850. Unsupported video drivers followed the repair prompt to update the lower driver, which perfectly solved the NVIDIA driver download
https://www.nvidia.cn/Download/index.aspx?lang=cn
Search. This is my installation. I choose the second one. I don't know how the first one will fail.
After installation, open AI, and there is no prompt. Click Help - System Compatibility Report - before any conflict, the OBS display captures and does not display images. After following the online tutorial, it cannot be solved. Surprisingly, through this update, OBS can also be used, but it still needs simple settings,
Right click the NVIDIA panel on the desktop - Manage 3D - Program settings - Customize OBS - Integrated image QAQ: window capture Chrome does not display Chrome Close hardware to speed up restart
April 7, 2021
758 Reading
0 Comments
0 likes
2021-03-11
Nginx+rtmp live streaming media server
This article uninstalls Nginxnginx rtmp and nginx based on the pagoda panel. The configurations of Nginxnginx rtmp and nginx are different, and the pagoda panel does not support the installation of nginx rtmp to pre download Nginxcd/www/server
git clone
https://github.com/arut/nginx-rtmp-module.git
#Git error Installing git: yum - y install Git Modify the configuration (pay attention to the format) vim/www/server/panel/install/nginx. sh Add module: -- add module=/www/server/nginx rtmp module Install nginx (it takes a long time, can cooperate with screen) sh/www/server/panel/install/nginx. sh install 1.18 Create a website,
Remember the website directory Modify Nginx configuration settings - Modify the configuration About 13 lines Add rtmp{
server {
listen 6666; #
The monitored port can be replaced at will. Remember the square corresponding port after replacement
chunk_
size 4000;
application hls {
live on;
hls on;
hls_
path /www/wwwroot/xx.com/live; #
Here is the path of the live folder
hls_
fragment 5s;
}
}
}Reload, restart nginx streaming address:
rtmp://IP:port/hls
Playback address:
http://IP/live/
Streaming key. m3u8 Streaming key is set on the streaming client, such as the OBS firewall release port. This article refers to:
https://blog.csdn.net/qq_35774849/article/details/106334115
March 11, 2021
1232 Reading
1 Comments
2 likes
2020-12-21
Convert video to character video through Python
{dplayer src="
https://cdn.9ywk.com/wx/ywx.mp4
"/} Principle: Export every picture of the video, convert every picture to ASCII code, synthesize the converted ASCII code picture to video, Python installation can refer to this article
https://www.9ywk.com/Python.htmlPython
The library to be installed opencvpip3 install opencv pythonbillowpip3 install pillow After installing the library, place the video in the folder of the py script and modify the video_
If the parameter after path is your video path name, you can run if__
name__ == '__
main__':
video_
path = 'video/heiren.mp4'
save_
pic_
path = 'cache_
pic'
save_
charpic_
path = 'cache_
The default exported video for char is. avi format. You can modify about 107 lines of code, such as mp4video_
Writer=VideoWriter ('video/new_char_video. mp4 ', source code
https://github.com/hongcyu/char_painting
Finally, it is explained that the script does not process audio, but can be processed by other software.
Reference:
https://hongcyu.cn/posts/opencv-pictovideo.html
December 21, 2020
1065 Reading
0 Comments
0 likes
one
two
...
eight
//