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
47905 Reading
two
Xiaomi 8 installs Google Play service suite
30909 Reading
three
The single player landlords' non networked green version is suitable for the elderly
23645 Reading
four
Chinese and English names of 224 countries in the world
21279 Reading
five
Emlog, wordpress, typecho articles, whether Baidu has included detection codes
16664 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-two
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
twelve
Article and
Results for
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, and 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
1272 Reading
0 Comments
0 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
560 Reading
1 Comments
0 likes
2021-08-03
FFmpeg video de watermark
{message type="success" content="Preview video at the bottom"/} Install FFmpegCentos 7 * * Install EPEL Release, because the installation requires other repo sources, EPEL support is required
sudo yum install -y epel-release rpm
**If the prompt of missing code appears, execute this command
sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
**Import a code
sudo rpm --import
http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
**Install the nux dextop source
sudo rpm -Uvh
http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
**Installing FFMPEG
sudo yum install -y ffmpeg
**Check whether FFMPEG is successfully installed. The version of FFMPEG will be displayed
Ffmpeg - versionFFmpeg De watermark the video to generate a frame image INFILE=FFmpeg_
music_
mv.mp4
ffmpeg -hide_
banner -ss 3 -y -i "${INFILE}" -f image2 -vframes 1 ${INFILE}.jpg
**FFmpeg-music-mv.mp4 is the video in the current directory
**Get a frame image in the current directory FFmpeg-music-mv.mp4.jpg Get the watermark coordinate reference: ffmpeg-watermark-position-extraction tools Open the webpage to upload the image obtained above, manually move the mask to the watermark position [resize] to cover the watermark Command: The area will generate a command (only capture the video content for 15 seconds) ffmpeg - hide_
Banner - googlevel error - y - i Source video name. mp4 - vf delogo=x=771: y=20: w=144: h=58: show=0 - t 15 De watermark output name. mp4 De watermark INFILE=FFmpeg_
music_
Mv.mp4 # Source video
ffmpeg -hide_
banner -loglevel error -y -i FFmpeg_
music_
Mv.mp4 - vf delogo=x=771: y=20: w=144: h=58: show=0 - t 15 222.mp4 Full content removal time parameters: - t 15 command INFILE=source video.mp4
ffmpeg -hide_
Banner - googlevel error - y - i Source video. mp4 - vf delogo=x=240: y=446: w=256: h=114: show=0 After processing. mp4 {dotted startColor="# ff6c6c" endColor="# 1989fa"/} Source video preview: {dplayer src=“
https://cdn.9ywk.com/wx/FFmpeg_music_mv.mp4
"/}:: (funny) De watermark video preview: {dplayer src="
https://cdn.9ywk.com/wx/FFmpeg_music_mv_test.mp4
"/}{mtitle title="END"/}
August 3, 2021
1496 Reading
4 Comments
3 likes
2021-06-07
Linux Installing Python
https://www.python.org/ftp/python/
Download wget
https://www.python.org/ftp/python/3.9.5/Python-3.9.5.tgz
Unzip tar - xf Python - 3.9.5.tgz
Cd Python - 3.9.5 Compile and install./configure&&make&&make install Wait patiently
Check whether the version is installed successfully. Python 3 - V establishes a soft link. After compilation, the program is usually installed in/usr/local/bin. If the version is not displayed, the soft link is created. The soft link is globally effective ln - s/usr/local/bin/python3.9/usr/bin/python
Ln - s/usr/local/bin/python3.9-config/usr/bin/python configpip Command error - bash: pip: command not found Solution (Centos version) Download pip script wget
https://bootstrap.pypa.io/get-pip.pyPython
Execute the pip script to install python3 get-pip.py. View the pip version. pip - V Uninstall Python 3rpm - qa | grep python3 | xargs rpm - ev -- allmatches -- nodes Delete all residual files where is python3 | xargs rm - frv View existing installed Python where is python
June 7, 2021
773 Reading
1 Comments
0 likes
Record enterprise WeChat parameters
Parameter description Obtaining method AgentId Application ID Application interface corkscret Application key Application interface corkid Enterprise ID My enterprise bottom touser member ID/account @ all represents all members of the enterprise media_
Id Image media file id Online acquisition valid for 3 days Fill in the order Enterprise ID, application key, member ID/account number, application ID, image media file idF12 acquire media_
Id management tool - material library - upload an image - f12 Find the image URL. Media in the request address_
id
April 14, 2021
732 Reading
0 Comments
1 Like
2021-04-02
Local projects are uploaded to Github through Git
Download the Git installation default installation, and then open the Git bash first installation configuration in the menu bar # Configure the mailbox with the same account name
git config --global user.name “Your_github-Username”
git config --global user.email “Your_github-email”
#View user name mailbox
git config user.name
git config user.email
#You can also view user mailboxes directly
vim ~/.gitconfig
: q Quit creating SSH keys. Since the transmission between the local Git repository and the Github repository is encrypted through SSH, you need to set it to check whether there is a. ssh directory in the user directory of disk C. If there is a hidden (C: Users user name), check whether there is a private key id in. ssh_
Rsa and public key id_
The rsa.pub file can be skipped to the next step. If not, you can create ssh keygen - t rsa - C "your_github email" by using the following command, and directly press Github to set the SSH key, log in Github New SSH key, and randomly fill in the title, content, and title. For example, GitKey generated: id_
Rsa.pub creates an empty warehouse (for uploading)
https://github.com/new
Other commands git rm - r -- cached
Delete all files in the cache (note this. If there are spaces, you can cancel a file if you change the file name to.) The remote repository uploaded by Git is empty (the new repository does not have README. md) 1. cd to the directory to be uploaded (the local repository), such as the test folder,
Pwd can view the current location 2. Initialize the local repository git init A. git folder will be created under the current test directory, which means to turn this folder into a Git manageable repository. It is used by Git to track and manage version libraries. Local repositories 3. Associate the remote repository git remote add origin github repository HTTPS address 4. Add files to the cache git add//
All contents in the current directory
Git add user//Specify a file or folder
Git status//View the cache file
(Note that this "." has spaces, and "." means that all files under this test folder are submitted. You can also submit the specified file through the git add file name
Git branch - a//View branches
Git checkout xxx//Switch branches
Git push - u origin master remote warehouse is empty, so you need to add - u to this parameter. The remote warehouse in the master branch of the cached file push to github warehouse is not empty (old warehouses, including those with no content and records) 1. Clone the remote warehouse (download) git clone warehouse address 2. cd to the cloned warehouse; the cloned warehouse contains the. Git folder,
There is no need to initialize and associate remote warehouse addresses with git init. 3. Add files to the cache git add//
All contents in the current directory
Git add user//Specify a file or folder
Git status//View the cache file 4. Submission instructions git commit - m 'first commit' 5. Upload git push origin master to delete the warehouse file
▶
Delete git clone warehouse address locally and remotely
//Negligible
Git rm file//The local file will be deleted
Git rm - r folder//local will be deleted
git rm -rf . //
All local items will be deleted
Git commit - m 'Delete a file'
The git push origin master will also delete the corresponding local file. If you do not want to delete the local file but only delete the corresponding part in the cache, add -- cached
▶
Only delete remote warehouse git clone warehouse address
//Negligible
Git rm -- cached file//The local file will not be deleted
Git rm - r -- cached folder//Local will not be deleted
git rm -rf --cached . //
All local items will not be deleted
Git commit - m 'Delete a file'
git push origin master
April 2, 2021
796 Reading
0 Comments
0 likes
Docker Common Commands
Some basic commands are collected from the network docker installation:
https://www.9ywk.com/344.html
Container management View container name Docker ps - a Enter the container terminal Docker exec - it name bash Export a file {alert type="success"} Example: container name is d, file name is file.py,
The path of file.py is:/python/file.py Export the file.py in the container d to {/alert} under/root
Execute docker cp under root d:/python/file.py/rootdocker version query docker - v Start systemctl start docker Start automatically systemctl enable docker Stop systemctl stop docker Restart systemctl restart docker View status systemctl status dockerdocker container directory cd/var/lib/docker/containers View all containers # View all running containers docker ps - a # docker p
S Stop a container docker stop containerID Start a container docker start containerID Restart a container docker restart containerID Stop all containers docker stop $(docker ps - a - q) Delete a container docker rm containerIDdocker rm - f containerID # Force delete delete all containers docker rm $(docker ps - a - q) docker rm - f $(docker ps - a - q)
#Forcibly delete images View images Docker images Delete images Docker rmi imageID Delete all images Docker rmi $(docker images - q)
February 5, 2021
634 Reading
0 Comments
0 likes
2021-02-04
Record the Docker installation record
Official one click installation script!
All Linux systems support it!
Common commands:
https://www.9ywk.com/368.htmlcurl
-sSL
https://get.docker.com/
| sh
curl -fsSL
https://get.docker.com
| bash -s docker --mirror Aliyun
#Start
systemctl start docker
#Self priming
Systemctl enable dockerPortainer Chinese version Create directory mkdir - p/data/portainer/data/data/portainer/public
Cd/data/portainer Download wget
https://d.ttit.win/linux/public.zip
Unzip to publicunzip public.zip Start docker run - d -- restart=always -- name porter - p 9000:9000 - v/var/run/docker.sock:/var/run/docker.sock - v/data/porter/data:/data - v/data/porter/public:/public porter/porter: latest Initialize and configure docker composecurl - L through ip: 9000
https://github.com/docker/compose/releases/download/1.29.1/docker-compose-
`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
Chmod+x/usr/local/bin/docker compose 1.29.1 is the version number of docker compose. For more versions, refer to
https://github.com/docker/compose/releases
Judge whether the installation is successful or not. If you want the Docker Compose container to start automatically,
You need to create a startup script. Create a docker compose start.sh script. The script content is docker compose - f/export/docker/docker compose nginx. yml up - d-f/export/docker/docker compose nginx. yml is to specify the configuration file of docker compose. Put the written script (. sh) in the directory/etc/profile. d/,
After the system starts, all shell scripts in this directory will be executed automatically.
Uninstall # Query installed packages
[root@ ~]# yum list installed | grep docker
docker-ce-cli.x86_
64 1:20.10.2-3.el7 @docker-ce-stable
#Uninstall docker-ce-cli.x86_
sixty-four
[root@ ~]# yum -y remove docker-ce-cli.x86_
64 Finally, delete the container image, etc. RM - rf/var/lib/locker is too slow to pull the image?
The Docker Hub is the center where we distribute and obtain Docker images. Since the server is located overseas, it is often too slow or inaccessible to pull/upload images.
Some domestic image sources: University of Science and Technology:
https://docker.mirrors.ustc.edu.cn
Netease Cloud:
https://hub-mirror.c.163.com
Baidu Cloud:
https://mirror.baidubce.com
DaoCloud:
http://f1361db2.m.daocloud.io
Alibaba Cloud:
https://ustc-edu-cn.mirror.aliyuncs.com
Github:
https://ghcr.io1.
Edit the/etc/docker/daemon. json configuration file vim/etc/docker/daemon. json file does not exist. It will automatically create and add image sources (multiple can be set according to actual needs):{
"registry-mirrors": [
"
https://docker.mirrors.ustc.edu.cn
",
"
https://hub-mirror.c.163.com
"
]
}
2. Restart the Docker service docker restart
February 4, 2021
899 Reading
0 Comments
2 likes
one
two
//