@byxiaoxie12 月前

10/31
16:39
Home

修改/隐藏 Tomcat 版本号

##方法1
	在[lib]目录下创建文件夹
	org -> apache -> catalina -> util -> Serverinfo.properties
	将 [Serverinfo.properties] 里面的版本号修改掉或删除保存后运行即可

[Serverinfo.properties] 原文件内容
	# Licensed to the Apache Software Foundation (ASF) under one or more
	# contributor license agreements.  See the NOTICE file distributed with
	# this work for additional information regarding copyright ownership.
	# The ASF licenses this file to You under the Apache License, Version 2.0
	# (the "License"); you may not use this file except in compliance with
	# the License.  You may obtain a copy of the License at
	#
	#     http://www.apache.org/licenses/LICENSE-2.0
	#
	# Unless required by applicable law or agreed to in writing, software
	# distributed under the License is distributed on an "AS IS" BASIS,
	# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	# See the License for the specific language governing permissions and
	# limitations under the License.

	server.info=Apache Tomcat/8.5.93
	server.number=8.5.93.0
	server.built=Aug 23 2023 22:43:14 UTC

##方法2
	在 [lib] 找到 [catalina.jar] 使用压缩软件打开或解包也可以
	找到路径: org -> apache -> catalina -> util -> Serverinfo.properties
	和上面方法一样修改里面内容后重新打包回去 [catalina.jar] 即可

 

修改/隐藏 Tomcat 版本号

@byxiaoxie1 年前

05/15
01:13
Home

Shatterline(破碎线) B-HOP

-- Www.ByXiaoXie.Com
-- Shatterline Auto B-HOP Logitech Lua

local Start = false

function OnEvent(event, arg)
	if (IsMouseButtonPressed(5)) then
		if (Start == false) then
			PressKey("lctrl")
			Sleep(100)
			ReleaseKey("lctrl")
			for i = 0, 40 do
				PressAndReleaseKey("spacebar")
				MoveMouseRelative(100, 0)
				Sleep(1)
			end
			for i = 0, 40 do
				PressAndReleaseKey("spacebar")
				MoveMouseRelative(-100, 0)
				Sleep(1)
			end
			Start = true
		end
		repeat
			if (Start) then
				PressAndReleaseKey("spacebar")
				Sleep(20)
			end
		until not IsMouseButtonPressed(5)
		Start = false
	end
end

鼠标按键说明:按住鼠标侧键上(前进键)

BHOP使用方法:跑起来后按住鼠标侧键上(前进键) 马上松开W即可自动连跳

Shatterline(破碎线) B-HOP

@byxiaoxie2 年前

03/8
21:35
Home

Openwrt 动态DDNS f3322更新失败解决方法

修改列表文件:
	路径:/usr/share/ddns/list 
	在列表中添加一行名称为 [3322.net] 然后保存

修改Json文件:
	路径:/usr/share/ddns/default
	将原来的 [3322.org.json] 复制一份副本然后名称修改为 [3322.net.json]
	
	修改Json内容:
		[3322.org] 名称修改为 [3322.net]
		[members.3322.org] 更改为 [members.3322.net]
		
		然后保存返回Openwrt 动态DDNS 页面编辑更换 DDNS服务供应商 为 [3322.net] 即可
		
		例子:
		{
			"name": "3322.net",
			"ipv4": {
				"url": "http://[USERNAME]:[PASSWORD]@members.3322.net/dyndns/update?system=dyndns&hostname=[DOMAIN]&myip=[IP]"
			}
		}

QQ图片20230308213047-300x83 Openwrt 动态DDNS f3322更新失败解决方法

QQ图片20230308213047-300x83 Openwrt 动态DDNS f3322更新失败解决方法

QQ图片20230308213047-300x83 Openwrt 动态DDNS f3322更新失败解决方法

Openwrt 动态DDNS f3322更新失败解决方法

@byxiaoxie2 年前

03/6
21:38
Home

搭建 Real-ESRGAN 动漫图片修复

系统环境:Windows 10 1909  显卡:GTX 1060  CPU:I7 8700k  (测试GPU算法修复动漫图片 5s 跑完4X修复)
CUDA 下载并安装:
	Docs文档(用于查询对应版本):https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
	CUDA下载:https://developer.nvidia.com/cuda-toolkit-archive

Anaconda 下载安装:

	官方地址:https://www.anaconda.com/

	安装完成后需配置环境变量

	例子 Path:D:\Anaconda3\condabin

