Posts

OpenWrt 访问光猫 简单稳定

Image
测试可通过SSH连接并运行 ifconfig eth1 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255   iptables -I forwarding_rule -d 192.168.1.1 -j ACCEPT iptables -t nat -I postrouting_rule -d 192.168.1.1 -j MASQUERADE  eth1 为接光猫的口,自行修改即可。 图 但是,iptables是在内存中的,所以重启会失效。个人不敢通过ssh添加开机项,因为Linux发行版不一样,开机启动项的书写方法也会不一样,之前有过一次惨痛教训,配置NPS的时候,导致设备‘失联’。 所以可以 通过自启动命令运行 。 配置开机启动 完美运行

通过Cloudflare Workers转换订阅

Image
 我去年7月6号发布了个利用Python分享订阅的,其实部署起来非常不稳定。 所以我又弄了个基于Cloudflare Workers 的,很久以前就弄好了,但是忘了有这事,今天整理Blog,来补充一下。 这个意图是使被贡献者不用天天换订阅链接,只要workers里改改就行了。 addEventListener( "fetch" , event => { event.respondWith(handleRequest(event.request)) }) async function handleRequest(request) { let { pathname } = new URL (request.url); if (pathname== "/example" ||pathname== "/example/" ) { return new Response ( "Hello worker!" , { headers: { "content-type" : "text/plain" }}) } //fast-fish if (pathname== "/archived/fast-fish/v2ray" ||pathname== "/archived/fast-fish/v2ray/" ) { return fetch( `https://bigairport.icu/api/v1/client/subscribe?token=98` ); } if (pathname== "/fast-fish/v2ray" ||pathname== "/fast-fish/v2ray/" ||pathname== "/fast-fish/ssr" ||pathname== "/fast-fish/ssr/" ) { return fetch( `https://bigairport.icu/api/v1/client/subscribe?token=98`...

CASIO fx-991CN X Bug

Image
  Fully Dead Demo From Danny

记录下在Danny的Raspberry上的操作

Image
Preamble: The raspberry bought by danny has been idle in the school for a long time. I tried to deploy it. First, I connected the Raspberry Pi through the display, and then connected to Wi-Fi (because there is no screen where the network cable can be plugged in) to download the NPC and forward it to the external network. No problems were encountered at this step. Finally, access the Internet via the school library. However, In the further deployment, I faced a lot of problems. Web Servers  Errors Faced: Nginx=>Loss cmake=>(Loss yum)=>apt error=>apt sources=>sources verify issues Solutions: 1.apt sources Refrence: https://zhuanlan.zhihu.com/p/251009600                  https://cloud.tencent.com/developer/article/1590080 Codename:       buster 2.sources verify issues  - fix the GPG error "NO_PUBKEY"? https://askubuntu.com/questions/13065/how-do-i-fix-the-gpg-error-no-pubkey sudo apt-key adv --keyserv...

宝塔面板降级过强制绑定手机账号教程(2022/2/25更新)

Image
###建议使用:lnmp.org,脱离宝塔环境,免除烦恼。###

Force Uninstall Lanschool via cmd/script in Windows

Image
Use the following command or add them into a .bat or .cmd file and execute it. @echo off taskkill.exe /IM student.exe /F taskkill.exe /IM LskHelper.exe /F taskkill.exe /IM lskHlpr64.exe /F net stop "LanSchool Helper Service" net stop "LanSchool Student Service" sc delete "LanSchool Helper Service" sc delete "LansSchool Student Service" reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run" /v Teacher /f ::del/f/s/q "C:\Program Files (x86)\LanSchool\LskHelper.exe" rd /s/q "C:\Program Files (x86)\LanSchool\" reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist" /va /f reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome" /va /f pause

V2ray Gmail SSL Foxmail HandShake Error

Image
在客户端和服务器所有相关的 inbound 中加上 "allowPassive": false "allowPassive": false  相关链接: https://github.com/v2ray/v2ray-core/issues/276

解决 NetworkManager 内存占用过高的问题

Image
 Centos 7 参考 https://support.huawei.com/enterprise/zh/doc/EDOC1000099509/a6d7ea73 这篇文章, 这个问题是 NetworkManager 的设计缺陷, 在特定情况下产生了大量的内存碎片. 解决办法就是重启进程. 在 Centos 7 中, 使用 systemd 进行进程管理, 所以重启的命令就是 systemctl restart NetworkManager .

华为系统更新如何关闭提示?

Image
 方法:ADB禁用 ADB(傻瓜式禁止+卸载系统应用)下载链接 需要:1台windows系统电脑,数据线,手机 软件:ADB软件,并解压安装在C盘或D盘根目录下 作者:十八岁的龙叔 链接:https://www.zhihu.com/question/47473783/answer/1271757749 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 操作步骤:如果发现已经下载了最新系统更新包的,就先删除下载的安装包,删除不掉是吧?请看如下操作:1.首先打开设置-应用-应用管理-找到软件更新-看储存选项占内部多少空间,如果只有几十MB,就说明没有下载系统更新包(请直接进行第4步),如果显示几个G,说明有下载。点击卸载是删除不掉的,退出重新进入还是存在。(请从第一部开始操作)2.返回设置-系统-软件更新-右上角设置-把WLAN和夜间安装都关闭3.点击检查更新,然后点击下载并安装,立马点击取消,别真等下载完毕。4.重点:这时候请关闭无线网络和4G数据网络!!!返回到刚才的设置-应用-应用管理-找到软件更新-储存,这时候清除所有数据和缓存,你会发现这时候没有占用几个G的空间。作用是清除系统更新右上角红点提示和一些其他的缓存数据。并且可以禁止流量使用情况的关闭,通知管理,权限的一系列关闭操作。5. 手机设置-关于手机-点击版本号7次打开开发者模式6. 进入开发者选项,“”关闭系统自动更新“,”打开“手机打开USB调试”,“仅充电模式下允许ADB调试”,“手机上确认允许电脑usb调试”,“手机打开HDB连接选项”,可以在设置上方搜索框搜索。连接usb数据线后,选择“传输文件”。---电脑连接手机是否ADB成功,可以使用ADB文件夹中的华为工具箱,常用功能-检查连接测试,一定要到连接成功为止。 7.可以先看8-2,简单方式 进入C盘ADB文件目录中,在地址栏输入cmd,类似网页地址栏的地方,我的电脑:c盘:ADB,显示的地方。 8. 输入命令adb shell pm disable-user com.huawei.android.hwouc 停用系统更新。 输入命令adb shell pm enable com.huawei.android.hwouc 重新打开系统更新。(恢复更新)提示:xxxxxxxxxxx:disabled-user...

Hacking Chrome Dinosaur Game

Image
 Hacking Chrome Dinosaur Game 1. Open Console: Using F12 or Inspect 2. Game Script:      Runner.prototype      var defRunner=Runner.prototype.gameOver      Runner.prototype.gameOver=function(){console.log("Fuck u Chrome")}      Runner.instance_.setSpeed(15000)    ►Normal Speed: Runner.instance_.setSpeed(10)  3. For all those wondering how to maintain this score before this resets to 0, and therefore would require to kill it before highest possible score . To reset to default values , use       Runner.instance_.setSpeed(10)       Runner.prototype.gameOver= defRunner defRunner was used to save the initial state.  And then let the dinosaur die at the highest possible score. Console var defRunner=Runner.prototype.gameOver   Runner.prototype.gameOver=function(){console.log("Fuck u Chrome")} Runner.instance_.setSpeed(15000)  Runner.instance_.setSpeed(10) ...