原神私服搭建心得

使用5.4版本,用手机号1568099****注册后,利用官方服务器升级到最新

然后从共享,或者github找到了代理软件,从上面下载了anime game proxy 2.3版,这里自带国服基础版。

然后从qq群里面得到 原神5.4-GC启动器v3.7z,已保存到微云。

下来需要修改server文件夹里面的config.json, 需要把所有127.0.0.1 和 0.0.0.0的地址都改成服务器局域网的地址,比如192.168.50.231,可能0.0.0.0的不用改。

然后使用grasscuttertool的话,需要把对应插件\server\plugins\opencommand-plugin 里面的配置也修改成公网ip,”socketHost”: “192.168.50.231”,这样的话,就可以用验证码加游戏里面的GM,在对话窗口中,不用每次都输入@uid。

VPS硬盘扩容命令记录

394 parted -s /dev/vdb mklabel gpt
395 parted -s /dev/vdb unit mib mkpart primary 0% 100%
396 ls /dev
397 mkfs.ext4 /dev/vdb1
398 df
399 cd /mnt
400 ls
401 mkdir /mnt/blockstorage
402 echo >> /etc/fstab
403 echo /dev/vdb1 /mnt/blockstorage ext4 defaults,noatime,nofail 0 0 >> /etc/fstab
404 mount /mnt/blockstorage
405 reboot
406 df
407 find / -name uploads
408 mv /var/lib/wordpress/wp-content/uploads /mnt/blockstorage/uploads
409 df
410 find / -name uploads
411 ln -s /mnt/blockstorage/uploads /var/lib/wordpress/wp-content/uploads
412 ls -l /var/lib/wordpress/wp-content/uploads

DSL-AX5400经历

F12大法,恢复ssh

Enable SSH
1. easiest way is install web developer plugin for chrome/edge
2. browse to administration -> system tab
3. select “disable inline styles” in CSS and “enable form fields” in Forms using the web developer plugin
4. telnet/ssh will now be exposed and turn it on and apply settings

Upload firmware file
1. go download firmware from github.com (.w file extension is the firmware )
2. I used winscp to upload the file to the router. connect using SCP protocol to the router IP address using the default username/password (optus/yourpassword)
3. upload file to the /tmp/home/root directory

Flash firmware
1. Download PuTTY and connect to the router IP address using SSH and default username/password. You should be in the same directory as where you uploaded the file “/tmp/home/root”. just do a ls and you should be able to see the file you uploaded
2. run the following command without quotes, example is based on the latest firmware version as of the date of this post
“hnd-write DSL-AX82U_386.5_2-gnuton0_cferom_puresqubi.w”
once that is finished issue a reboot command and the router will restart and wait a few minutes it’ll come back up.

恢复aimesh,其实只需要最后那一个nvram set amas_force=1

1) Login via Putty
2) nvram set odmpid
3) nvram set rc_support=”dsl vdsl spectrum mssid 2.4G 5G usbX1 update switchctrl manual_stb 11AX pwrctrl nandflash smart_connect wifi2017 app ofdma wpa3 defpsk reboot_schedule ipv6 ipv6pt PARENTAL2 dnsfilter am_addons cake ntpd dnspriv dualwan mtwancfg pptpd openvpnd utf8_ssid printer modem webdav rrsut cloudsync media appbase timemachine hdspindown diskutility dnssec email bwdpi wrs_wbl ookla HTTPS letsencrypt ssh vpnc wl6 user_low_rssi tcode usericon jffs2 cfg_wps_btn stainfo cloudcheck realip ifttt alexa ipsec_srv mumimo netool cfg_sync no_finiwl amas bcmwifi bcmhnd mbo conndiag eula proxysta iperf3 mswan account_binding gameMode ftp_ssl hnd_ax_675x dhdlog dis11b”
4) nvram commit

或者

http://192.168.50.1/Module_Softcenter.asp#/
nvram set odmpid
nvram set amas_force=1
nvram commit

ARM指令

转帖一篇

IT (If-Then) 指令由四条后续条件指令(IT 块)句组成。 这些条件可以完全相同,也可以互为逻辑反。
IT 块中的指令(包括跳转)还必须在语法的 {cond} 部分中指定条件。
无需在代码中编写 IT 指令,因为汇编器会根据在后续指令中指定的条件为您自动生成这些指令。 不过,如果确实 需要编写 IT 指令,则汇编器会根据后续指令中指定的条件对 IT 中指定的条件进行验证。
编写 IT 指令可确保您会考虑如何在代码设计中放置条件指令以及选择条件。
在汇编为 ARM 代码时,汇编器会执行相同的检查,但是不会生成任何 IT 指令。

 

限制
不允许在 IT 块中使用下面的指令:
IT
CBZ 和 CBNZ
TBB 和 TBH
CPS、CPSID 和 CPSIE
SETEND
使用 IT 块时的其他限制有:
跳转指令或修改 pc 的任何指令只能是 IT 块中的最后一个指令。
无法跳转到 IT 块中的任何指令,除非在从异常处理程序返回时。
不能在 IT 块中使用任何汇编器指令

if (R4 == R5)
{
R7 = R8 + R9;
R7 /= 2;
}
else
{
R7 = R10 + R11;
R7 *= 2;
}

等于

CMP R4, R5
ITTEE EQ
ADDEQ R7, R8, R9 ; if R4 = R5, R7 = R8 + R9
ASREQ R7, R7, #1 ; if R4 = R5, R7 /= 2
ADDNE R7, R10, R11 ; if R4 != R5, R7 = R10 + R11
LSLNE R7, R7, #1 ; if R4 != R5, R7 *=2