Anaconda 创建虚拟环境:

	conda create -n 名称 jupyter notebook cudnn

	预先安装第三方库 jupyter notebook cudnn

	cudnn 用于深度神经网络的 GPU 加速库
	jupyter notebook 交互式编辑器

	例子 conda create -n gary jupyter notebook cudnn

	切换到新的虚拟环境
	activate 名称

	例子 activate gary

	切换后可用 [conda env list] 查看是否切换成功

报错信息:
Collecting package metadata (current_repodata.json): failed

CondaSSLError: Encountered an SSL error. Most likely a certificate verification issue.

Exception: HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

解决方法:
配置环境变量 Path: D:\Anaconda3\Library\bin
开始部署 Real-ESRGAN :

	Github:https://github.com/xinntao/Real-ESRGAN

	1.	先安装PyTorch 地址:https://pytorch.org/get-started/locally/
	2.	下载仓库代码 git clone https://github.com/xinntao/Real-ESRGAN.git
	3.	pip install -r requirements.txt
	4.	下载已经训练好的模型
			wget https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth -P weights
	5.	执行测试 -n 模型名称 -i 输入的目录或文件 --face_enhance 人脸修复(官方文档上提示是不建议修复动漫图片的)
			python inference_realesrgan.py -n RealESRGAN_x4plus -i inputs --face_enhance
	6.	即可输出测试的动漫图片高清修复

 

搭建 Real-ESRGAN 动漫图片修复

@byxiaoxie2 年前

05/26
00:18
Home

Apex Mobile Game IP

Update Time 2022-5-27 00:06:51
#Apex Mobile Game IP (Recommend)
13.33.0.0/16
18.200.0.0/16
23.208.0.0/16
23.50.0.0/16
23.59.0.0/16
23.61.0.0/16
31.13.0.0/16
34.240.0.0/16
34.241.0.0/16
34.242.0.0/16
34.246.0.0/16
34.248.0.0/16
34.253.0.0/16
46.51.0.0/16
52.17.0.0/16
52.18.0.0/16
52.208.0.0/16
52.210.0.0/16
52.211.0.0/16
52.212.0.0/16
52.215.0.0/16
52.31.0.0/16
52.48.0.0/16
52.49.0.0/16
52.50.0.0/16
54.154.0.0/16
54.195.0.0/16
54.246.0.0/16
54.72.0.0/16
54.73.0.0/16
54.75.0.0/16
54.77.0.0/16
63.32.0.0/16
63.34.0.0/16
99.80.0.0/16
142.251.0.0/16
157.240.0.0/16
172.217.0.0/16
#Apex Mobile Game IP All
13.33.0.0/16
18.200.0.0/16
23.0.0.0/8
31.13.0.0/16
34.0.0.0/8
46.51.0.0/16
52.0.0.0/8
54.0.0.0/8
63.0.0.0/8
99.80.0.0/16
142.251.0.0/16
157.240.0.0/16
172.217.0.0/16
#Apex Mobile Game IP (Untreated)
31.13.80.0/24
34.253.94.0/24
54.73.229.0/24
52.215.44.0/24
52.208.127.0/24
52.215.121.0/24
23.61.246.0/24
52.48.13.0/24
34.246.49.0/24
54.75.232.0/24
23.61.246.0/24
54.195.100.0/24
18.202.102.0/24
54.77.35.0/24
34.248.62.0/24
34.242.254.0/24
54.72.161.0/24
52.215.31.0/24
52.49.165.0/24
23.61.246.0/24
52.211.225.0/24
52.31.59.0/24
34.241.171.0/24
63.32.154.0/24
34.240.154.0/24
54.154.147.0/24
52.18.116.0/24
46.51.203.0/24
142.251.35.0/24
31.13.92.0/24
31.13.80.0/24
34.253.104.0/24
63.34.50.0/24
34.246.221.0/24
23.208.14.0/24
18.200.69.0/24
157.240.221.0/24
99.80.87.0/24
52.50.203.0/24
23.50.129.0/24
23.50.129.0/24
63.32.161.0/24
52.212.70.0/24
52.17.172.0/24
13.33.174.0/24
23.59.247.0/24
172.217.175.0/24
52.210.182.0/24
54.246.126.0/24
54.77.200.0/24

 

Apex Mobile Game IP

@byxiaoxie2 年前

05/23
10:21
Home

OpenWrt Passwall 编译教程

声明:转载请带上文章作者[ByXiaoXie] 本教程不提供编译好的软件包下载,如果本教程有违反法律等行为,请联系站长进行删除 谢谢!
PassWall2 编译教程:https://www.byxiaoxie.com/?p=619
虚拟机系统 Ubuntu 20.04.1 硬盘80G 内存4G (ubuntu编译不可用root!)

使用[Lienol]的[OpenWrt]编译固件

OpenWrt:https://github.com/Lienol/openwrt
参考文章:https://github.com/xiaorouji/openwrt-passwall/discussions/1603
安装编译环境
Ubuntu:
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3.5 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex quilt uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf

Source:
git clone -b 21.02 --single-branch https://github.com/Lienol/openwrt openwrt
添加Feeds源
vim feeds.conf.default
在最后一行加上:
src-git lienol https://github.com/Lienol/openwrt-package.git;main
src-git other https://github.com/Lienol/openwrt-package.git;other
src-git PWpackages https://github.com/xiaorouji/openwrt-passwall.git;packages
src-git PWluci https://github.com/xiaorouji/openwrt-passwall.git;luci
添加后更新Feeds
./scripts/feeds clean
./scripts/feeds update -a
添加UPX
wget https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
tar -Jxf upx-3.96-amd64_linux.tar.xz
cd upx-3.96-amd64_linux
chmod +x upx
cd ..
cd openwrt/
cp /home/用户名/upx-3.96-amd64_linux/upx staging_dir/host/bin   //注意修改用户名别复制粘贴
更新Goleng
pushd feeds/packages/lang
rm -rf golang && svn co https://github.com/openwrt/packages/branches/openwrt-21.02/lang/golang
popd
安装Feeds
./scripts/feeds install -a
默认组件和配置菜单
make defconfig
make menuconfig
x86编译
Target System -> x86
Subtarget -> x86_64
Target Profile -> Generic x86/64
Target Images -> [*] Build VMware image files (VMDK) //我这里使用虚拟机测试使用所以选择VMware,其他的看自己需求需要编译什么包基本上默认的包就够

选择软件包 编译软件包 [*]内置
LuCI -> Applications -> <*> luci-app-passwall
LuCI -> Applications -> Configuration  //查看passwall的必要应用有没有选上,由于软件名问题这里我不列出来那些了
配置完成后预下载dl软件包
make download -j5 V=s  //使用5线程下载编译所需的软件包
下载完成后开始编译,第一次编译建议先使用单线程编译
make V=99  //单线程编译
make -j 12 V=99  //12线程编译
编译出来后的固件路径:/home/xiaoxie/openwrt/bin/targets/x86/64

OpenWrt Passwall 编译教程

@byxiaoxie2 年前

05/18
17:57
Home

OpenWrt Passwall2 编译教程

声明:转载请带上文章作者[ByXiaoXie] 本教程不提供编译好的软件包下载,如果本教程有违反法律等行为,请联系站长进行删除 谢谢!
PassWall 编译教程:https://www.byxiaoxie.com/?p=629
虚拟机系统 Ubuntu 20.04.1 硬盘80G 内存4G (ubuntu编译不可用root!)

使用[Lienol]的[OpenWrt]编译固件

OpenWrt:https://github.com/Lienol/openwrt
安装编译环境和下载源代码
Ubuntu:
sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3.5 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex quilt uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler g++-multilib antlr3 gperf
下载源码并添加Feeds源
git clone -b 21.02 --single-branch https://github.com/Lienol/openwrt openwrt
cd openwrt/
vim feeds.conf.default
在最后一行加上: 
src-git lienol https://github.com/Lienol/openwrt-package.git;main
src-git other https://github.com/Lienol/openwrt-package.git;other
src-git PWpackages https://github.com/xiaorouji/openwrt-passwall.git;packages
#src-git PWluci https://github.com/xiaorouji/openwrt-passwall.git;luci  //如果是编译passwall2着不需要否则会加载重复软件包
src-git passwall2 https://github.com/xiaorouji/openwrt-passwall2.git
更新并安装Feeds
./scripts/feeds clean
./scripts/feeds update -a
./scripts/feeds install -a
默认组件和配置菜单
make defconfig
make menuconfig
x86编译
Target System -> x86
Subtarget -> x86_64
Target Profile -> Generic x86/64
Target Images -> [*] Build VMware image files (VMDK) //我用虚拟机测试所以选择VMware,其他的看自己需求需要编译什么包基本上默认的包就够
选择软件包 <M>编译软件包 [*]内置
LuCI -> Applications -> <*> luci-app-passwall2  //我需要编译passwall2所以passwall就不要选择了
LuCI -> Applications -> Configuration  //查看passwall的必要应用有没有选上,由于软件名问题这里我不列出来那些了
配置完成后预下载dl软件包
make download -j5 V=s  //使用5线程下载编译所需的软件包
下载完成后开始编译,第一次编译建议先使用单线程编译
make V=99  //单线程编译
make -j 12 V=99  //12线程编译
编译出来后的固件路径:/home/xiaoxie/openwrt/bin/targets/x86/64

 

OpenWrt Passwall2 编译教程

加载中……